Current location: Hot Scripts Forums » General Web Coding » HTML/XHTML/XML » mailto problem


mailto problem

Reply
  #1 (permalink)  
Old 11-03-09, 02:20 PM
cbrundage cbrundage is offline
Newbie Coder
 
Join Date: Nov 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
mailto problem

I have a form with a mailto in it. When I click on submit, what comes up is the email itself - it isn't being sent. Any suggestions? Thanks.
Reply With Quote
  #2 (permalink)  
Old 11-03-09, 03:02 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,515
Thanks: 20
Thanked 109 Times in 106 Posts
Please post your code.
Reply With Quote
  #3 (permalink)  
Old 11-03-09, 03:56 PM
cbrundage cbrundage is offline
Newbie Coder
 
Join Date: Nov 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
<form action="mailto:c_brundage@yahoo.com" enctype="text/plain" method="post">

I've tried it without the enctype also.
Reply With Quote
  #4 (permalink)  
Old 11-03-09, 04:48 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,515
Thanks: 20
Thanked 109 Times in 106 Posts
HTML Code:
<a href="mailto:email@domain.com" title="Click here to send an email">Contact Us</a>
You might want to use an image or javascript to protect the email address from spammers.

Masking Your Email Address (DigitalColony.com) (There are many similar links).
Reply With Quote
  #5 (permalink)  
Old 11-03-09, 04:55 PM
cbrundage cbrundage is offline
Newbie Coder
 
Join Date: Nov 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks, I've bookmarked that page. When I am done getting a site ready, I use MailtoEncryptor for the email address.

The code you give is for sending an email - what I need is sending the data from a form.
Reply With Quote
  #6 (permalink)  
Old 11-03-09, 05:10 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,515
Thanks: 20
Thanked 109 Times in 106 Posts
HTML Code:
<form action="sendemail.php">
<label>Name: <input type="text" name="name" /></label>
<label>email: <input type="text" name="email" /></label>
<input type="submit" /><input type="reset">
</form>
PHP Code:

foreach ($_POST as $k => $v)

  
$message.=$k.': '.$v;
mail( --- can't remember the mail parameters --- go to PHP.net --- ) 
You should validate and sanitize the data, this type of form is often used for spamming.
Reply With Quote
  #7 (permalink)  
Old 11-03-09, 05:14 PM
cbrundage cbrundage is offline
Newbie Coder
 
Join Date: Nov 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Where the site is (1&1), I can't use php I am told because it is a Microsoft account. I don't know asp either. That's why I was reduced to using the mailto, if it works.
Reply With Quote
  #8 (permalink)  
Old 11-03-09, 05:17 PM
cbrundage cbrundage is offline
Newbie Coder
 
Join Date: Nov 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
(I'd love to find some kind person who would, for not too much of a fee, help with an asp. file. This is all being done for a small cash-strapped animal shelter in North Carolina that is just getting started - http://www.purrpartners.com .)

Last edited by cbrundage; 11-03-09 at 05:20 PM.
Reply With Quote
  #9 (permalink)  
Old 11-04-09, 04:23 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,515
Thanks: 20
Thanked 109 Times in 106 Posts
There are many services available where you can run a contact form - you can Google for them (contact form service free, etc).

This looks interesting. I've never used it - but it might be a good starting point.

Sample Forms - myContactForm.com

Take your time on this - you should be able to find a decent service to get by with until you have more time/resources.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mailto problem kavionly JavaScript 3 03-30-09 09:26 PM
Pls help website problem! iangarrinud CSS 1 01-03-08 01:48 PM
login, roles problem dbrook007 ASP.NET 10 11-10-06 03:42 PM
Form Display Problem neevrap02 Visual Basic 1 09-05-06 05:18 AM
Asp and Microsoft Access 2002 problem gop373 ASP 2 10-06-04 09:13 AM


All times are GMT -5. The time now is 09:07 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.