Sending a form in email using a href mailto: ?

Discussion in 'HTML & Website Design' started by AmbitionStudio, May 11, 2010.

  1. #1
    Hello, I currently have an application form made up, the CSS done, the links and boxes done, only one problem. I need all that information to save to .txt and attach to an email, or become the content of an email that the user sends by pressing "apply now" I can give the code snippet and a demo below.

    Thanks for the help, and I am new to D.P so, Hey, I'm Josh.

    Demo -http://ambitionstudio.com/html/webdesign/template-req/request.html

    <li class="buttons">
    			    <input type="hidden" name="form_id" value="227902" />
    			    
    				<input id="saveForm" class="button_text" type="submit" name="submit" value="Submit" />
    
    		</li>
    			</ul>
    
    Code (markup):
     
    AmbitionStudio, May 11, 2010 IP
  2. Mr_Spike

    Mr_Spike Member

    Messages:
    109
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #2
    You will need to locate a form mail script. Your Web host may have pre-set scripts available through your hosting plan. If you do not already have access to an existing form mail, search for a free form mail CGI script on google, then follow the instructions to customize the script and upload it to your server. Add any necessary variables, such as setting up the email address that should receive the form results.

    Set the action attribute of your form tag to point to the location of your script and the method to either "post" or "get" as specified in the form setup instructions.
     
    Mr_Spike, May 12, 2010 IP
  3. AmbitionStudio

    AmbitionStudio Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks, I will give this a shot. Do you know of any decent ones?
     
    Last edited: May 12, 2010
    AmbitionStudio, May 12, 2010 IP
  4. Mr_Spike

    Mr_Spike Member

    Messages:
    109
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #4
    i'll have a dig around later and get back to you
     
    Mr_Spike, May 13, 2010 IP
  5. AmbitionStudio

    AmbitionStudio Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks, would be cool rather than applying using a forums topic with a format -.-
     
    AmbitionStudio, May 13, 2010 IP
  6. swashata

    swashata Member

    Messages:
    86
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    43
    #6
    Why don't you use PHP to send mail to your email?? If you want to know, then reply here! I will tell you how to do that in PHP!
     
    swashata, May 13, 2010 IP
  7. AmbitionStudio

    AmbitionStudio Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    PHP... Hm.... Add my MSN or, email me, or even reply here, thanks so much Swashata
     
    AmbitionStudio, May 16, 2010 IP
  8. Mr_Spike

    Mr_Spike Member

    Messages:
    109
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #8
    Mr_Spike, May 16, 2010 IP
  9. Mr_Spike

    Mr_Spike Member

    Messages:
    109
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #9
    if you do go down the php route of implementation using the mail() function (in combination with your web form), you might want to make sure you check it is called from the desired page and protect the form with a CAPTCHA maybe. Just to protect yourself from spammers exploiting your script.
     
    Mr_Spike, May 16, 2010 IP
  10. swashata

    swashata Member

    Messages:
    86
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    43
    #10
    There are plenty of free PHP contact form available: Search it here: http://www.google.co.in/search?hl=&q=free+php+contact+form

    My favorites are

    Implementing is very easy!
    You can also hire me to make a custom contact form for you! :) In that case please PM me!
     
    swashata, May 16, 2010 IP
  11. AmbitionStudio

    AmbitionStudio Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
  12. vishalgaikar

    vishalgaikar Active Member

    Messages:
    90
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    61
    #12
    This is useful


    thanks,

    Vishal
     
    vishalgaikar, May 25, 2010 IP
  13. AmbitionStudio

    AmbitionStudio Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Feel free to view source page as it all uses one file with a mix of HTML&PHP and use it yourself ;)
     
    AmbitionStudio, May 25, 2010 IP