Jump to content

Issue with snowmail mail script


blastbum

Recommended Posts

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    = "jake@jakethomas.com.au, megan@jakethomas.com.au, support@inbluewebhosting.com.au";
$ToName      = "Jake Thomas";
$Company   = $_POST["Company"];
$Phone   = $_POST["Phone"];
$ToComments = $_POST["ToComments"];
$HearAbout    = $_POST["HearAbout"];
$host = "mail.jakethomas.com.au";
$username = "info@jakethomas.com.au";
$password = "drowssap7";
ini_set("SMTP","70.87.211.27");
ini_set("smtp_port",25);
ini_set("sendmail_from","info@jakethomas.com.au");
// 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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.