How To Add An Email Link To Your Webpage

How To Add An Email Link To Your Webpage
You can open an email message window with the mailto code within the anchor tag.

  • Mailto And The Anchor Tag
    Use the code below to add an email link to your webpage. The link will open a new email message window that is already addressed to you. Replace the you@yourdomain.com with your own email address. This may not work in all email programs.
    <a href="mailto:you@yourdomain.com">Email Link</a>


  • Add A Subject To The Email Window
    Use the code below to add a subject line to your email link. Replace the text with the text for your subject. Then add a ? after the .com in your email address. After the ? add the code segment below. This may not work with all email programs.
    subject=text
    <a href="mailto:you@yourdomain.com?
    subject=text">Email Me</a>
    Note--The arrow indicates that the code is wrapped to a second line and should really be all on one line.

  • Add A Message To The Email Window
    Use the code below to add a message to your email link. Replace the text with the text for your message. Then add a ? after the .com in your email address. After the ? add the code segment below. This may not work with all email programs.
    body=text
    <a href="mailto:you@yourdomain.com?
    body=text">Email Me</a>
    Note--The arrow indicates that the code is wrapped to a second line and should really be all on one line.

  • Add A Carbon Copy (CC) To The Email Window
    Use the code below to add a copy (carbon copy) recipient to your email link. Replace the someone@domain.com with the email address of the recipient. Then add a ? after the .com in your email address. After the ? add the code segment below. If you want to add more than one cc recipient, separate each with a &. This may not work with all email programs.
    cc=someone@domain.com

    cc=someone@domain.com&cc=someone2@domain.com
    <a href="mailto:you@yourdomain.com?
    cc=someone@domain.com">Email Me</a>
    Note--The arrow indicates that the code is wrapped to a second line and should really be all on one line.

  • Add A Blind Carbon Copy (BCC) To The Email Window
    Use the code below to add a blind carbon copy (bcc) recipient to your email link. Replace the someone@domain.com with the email address of the recipient. Then add a ? after the .com in your email address. After the ? add the code segment below. If you want to add more than one bcc recipient, separate each with a &. This may not work with all email programs.
    bcc=someone@domain.com

    bcc=someone@domain.com&bcc=someone2@domain.com
    <a href="mailto:you@yourdomain.com?
    bcc=someone@domain.com">Email Me</a>
    Note--The arrow indicates that the code is wrapped to a second line and should really be all on one line.





This site needs an editor - click to learn more!



RSS
Editor's Picks Articles
Top Ten Articles
Previous Features
Site Map





Content copyright © 2023 by Diane Cipollo. All rights reserved.
This content was written by Diane Cipollo. If you wish to use this content in any manner, you need written permission. Contact BellaOnline Administration for details.