One tricky part is that the 'AccountExecutive' will have a name only, not an e-mail, so I will have to have the e-mail automatically populated from a seperate code if at all possible.
I would like, upon completion of the form, to have an automatic response automatically e-mail the following people:
my processor's e-mail (this is where the form is submitted to), broker's email (to be filled out in the form), AE's email (their name is selected from a drop down).
if you lost me at this point i will just draw out the process real quick:
1. client fills out form
2. FORM GETS SUBMITTED TO PROCESSOR & AE (name is selected from drop down but email needs to feed in from that name)
3. AUTOMATIC THANK YOU RESPONSE GETS SENT TO AE, BROKER, AND CLIENT'S EMAIL
we are using PHP E-Mail 2.0. i will spare you the unnecessary info:
Code: Select all
<?php
include('class.Email.php');
$total_contents .= "Broker E-Mail: " . $_POST['BrokerEmail'] . "\n\n";
$total_contents .= "Account Executive: " . $_POST['AccountExecutive'] . "\n\n";
$total_contents .= "Client E-Mail Address: " . $_POST['email'] . "\n\n";
;
//echo $total_contents ;
$to="processing@processoremail.com";
$subject="Form submission";
$notify_subject = "Form Submission";
$from = "processing@processoremail.com";
$notify_message = "There has been a feedback";
$visitor_message = "Thanks for writing to us. We will get back to you at the earliest.
Hoping of a long term business relationship with you.
";
mail( "processing@processoremail.com", "$notify_subject", "$total_contents", "$from");
//mail( "$to", "$notify_subject", "$total_contents", "$from");
header("Location:thank-you.html");
exit();
?>