I have been trying to get various flash emailer forms to work on my server but I recently found out that my hosting server will not allow annonomus emails so they gave me a php script to work with. I don’t know php and cannot get it to work for me.
<?
include_once(“Mail\Mail.php”);
$recipients = “mail_to@domain.mail”;
$headers[“From”] = “mail_from@domain.mail”;
$headers[“To”] = “mail_to@domain.mail”;
$headers[“Subject”] = “Test message”;
$body = “TEST MESSAGE!!!”;
$params[“host”] = “smtp.websoon.com”;
$params[“port”] = “25”;
$params[“auth”] = true;
$params[“username”] = "account@domainHosted.com";
$params[“password”] = “password”;
// Create the mail object using the Mail::factory method
$mail_object =& Mail::factory(“smtp”, $params);
$mail_object->send($recipients, $headers, $body);
echo “Email sent.”
?>
My flash file has the variables Name, Email and Message
posting to the file email.php. Asside from changing the
username and password what else do I have to change in this to
get the PHP to work.