blastbum Posted June 23, 2010 Share Posted June 23, 2010 Hi, I'm a newbie and I have recently moved a Flash website (.NET) to a new windows web hosting company and ever since I have done that, the mail form on the Flash website hasn't been working. I've since discovered that that the Flash contact form is using a snowmail mail script, in which the code is pasted below: <?php $Email = $_POST["Email"]; $FirstName = $_POST["FirstName"]; $ToEmail = "[email protected], [email protected], [email protected]"; $ToName = "Jake Thomas"; $Company = $_POST["Company"]; $Phone = $_POST["Phone"]; $ToComments = $_POST["ToComments"]; $HearAbout = $_POST["HearAbout"]; $host = "mail.jakethomas.com.au"; $username = "[email protected]"; $password = "drowssap7"; ini_set("SMTP","70.87.211.27"); ini_set("smtp_port",25); ini_set("sendmail_from","[email protected]"); // Commented out file based testing data //$fhandle=fopen("formdata.txt","w+"); //fputs($fhandle,strftime("%D %T\r\n")); //fputs($fhandle,"Email = $Email\r\nFirstName = $FirstName\r\nCompany $Company\r\nToComments $ToComments\r\nHearAbout $HearAbout\r\n"); //fputs($fhandle,"HTTPGETVAR stuff $ToComments\r\n"); //fputs($fhandle,"ToEmail $ToEmail\r\n"); //fclose($fhandle); $ToSubject = "Website Contact"; $Message = "Sent By: $FirstName\r\nSenders Email: $Email\r\nSenders Phone: $Phone\r\nSenders Company: $Company\r\n\r\nMessage Sent:\r\n$ToComments\r\n\r\nSender Heard About Site From: $HearAbout\r\n"; mail($ToEmail,$ToSubject, $Message, "From: ".$FirstName." <".$Email.">"); Print "&_root.Mail.EmailStatus=Complete - Your mail has been sent&"; ?> Can any of you see why this isn't working? Your help will be greatly appreciated. Thank you. Dan Link to comment https://forums.phpfreaks.com/topic/205644-issue-with-snowmail-mail-script/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.