Forum Moderators: coopster
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]