Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2002
    Location
    India
    Posts
    1

    Unanswered: 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

  2. #2
    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.

  3. #3
    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>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •