natalieG Posted June 14, 2006 Share Posted June 14, 2006 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 Quote Link to comment https://forums.phpfreaks.com/topic/12024-php-email/ Share on other sites More sharing options...
poirot Posted June 14, 2006 Share Posted June 14, 2006 There are too many arguments. Use:[code]mail($to, $title, $body, "From:$from\r\nReply-To:$from");[/code][!--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] Quote Link to comment https://forums.phpfreaks.com/topic/12024-php-email/#findComment-45734 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.