I added the code:
[code]<?php
$mime_boundary = “----Nutritional_Courses----”.md5(time());
error_reporting(E_ALL);
include “info.php”;
$redirect = “thankyou3.htm”;
// send thankyou email to user
$mailto = $contact[‘email’];
$subject = “Thank you from The Nutritional Seminars”;
$mailfrom = $rep_emails[$contact[‘state_rep’]];
$emailbody = include “emailbody3.php”;
$body = “”$emailbody"n";
$mail1sent = mail($mailto, $subject, $body, “From: $mailfrom”);
// send a summary email to sales reps address
$mailto = $rep_emails[$contact[‘state_rep’]];
$subject = “Standard Process Seminar Signup”;
$mailfrom = $contact[‘email’];
// prepare email body text
$body .= “–$mime_boundaryn”;
$body .= “Content-Type: text/plain; charset=UTF-8n”;
$body .= “Content-Transfer-Encoding: 8bitnn”;
$body = "Practice Name: ".$contact[‘practice_name’].“n”;
$body = "Name: ".$contact[‘name’].“n”;
$body .= “Address: n”.$contact[‘address’].“n”;
if($contact[‘address2’] != “”)
$body .= $contact[‘address2’].“n”;
$body .= $contact[‘city’]." “.$contact[‘state’].”
".$contact[‘zip’].“nn”;
$body .= "Email: ".$contact[‘email’].“nn”;
$body .= "Phone Number: ".$contact[‘phone_number’].“nn”;
$body .= "Fax: ".$contact[‘fax’].“nn”;
$body .= "What Seminar Are You Intrested In: ".$contact[‘seminar’].“nn”;
$body .= "What State is this Seminar in: ".$contact[‘state_rep’].“nn”;
$body .= "What is the Month of the Seminar: ".$contact[‘seminar_month’].“nn”;
$body .= "How would you like to pay: ".$contact[‘pay_method’].“nn”;
$body .= "How Did You Hear About Us: ".$contact[‘how_did_you_hear_about_us’].“nn”;
$body .= "comment: ".$contact[‘comment’].“nn”;
$body .= "Time Received: ".date(“F j, Y, g:i a”, time()).“nnn”;
$mail2sent = mail($mailto, $subject, $body, “From: $mailfrom”);
// make sure the email was sent
if ($mail1sent && $mail2sent) {
header(“Location: $redirect”);
} else {
// This echo’s the error message if the email did not send.
// You could change the text in between the
tags.
echo(‘
Mail was not sent please fill out the proper email address
and click on one of our packages to send correctly. Please Print and fax
form to correct sales representative if more problems occur. Sorry for any inconvience
this may have caused you.
’);
}
?>[/code]
and got another error…
Notice: Undefined variable: contact in /home/content/w/i/z/wizzy5/html/formmail3.php on line 12
Notice: Undefined variable: contact in /home/content/w/i/z/wizzy5/html/formmail3.php on line 16
Notice: Undefined index: in /home/content/w/i/z/wizzy5/html/formmail3.php on line 16
Notice: Undefined variable: contact in /home/content/w/i/z/wizzy5/html/emailbody3.php on line 3
Notice: Undefined index: in /home/content/w/i/z/wizzy5/html/emailbody3.php on line 3
Notice: Undefined variable: contact in /home/content/w/i/z/wizzy5/html/emailbody3.php on line 11
Notice: Undefined index: in /home/content/w/i/z/wizzy5/html/emailbody3.php on line 11
Notice: Undefined variable: contact in /home/content/w/i/z/wizzy5/html/emailbody3.php on line 12
Notice: Undefined index: in /home/content/w/i/z/wizzy5/html/emailbody3.php on line 12
Notice: Undefined variable: contact in /home/content/w/i/z/wizzy5/html/emailbody3.php on line 13
Notice: Undefined index: in /home/content/w/i/z/wizzy5/html/emailbody3.php on line 13
Notice: Undefined variable: contact in /home/content/w/i/z/wizzy5/html/emailbody3.php on line 14
Notice: Undefined index: in /home/content/w/i/z/wizzy5/html/emailbody3.php on line 14
No recipient addresses found in header
Notice: Undefined variable: contact in /home/content/w/i/z/wizzy5/html/formmail3.php on line 26
Notice: Undefined index: in /home/content/w/i/z/wizzy5/html/formmail3.php on line 26
Notice: Undefined variable: contact in /home/content/w/i/z/wizzy5/html/formmail3.php on line 30
Notice: Undefined variable: contact in /home/content/w/i/z/wizzy5/html/formmail3.php on line 38
Notice: Undefined variable: contact in /home/content/w/i/z/wizzy5/html/formmail3.php on line 40
Notice: Undefined variable: contact in /home/content/w/i/z/wizzy5/html/formmail3.php on line 42
Notice: Undefined variable: contact in /home/content/w/i/z/wizzy5/html/formmail3.php on line 44
Notice: Undefined variable: contact in /home/content/w/i/z/wizzy5/html/formmail3.php on line 48
Notice: Undefined variable: contact in /home/content/w/i/z/wizzy5/html/formmail3.php on line 48
Notice: Undefined variable: contact in /home/content/w/i/z/wizzy5/html/formmail3.php on line 49
Notice: Undefined variable: contact in /home/content/w/i/z/wizzy5/html/formmail3.php on line 51
Notice: Undefined variable: contact in /home/content/w/i/z/wizzy5/html/formmail3.php on line 53
Notice: Undefined variable: contact in /home/content/w/i/z/wizzy5/html/formmail3.php on line 55
Notice: Undefined variable: contact in /home/content/w/i/z/wizzy5/html/formmail3.php on line 57
Notice: Undefined variable: contact in /home/content/w/i/z/wizzy5/html/formmail3.php on line 59
Notice: Undefined variable: contact in /home/content/w/i/z/wizzy5/html/formmail3.php on line 61
Notice: Undefined variable: contact in /home/content/w/i/z/wizzy5/html/formmail3.php on line 63
Notice: Undefined variable: contact in /home/content/w/i/z/wizzy5/html/formmail3.php on line 65
Notice: Undefined variable: contact in /home/content/w/i/z/wizzy5/html/formmail3.php on line 67
No recipient addresses found in header
Warning: Cannot modify header information - headers already sent by (output started at /home/content/w/i/z/wizzy5/html/formmail3.php:12) in /home/content/w/i/z/wizzy5/html/formmail3.php on line 77