www.webdeveloper.com
Results 1 to 9 of 9

Thread: Creating a mail link on a web page.

  1. #1
    Join Date
    Mar 2010
    Posts
    1

    Creating a mail link on a web page.

    Hello,

    How to Creating a mail link on a web page.

  2. #2
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,270
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  3. #3
    Join Date
    Mar 2010
    Posts
    128
    <a href="matilto:youremail@address.com">Email</a>

  4. #4
    Join Date
    Jun 2008
    Location
    Europe
    Posts
    1,097
    You will get a ton of spam if you use that method!

    If you want to put a simple link up and hide it from spambots that harvest emails off your site for spammers, use a javascript email address hider or a form.

    You can use the Hive Logic "Enkoder".

    or a simpler hider (with NO JavaScript):
    email address hider
    Last edited by donatello; 03-12-2010 at 11:45 AM.

  5. #5
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,270
    The JavaScript method will also keep the link from working for a good number of users. And they wont be able to contact you to complain.
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  6. #6
    Join Date
    Jun 2005
    Location
    United Kingdom
    Posts
    1,043
    I'd use a form, too.

  7. #7
    Join Date
    Mar 2010
    Posts
    128
    *EDIT: Nevermind, that does use javacript... My bad.**

    If you want to encode your link, but not use javascript, and keep some of the spam down, you can use an E-mail Obfuscator. Check out this link to see what I mean:

    http://www.codehouse.com/webmaster_t...il_obfuscator/

  8. #8
    Join Date
    Dec 2005
    Posts
    2,984
    Quote Originally Posted by Charles View Post
    The JavaScript method will also keep the link from working for a good number of users. And they wont be able to contact you to complain.
    Less and less and less it seems these days. Does it really matter if you don't satisfy what will likely be less than 2% (if not lower) of your users if it works fine for the other +98%?

    I used to be a huge fan of javascript degradeability and spent hours adding javascript functionality (that I could've done in the first place) to forms that degraded nicely.....not anymore.
    I've switched careers...
    I'm NO LONGER a scientist,
    but now a web developer...
    awesome.

  9. #9
    Join Date
    May 2005
    Location
    Gold Coast (MS)
    Posts
    2,211
    REcommended...

    Use a server-side script language if your web site allows it. Otherwise, you will have to use a client-side dependent "mailto:" action to get the form info sent to you.

    Your current hosting package MUST allow SMTP ( http://en.wikipedia.org/wiki/Simple_...nsfer_Protocol ) to work. Otherwise, no email can be sent.

    Use any of the below sites to make the workable form you need:

    For making forms:

    These are really good online form makers. Just follow the instructions for making it and uploading file(s).

    http://www.phpform.org/
    http://www.tele-pro.co.uk/scripts/contact_form/
    http://www.jotform.com/?gclid=CNKhqe...FRQhnAod6laUqA (WYSIWYG Form Maker)
    http://www.thesitewizard.com/wizards/feedbackform.shtml
    http://www.thepcmanwebsite.com/form_mail.shtml

    http://emailmeform.com/
    http://www.freecontactform.com/
    http://www.reconn.us/content/view/12/34/ (Download - Contact Us Script)
    http://formsmarts.com/
    http://apptools.com/phptools/forms/forms1.php

    Online Free Tool, PHP Contact Form Code Generator: http://www.htmlbasix.com/contactform.shtml
    PHP Mailer Script Step by Step: http://www.htmlgoodies.com/beyond/ph...le.php/3855686

    PHP Sending E-mails: http://www.w3schools.com/PHP/php_mail.asp

    Not recommended...

    Basic Client-Side Mailto: Form:
    Code:
    <form method="post" action="mailto:someone@$nailmail.com" enctype="text/plain">
    <input type="text" name="username"> : name <br>
    <input type="text" name="email"> : email <br>
    comments <br>
    <textarea name="comments" rows="10" wrap="hard">
    </textarea>
    <input name="redirect" type="hidden" value="index.html">
    <input name="NEXT_URL" type="hidden" value="index.html"><br>
    <input type="submit" value="Send">
    <input type="reset" value="Clear">
    </form>
    mailto - Web-based email Form Handler: http://www.washington.edu/webinfo/mailto/

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles