The MailTo command can do more than enter a single e-mail address in the “Send To” field while activating your e-mail program. It can also:
Feature | Syntax | |
Address message to multiple recipients | , (comma separating e-mail addresses) | |
Add entry in the “Subject” field | subject=Subject Field Text | |
Add entry in the “Copy To” or “CC” field | [email protected] | |
Add entry in the “Blind Copy To” or “BCC” field | [email protected] | |
Add entry in the “Body” field | body=Your message here Within the body use “%0A” for a new line, use “%0A%0A” for a new line preceded by a blank line (paragraph), see example below. |
Notes:
” “ (beginning and ending double quotes) are necessary if any spaces are used Mailto parameter should be preceded by “?” for the first or only parameter and “&” for second and subsequent parameter.
Some examples, with actual HTML Code included, follow:
- <a href=”mailto:[email protected]”>MailTo with Multiple Recipients
- <a href=”mailto:[email protected],[email protected]“>MailTo with Subject
- <a href=”mailto:[email protected]?subject=Comments from MailTo Syntax Page“>
- <a href=”mailto:[email protected][email protected]“>MailTo with a Blind Copy
- <a href=”mailto:[email protected][email protected]“>MailTo with message already started in Body
- <a href=”mailto:[email protected]?body=I am having trouble finding information on “>MailTo with multiline message in Body
- <a href=”mailto:[email protected]?body=The message’s first paragraph.%0A%0aSecond paragraph.%0A%0AThird Paragraph.“>NOTE: Use “%0A” for a new line, use “%0A%0A” for a new line preceded by a blank line.
Features may be used in combination
- MailTo with Subject, a Recipient, a Copy and a Blind Copy
- <a href=”mailto:[email protected]?subject=MailTo Comments&[email protected]&[email protected]”>
Remember to use only one ? (question mark), when providing multiple entries beyond e-mail address