Link to home
Start Free TrialLog in
Avatar of zebada
zebada

asked on

mailto: options

I have a link that is of the form:

mailto:name@company.com?Subject=mysubject

Are there any other options that I can set such as setting the body of the email, the cc, bcc and to fields?

Avatar of freshmeat
freshmeat

here is some useful material from MSDN, hope can help u:


Mailto Protocol

--------------------------------------------------------------------------------
Opens a client's e-mail system.
Syntax

mailto:sAddress[;sMoreAddresses][&sSubject][&sBody][&sCC][&sBCC]
Possible Values

sAddress  Required. Specifies one or more valid e-mail addresses separated by a semicolon. You must use Internet-safe characters. Use %20 for the space character.  
sSubject  Optional. Specifies the text to appear in the subject line of the message.
sBody  Optional. Specifies the body of the message.  
sCC  Optional. Specifies the addresses to be included in the "cc" (carbon copy) section of the message.  
sBCC  Optional. Specifies the addresses to be included in the "bcc" (blind carbon copy) section of the message.  

Remarks

Available as of Microsoft® Internet Explorer 3.0 or later.


Example

The following example shows a link that will prepare an e-mail message.

<A HREF="mailto:mtscf@microsoft.com&subject=Feedback&body=The%20InetSDK%20Site%20Is%20Superlative">Click Here to send feedback to the InetSDK.</A>

The following example shows an HTML form being used to create an e-mail message.

<FORM ACTION="mailto:mtscf@microsoft.com" METHOD=GET>
<INPUT NAME=subject TYPE=hidden VALUE="InetSDK%20User%20Feedback">
Enter comments about this site:<BR>
<TEXTAREA NAME=body COLS=40>
InetSDK: http://msdn.microsoft.com/workshop/
The InetSDK site is superlative!
</TEXTAREA>
<INPUT TYPE=submit VALUE="Send Feedback">
</FORM>

ASKER CERTIFIED SOLUTION
Avatar of freshmeat
freshmeat

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
sorry to post it twice
:D
i clicked the wrong button
Avatar of zebada

ASKER

Perfect, thanks :)