Sending Email from a browser: Most browser support the MAILTO function, Which is a convenient way to allow other users to communicate with you via email.
It is simple to implement however keep in mind that it will work for most but not necessarily all users. thus it is a good idea to have the email address available as readable text as well as part of the link itself.
Mailto is called using an anchor just like standard links to other documents, using HREF attribute.
You can also add a header (subject of email) to email sent from a mailto link. by adding "?SUBJECT=' subject line of message" to end of your email message some browsers will then insert "Subject line for message" into the subject line of the email window.
Syntax:
It is simple to implement however keep in mind that it will work for most but not necessarily all users. thus it is a good idea to have the email address available as readable text as well as part of the link itself.
Mailto is called using an anchor just like standard links to other documents, using HREF attribute.
You can also add a header (subject of email) to email sent from a mailto link. by adding "?SUBJECT=' subject line of message" to end of your email message some browsers will then insert "Subject line for message" into the subject line of the email window.
Syntax:
<a href="mailto:abc@example.com?"> Contact us at:</a>
For example:
Browser view :
Click on Contact us at: tab
No comments:
Post a Comment