I am using the code below to try to get my site to send me information from a webform made in Flash. It was working fine when I was testing it locally, but now that it is uploaded it is not sending the form successfully.
Any suggestions?
Thanks.
__________________________________________________ _______________
<?php
require_once "Mail.php";
$from = "Sender <sender@example.com>";
$to = "Me <me@myemail.net>";
$subject = "Feedback from Site";
$message .= 'First Line: '.$_POST['FirstLineofForm'] ."\n\n";
$message .='SecondLine: '.$_POST['kSecondLineofForm'] ."\n\n";
$host = "smtp.myemail.net";
$username = "myUsername";
$password = "myPassword";
$headers = array ('From' => $from,
'To' => $to,
'Subject' => $subject);
$smtp = Mail::factory('smtp',
array ('host' => $host,
'auth' => true,
'username' => $username,
'password' => $password));
$mail = $smtp->send($to, $headers, $message);
if (PEAR::isError($mail)) {
echo("<p>" . $mail->getMessage() . "</p>");
} else {
echo 'sent=OK';
// echo("<p>Message successfully sent!</p>");
}
?>




