ajiths Posted April 21, 2007 Share Posted April 21, 2007 Hello all i trying to send a mail using php scripts from windows server i used the following code for that <?php $from="[email protected]"; $to = "[email protected]"; $subject = 'Invitation'; $message = 'hello '; $headers = 'From: [email protected]' . "\r\n" . 'Reply-To: [email protected]' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); ?> and i also change my php.ini (smtp name & sendmail_from )but its not working in windows server please help me to do this Ajith [email protected] Link to comment https://forums.phpfreaks.com/topic/48012-help-me-to-sending-mail-from-windows-server/ Share on other sites More sharing options...
keeB Posted April 21, 2007 Share Posted April 21, 2007 What's the error? Link to comment https://forums.phpfreaks.com/topic/48012-help-me-to-sending-mail-from-windows-server/#findComment-234699 Share on other sites More sharing options...
ajiths Posted April 22, 2007 Author Share Posted April 22, 2007 it never print an error but not working i mean mail not going any one can tell the correct procedure to send a mail from windows server Link to comment https://forums.phpfreaks.com/topic/48012-help-me-to-sending-mail-from-windows-server/#findComment-235079 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.