Contact West Fifth\n"; print '

Phone: (908) 668-8447

FAX: (908) 791-0234

'; print "
\n"; print "

Your Name:

\n"; print "

Your E-Mail Address:

\n"; print "

Subject:

\n"; print "

Your Message:

\n"; print "

Who Would You Like To Send This To?   \n

\n"; print "

\n"; print "
\n"; } else { if (!$realname) { print "

You Didn't Enter Your Name

\n"; print "

Click Your Browser's \"Back\" Button To Go Back And Fix It

\n"; } elseif (!$from) { print "

You Didn't Enter Your E-Mail Address

\n"; print "

Click Your Browser's \"Back\" Button To Go Back And Fix It

\n"; } elseif (!$message) { print "

You Didn't Type Your Message/Request/Complaint

\n"; print "

Click Your Browser's \"Back\" Button To Go Back And Fix It

\n"; } else { // // Send the mail // include('Mail.php'); // Initialize Variables $recipients = ""; $headers = ""; $body = ""; $to = "stop"; // Set the recipient if ($formto == sales) { $to = "sales@westfifth.com"; } if ($formto == support) { $to = "support@westfifth.com"; } if ($formto == billing) { $to = "billing@westfifth.com"; } if ($formto == webmaster) { $to = "webmaster@westfifth.com"; } $recipients = "$to"; //Set the headers $headers['From'] = "$from"; $headers['To'] = "$to"; $headers['Subject'] = "$subject"; $headers['X-Script-Location'] = "$_SERVER[SCRIPT_NAME]"; $headers['X-Script-Domain'] = "$_SERVER[SERVER_NAME]"; $headers['X-Submitted-From'] = "$_SERVER[REMOTE_ADDR]"; // Set the body $body = "$message"; $params['sendmail_path'] = '/usr/lib/sendmail'; if ($to == "stop") { print "Illegal Address"; } else { // Create the mail object using the Mail::factory method $mail_object =& Mail::factory('sendmail', $params); $mail_object->send($recipients, $headers, $body); } } if ($formto == sales) { print "

 

\n"; print "

Thank You $realname. Your Message has been sent to Sales.

\n"; } if ($formto == support) { print "

 

\n"; print "

Thank You $realname. Your Message has been sent to Tech Support.

\n"; } if ($formto == billing) { print "

 

\n"; print "

Thank You $realname. Your Message has been sent to Billing.

\n"; } if ($formto == webmaster) { print "

 

\n"; print "

Thank You $realname. Your Message has been sent to our Webmaster.

\n"; } } ?>