1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Making an email submit button

Discussion in 'HTML & Website Design' started by Mia, Feb 24, 2005.

  1. #1
    Hello, I had a customer request that I place a "Button" so that visitors to their site can click on it to email them.

    I just placed a simple form button on the following page: http://www.clearwatersdayspamd.com

    What I want to do though is code the form such that when they click on it it inserts the "Subject" blah, blah, whatever, in the subject line of a new email. I would also like to ommit the "Submit=Click+Here+to+email+us" it places in the body of the message.

    Any ideas if this can be done? If you go to http://www.clearwatersdayspamd.com and click the "click here to email us" button you can see what I mean. Thank you!
     
    Mia, Feb 24, 2005 IP
    Will.Spencer likes this.
  2. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You should be able to form the email by using this syntax (you can add other fields, like cc, as well):

    mailto:emailaddress?subject=my%20subject&body=my%20body

    For example:

    <form method="GET" action="mailto:email-address">
    <input type="hidden" name="subject" value="test">
    <input type="hidden" name="body" value="test">
    <input type="submit" value="Send Email">
    </form>
    Code (markup):
    or as a link:

    <a href="mailto:emailaddress?subject=test&amp;body=test">email</a>
    Code (markup):
    You can always disguise the link as a button.

    J.D.
     
    J.D., Feb 24, 2005 IP
  3. exam

    exam Peon

    Messages:
    2,434
    Likes Received:
    120
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Oh that's Clear Waters Day Spa MD -- I just had to visit the site, I thought it SPAM d :)
    BTW, clearwatersdayspa.com is available, you might want to get it as well- just a thought & the url would look a little cleaner.
     
    exam, Feb 24, 2005 IP
  4. Mia

    Mia R.I.P. STEVE JOBS

    Messages:
    23,694
    Likes Received:
    1,167
    Best Answers:
    0
    Trophy Points:
    440
    #4
    Thanx a bunch JD.

    Exam, I will run the other domain by the client. I did in the past, but they wanted the MD on it.. I said it looks like "spam", but that is what they wanted.

    Thanx again!
     
    Mia, Feb 24, 2005 IP
  5. Mia

    Mia R.I.P. STEVE JOBS

    Messages:
    23,694
    Likes Received:
    1,167
    Best Answers:
    0
    Trophy Points:
    440
    #5
    JD, thanx again! I went with option two. For some reason using the form code still returned garbage to my mailer. Thanx again!
     
    Mia, Feb 24, 2005 IP
  6. Somr

    Somr Guest

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Hey JD

    I am having problems with my website using Html format, I have installed the button listed in this post. It worked but I was using this so that others send info to me by filling out the form and sending the results directly to my email.

    Here is what the form looks like this somrgenealogy.com/histories/RequestForm

    i would like for all the info to be send to me by email instead of using a 3rd party site.

    Thank advance

    Greg
     
    Somr, May 18, 2007 IP
  7. nicheguy1

    nicheguy1 Peon

    Messages:
    31
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    http://scriptslibrary.doteasy.com/index.php?catid=2&blogid=1
    Dan
     
    nicheguy1, May 18, 2007 IP