I have a flash file which sends its info to my php file to send me an email. It worked great but now I switched to a linux server and it doesn't work. The hosting company said they can't send annonomous emails and I don't know php well at all but here is what I had:
<?
include_once("Mail\Mail.php");
$recipients = "josh@designfunk.com";
$headers["From"] = $_POST["email"];
$headers["To"] = "josh@designfunk.com";
$headers["Subject"] ="Designfunk Request";
$message = $_POST["message"]."\r\n\n";
$message .=$_POST["name"]."\r\n";
;
$message .=$_POST["phone"]."\r\n";
$params["host"] = "smtp.designfunk.com";
$params["port"] = "25";
$params["auth"] = true;
$params["username"] = "josh@designfunk.com";
$params["password"] = "password";
// Create the mail object using the Mail::factory method
$mail_object =& Mail::factory("smtp", $params);
$mail_object->send($recipients, $headers, $message);
echo "Email sent."
?>
Pretty basic I think but I don't know why it doesn't work with my new server.
Any help would be greatly appreiciated,
Josh