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/47999-sending-mail-from-windows-server/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.