1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Best Way to Add an Email Link?

Discussion in 'General Programming Chat' started by Shadowflux, May 12, 2011.

  1. Shadowflux

    Shadowflux Registered Member

    Joined:
    Jan 6, 2011
    Messages:
    59
    Likes Received:
    10
    Hey guys,

    I'm working on my website and I want to add a link to allow potential clients to email me. I don't want to use the "mailto" command because, in my experience, that just opens Outlook and I want it to work for people that don't use OL as well.

    Also, I'm using Blogger, is it possible to add an email submit form on blogger?
    If so, anyone know where I can get some free code to accomplish this?

    I don't want to just display my email address because it'll get harvested and spammed. I had thought of displaying it as an image but I want it to be as easy as possible for people to email me.

    I'm not much of a programmer so any help would be greatly appreciated!

    Thanks in advance
     
  2. gnote

    gnote Registered Member

    Joined:
    Mar 10, 2009
    Messages:
    80
    Likes Received:
    6
    Occupation:
    Programmer
    Location:
    USA
    mailto: link opens a compose window in your *default* email client
    in your case, your default client is outlook. some people may have their gmail set, and firefox would open a new tab to their gmail. this is appropriate, unless you really are worried about being scraped.

    assuming you do not have your own hosting to host a PHP mail script, you must use a 3rd party site to host your form. a quick google found me
    www.freedback.com

    sign up there and create a form, add a field for the user to enter 'their message' and click continue. check the box on the next page that says email me of notifications and enter your email there. click continue and you will get your forms code.

    goto blogger, click edit posts, then click edit pages at the top. create a new page and use "Edit HTML" mode (not 'Compose'). paste your forms code here and publish the page.

    you now have a contact form
     
    • Thanks Thanks x 1
  3. Shadowflux

    Shadowflux Registered Member

    Joined:
    Jan 6, 2011
    Messages:
    59
    Likes Received:
    10
    Thanks man, that was a big help. I'll check into what you've mentioned. If mailto works on gmail and stuff then maybe i'll use that.

    Thanks again!