i have installed wamp on windows 8.
got error:
warning: mail() [function.mail]: failed connect mailserver @ "localhost" port 25, verify "smtp" , "smtp_port" setting in php.ini or use ini_set() in c:\wamp\www\mail.php on line 9
here simple source code:
<?php // message $message = "line 1\r\nline 2\r\nline 3"; // in case of our lines larger 70 characters, should use wordwrap() $message = wordwrap($message, 70, "\r\n"); // send mail('caffeinated@example.com', 'my subject', $message); ?>
which software have install email through php on windows 8? sendmail, msmtp or ssmtp?
try
configure setups
in php.ini
smtp=smtp.gmail.com smtp_port=587 sendmail_from = my-gmail-id@gmail.com sendmail_path = "\"c:\xampp\sendmail\sendmail.exe\" -t"
in sendmail.ini:
smtp_server=smtp.gmail.com smtp_port=587 error_logfile=error.log debug_logfile=debug.log auth_username=my-gmail-id@gmail.com auth_password=my-gmail-password force_sender=my-gmail-id@gmail.com
important: comment following line if there
sendmail_path
inphp.ini
:sendmail_path="c:\xampp\mailtodisk\mailtodisk.exe"
note: tested , works fine in windows 8.1
Comments
Post a Comment