Create mail link
Here is an example of how to create a mail link:
<a href="mailto:[email protected]?subject=Your Subject&body=Your Body">Send Email</a>
Replace [email protected]
with the email address you want to link to, Your Subject
with the subject of the email, and Your Body
with the body of the email.
Here's a breakdown of the attributes:
mailto
: This is the protocol used to open the email client.[email protected]
: This is the email address you want to link to.subject=Your Subject
: This sets the subject of the email.body=Your Body
: This sets the body of the email.Send Email
: This is the text that will be displayed as the link.
You can customize the link to fit your needs. For example, you can add additional attributes to specify the recipient's name or the email's CC and BCC fields.
Here's an example with additional attributes:
<a href="mailto:[email protected]?subject=Your Subject&body=Your Body&[email protected]&[email protected]&to=recipient-name">Send Email</a>
This link will open the email client with the specified subject, body, CC, BCC, and recipient's name.