Help on PHPMailer!

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.

thesensei

Sharpshooter
Special Hen
Joined
Jul 19, 2008
Messages
260
Reaction score
0
Location
Wagoner
Is there anyone around familiar with implementing PHPMailer? I've got a form that sends recorded information to a form. I would like the submission to also send an email to the address given on the form, with some information that is dependent on variables within the form. How do I set it up to do both? Currently, the form starts with method=POST - needs to stay that way to send info to DB, but need to also get it sent as an email!

Any thoughts?
 

zulater

Sharpshooter
Special Hen Banned
Joined
May 15, 2007
Messages
1,272
Reaction score
0
Location
Edmond/North OKC
in the script you post to just run an if statement that then sends an email under your first condition else sends an email under your second condition?
Code:
$to = "[email protected]";
$subject = "New Project $lineid";
$email = "[email protected]";
$message = "Line: $lineid
Date in: $yearin - $monthin - $dayin
Client: $client
Field Data: $tapenum' '$tapetype
Support: $support
Survey: $survey
Original Section: $origsect
Maps: $maps
Notes: $misc";
$headers = "From: $email";
$sent = mail($to, $subject, $message, $headers);
 

Latest posts

Top Bottom