Forum Moderators: coopster

Message Too Old, No Replies

Problem with php mail after server restart

php mail maler problem

         

morgleman

2:07 pm on Mar 31, 2005 (gmt 0)



I am having trouble with my ISP after he had a server retart this morning.

I have had no trouble with the code until then

My php and mysql are woring ok but the php mail() function no longer seems to work ok

The problem is that is will send the mail but not complete the script by printing the completing the page.

The mail gets sent but the page does not complete and print the text in the browser

Any ideas please Here is the test page code.
=======================

<?php
$message = ('<font size="-1" face="Verdana, Arial, Helvetica, sans-serif ">test message to tunc ');

$subject = ("newcategory");
$mailFrom = ("newcategory@example.com");
$to = ("support@example.com") ;
$re = "new voip category" ;
$extraheaders = "From: $mailFrom<$mailFrom>\n";
$extraheaders .= "Reply-To: <$mailFrom>\n";
$extraheaders .= "BCC: $bottomcopy \r\n";
$extraheaders .= "Message-ID: <$linkaddress@example.com>\n";
$extraheaders .= "MIME-Version: 1.0\n";
$extraheaders .= "Content-Type: text/html; charset=iso-8859-1\r\n";
$extraheaders .= "X-Sender: $mailFrom<Johndoe>\n";
$extraheaders .= "X-Mailer: PH5\n"; //mailer
$extraheaders .= "X-Priority: 3\n"; //1 UrgentMessage, 3 Normal
$extraheaders .= "Return-Path: <$mailFrom>\n";

Mail($to, $subject, $message, $extraheaders) ;

?>
<html>
<head>
<title>Untitled Document</title>

</head>

<body>
End of script. Mail has been sent and this page text should now appear in the browser.
</p>
</body>
</html>

[edited by: coopster at 3:25 pm (utc) on Mar. 31, 2005]
[edit reason] generalized email per TOS [webmasterworld.com] [/edit]

iceman22

2:50 am on Apr 1, 2005 (gmt 0)

10+ Year Member



I posted a similar topic just before yours, I think the problem is my ISP.

Mail appears to get sent, returning a value of 1, but it doesn't get sent. This is becoming a little but of a problem...