Jump to content


Photo

php email


  • Please log in to reply
1 reply to this topic

#1 natalieG

natalieG
  • Members
  • PipPipPip
  • Advanced Member
  • 63 posts

Posted 14 June 2006 - 10:30 PM

we tried a very simple script to email from a php script and it times out.

<?php
$to = "sales@msdsimaging.com";
$from = "sales@msdsimaging.com";
$title = "TEST";
$body = "this is a mail test";
$success = mail($to,$from,$title,$body,
"From:$from\r\nReply-To:$from");
if(success){print 'Mailok';}else {'print mailfailure';}
?>

thanks.

jennifer

#2 poirot

poirot
  • Members
  • PipPipPip
  • Advanced Member
  • 646 posts
  • LocationAustin, TX

Posted 14 June 2006 - 10:37 PM

There are too many arguments. Use:

mail($to, $title, $body, "From:$from\r\nReply-To:$from");

[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]bool mail ( string to, string subject, string message [, string additional_headers [, string additional_parameters]] )[/quote]

[a href=\"http://www.php.net/manual/en/function.mail.php\" target=\"_blank\"]http://www.php.net/manual/en/function.mail.php[/a]
~ D Kuang




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users