How to Set Mailto Links

mailto:HTML email link

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

How to add Mail to links

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.


How to add Subject in mailtolink

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>

How to add CC and BCC in mail to link

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>

How to add Body text in mail to links

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

Popular posts from this blog

Triangle Shape with Css

How to Add Comments in CSS