View Full Version : PHP help (mail stopped working?)
lsatdown
01-08-2007, 11:28 AM
can anyone direct me in the way of forums for PHP help?
I'm having trouble with php-flash mail.
Worked fine last week, then suddenly stopped working.
The server actually confirms that the mail has been sent, but no mail recieved!
wintzell
01-08-2007, 12:51 PM
Have you checked your email settings, do you get email from others? You could try to copy this tut: http://www.actionscript.org/resources/articles/82/1/Send-Email-via-Flash-and-PHP/Page1.html and see if it works, then you'll get a bit closer to know where to problem lies.
CyanBlue
01-08-2007, 01:08 PM
Well... The description of the question sound like either your email server has problem or the problem is related to the mail filtering on the receiver's end as long as PHP or SWF file was not modified for the past week since it worked okay last week...
lsatdown
01-08-2007, 01:17 PM
Ok thanks, I think it might have something to do with authenticating the user.
ie.
SMTP = mail.your_isp.com;?
How would i add this to my script:
<?
$to = "tom@email.com";
$subject = "aa";
$body .= "\n\n---------------------------\n";
$body .= "Enquiry ". $_POST['sender_enquiry']. "\n\n";
$body .= "Email address: ". $_POST['sender_email']. "\n\n";
$body .= "Telephone: " . $_POST['sender_telephone']. "\n\n";
$header = "From:" . $_POST['sender_email']. "\r\n";
$header .= "X-Mailer: PHP/" . phpversion() . "\n";
$header .= "X-Priority: 1";
if(@mail($to, $subject, $body, $header))
{
echo "output=sent";
} else {
echo "output=error";
}
?>
CyanBlue
01-08-2007, 01:22 PM
I believe that goes into the PHP.ini file not inside of your actual PHP script...
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.