If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Please Help....It's Urgent

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-03-02, 16:43
Velmurugan P Velmurugan P is offline
Registered User
 
Join Date: Aug 2002
Location: India
Posts: 1
Please Help....It's Urgent

Hi,

I'm designing a website in which I have to open Outlook New mail window using any of the scripting language (VbScript/Javscript). When I use CreateObject method, the browser is giveing "ActiveX Component Can't Create Object" error. I can rectify this by changing the Security settings in IE. But I can't do the same for my customer in US. So, I have found an alternative of using "MailTo" option in <Anchor> tag. The problem over here is, I'm not able to format the content of the Body text in the tag.

I want the body of the mail to be in two or three lines.



This is pretty urgent. Please help
Reply With Quote
  #2 (permalink)  
Old 08-22-02, 11:57
Mulligan Mulligan is offline
Registered User
 
Join Date: Jul 2002
Posts: 55
You can pass subject and body to a mailto anchor as follows. You need to URLEncode the text you pass to subject and body lines.
Code:
<a href="mailto:foo@bar.com?Subject=This%20is%20a%20subject&Body=This%20is%20a%20body">click me</a>
Mull.
Reply With Quote
  #3 (permalink)  
Old 09-06-02, 10:46
DiGa DiGa is offline
Registered User
 
Join Date: Sep 2002
Posts: 6
Re: Please Help....It's Urgent

try the following:

<a href="mailto:dgasser@ch.oetiker.com?Subject=Test&B ody=<%="There are" & Server.URLEncode(Chr(13) & Chr(10)) & "two lines"%>">mail</a>
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On