Jump to content

sending mail from windows server


ajiths

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.