HTML Email

HTML EmailHTML Email Here you will learn how to create links to send email to predefined address using user’s email program.
Mailto Link
The anchor element <a> is be used to create email links or mailto links. Whenever the mailto link is clicked it opens users default email program or software.
A new email page is created with “To” field containing the address of the name specified on the link by default.
Advanced properties of a Mailto Link
Along with the mailto links you can also send other parts of the message such as Subject, Body text and specify mode of sending “cc” and “bcc” .
To use any of the advanced mailto link options add a “?” after the email address(to separate), then add name/value pairs of the properties.
Like :- <a href=”mailto:[email protected]?subject=Feedback”>
You can also use multiple properties by separating the name/value pairs with an ampersand (“&”).
Like:- <a href=”mailto:[email protected]?subject=Feedback&[email protected]”>
Mailto link Properties and Descriptions
Link Properties DescriptionSubject The subject property is used to specify the user’s email program’s subject field by default.Body This property adds a message by default in users email program which the user can alter or delete.Cc This property is used to send a “Carbon Copy” of the email to the email address specified and multiple addresses are separated by comma.Bcc This property is used to send a “Carbon Copy” of the email secretly such that no recipient can see other recipients.
Mailto Link with cc and bcc
When the user clicks on mailto link using properties of cc and bcc the email program opens up with field cc and bcc containing email addresses of recipients specified in the value. The value in cc allows recipients to see each other, while in bcc all recipients are secret.
Mailto Link: Body
A user can use the body parameter to add a default message into the body section of the email. It usually contains formal greetings, contact address etc.However the user can alter or delete the message.