Current location: Hot Scripts Forums » General Community » Script Requests » Email after Form 'submit'


Email after Form 'submit'

Reply
  #1 (permalink)  
Old 10-09-04, 09:04 PM
sixflagsga sixflagsga is offline
Newbie Coder
 
Join Date: Sep 2004
Location: Atlanta, Georgia
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Email after Form 'submit'

Hello,

I have a form on a secure server that I am using to accept necessary payments for services such as ad-free browsing on my website. My main interest is a script, that after they click 'submit' and are redirected to a complete page and the form contents are sent through Formmail to my specified email, sendmail sends them an email message noting them that their email address was used in the purchase and that their purchase is being processed, something like that...

I searched hotscripts.com and Googled it, but came up with nothing. If anyone knows of a script that allows this or if it can be created, I'd appreciate it.

- Nick
Reply With Quote
  #2 (permalink)  
Old 10-09-04, 11:04 PM
Sabu Sabu is offline
Junior Code Guru
 
Join Date: Sep 2004
Posts: 458
Thanks: 0
Thanked 0 Times in 0 Posts
Wel, *as far as I am aware*, the general code for sending an email with sendmail is, as long as your php server supports it, something like:
PHP Code:

$sendto "your@email.address";

$subject "Your Mail Subject"
$headers "From: from@email.address\r\n"
$headers .= "To: to@email.address\r\n"
$message "This contains your message content";

mail($sendto$subject$message$headers); 
All you need to do is sort out the form processing and generate the various variables here, voila
__________________
define('TRUE', FALSE);
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
formmail problem gscraper Perl 12 08-27-04 03:06 AM
HELP -- Perl email form !! nasos Perl 1 04-08-04 01:21 PM
ASP JMAIL Form Email does not submit nor redirect progtalktn ASP 1 02-26-04 04:41 PM
submit form? tcooper PHP 5 12-12-03 03:30 PM
Preventing email form abuse LunarOrbit Perl 3 10-04-03 09:55 PM


All times are GMT -5. The time now is 10:51 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.