How to Set Mailto Links
Mailto Links
mail program
mailto:
Adding CC and BCC
HTML/CSS
HTML/CSS
HTML/CSS
HTML/CSS
HTML/CSS
HTML/CSS
HTML/CSS
HTML/CSS
HTML/CSS
HTML/CSS
HTML/CSS
HTML/CSS
HTML/CSS
For create a link that opens to direct email program (where you can send a new email with PC or Phone), use mailto: inside the href attribute:
Mailto link is a one type of HTML link that activates the default mail on the computer or mobile for sending an e-mail.
<a href="mailto:name@email.com"> Link text </a>
Your web browser requires a default e-mail client software installed on your computer in order to send the e-mail.
for example, If you have Microsoft Outlook as your default mail client, pressing a mailto link will open a new mail window of Outlook.
For by default add subject in mailto link we have to add following code
<a href="mailto:someone@yoursite.com?subject=Mail from Triangle Css"> Link text </a>
For by default add CC and BCC in mailto link we have to add following code
<a href="mailto:someone@yoursite.com?cc=someoneelse@theirsite.com
&bcc=lastperson@theirsite.com&subject=My Subject News">Link text</a>
For by default add body text in mailto link we have to add following code
<a href="mailto:someone@yoursite.com?subject=My Subject&body=Body-goes-here">Link text</a>
Comments
Post a Comment