Mail me code in html

Discussion in 'HTML & Website Design' started by Runi akhter, Oct 21, 2014.

  1. #1
    i need mail me code in html.Please help me anybody
     
    Solved! View solution.
    Runi akhter, Oct 21, 2014 IP
  2. HassanKhalid

    HassanKhalid Active Member

    Messages:
    158
    Likes Received:
    6
    Best Answers:
    4
    Trophy Points:
    90
    #2
    <a href="mailto:youremailaddress">Email Me</a>
    Code (markup):
     
    HassanKhalid, Oct 21, 2014 IP
  3. #3
    To make it a little more useful you can add things like the subject and body of the e-mail.

    <a href="mailto:name@address.com?subject=Email from my website&body=Hi Runi, I am contacting you from your email link and would like to ask...">Email Me</a>
    Code (markup):
    If you want to add a space to the body use \n

    I hope this helps
     
    Jim Bean, Oct 22, 2014 IP
    WLEadmin likes this.
  4. WLEadmin

    WLEadmin Active Member

    Messages:
    119
    Likes Received:
    55
    Best Answers:
    5
    Trophy Points:
    55
    #4
    To clarify: that's a line feed, not a space. So "Hello,\n\nThis line." looks like this:

    Hello,

    This line.
     
    WLEadmin, Oct 22, 2014 IP
  5. Jim Bean

    Jim Bean Member

    Messages:
    24
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    38
    #5
    Sorry, wrong terminology there, thanks for clarifying that @WLEadmin I did mean a new line not a space.
     
    Jim Bean, Oct 22, 2014 IP
  6. COBOLdinosaur

    COBOLdinosaur Active Member

    Messages:
    515
    Likes Received:
    123
    Best Answers:
    11
    Trophy Points:
    95
    #6
    Unless you are in love with receiving a lot of spam you probably want to re-think putting an email address on a web page. You will get swarmed by spambots who will just clog up your email with worthless, offensive, and dangerous junk. A much better approach is to just use a contact form and do the email from the server side so you do not have to expose your email address.
     
    COBOLdinosaur, Oct 22, 2014 IP
    kk5st likes this.