PDA

View Full Version : Please Help....It's Urgent


Velmurugan P
08-03-02, 17:43
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

Mulligan
08-22-02, 12:57
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.<a href="mailto:foo@bar.com?Subject=This%20is%20a%20subject &Body=This%20is%20a%20body">click me</a>Mull.

DiGa
09-06-02, 11:46
try the following:

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