here are the details
[php.ini]
SMTP = smtp.gmail.com
smtp_port = 465
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
mail.add_x_header=Off
[sendmail.ini]
smtp_server=smtp.gmail.com
smtp_port=465
smtp_ssl=ssl
error_logfile=error.log
debug_logfile=debug.log
auth_username=[email]@gmail.com
auth_password=[email password]
pop3_server=
pop3_username=
pop3_password=
force_sender=[email]@gmail.com
force_recipient=
hostname=smtp.gmail.com
[mail function]
mail('[email]@gmail.com','sample mail','sample content','From: [email protected]');
i have checked smtp settings properly, but its still not working please suggest.
You have to configure SMTP on your server
You can use the googles free SMTP server Pretty easy to setup too.
You can try below as well.
You can send mail from localhost with sendmail package , sendmail package is inbuild in XAMPP. So if you are using XAMPP then you can easily send mail from localhost.
for example you can configure
C:\xampp\php\php.iniandc:\xampp\sendmail\sendmail.ini for gmail to send mail.in C
:\xampp\php\php.ini find extension=php_openssl.dlland remove the semicolon from the beginning of that line to make SSL working for gmail for localhost.in php.ini file find [mail function] and change
//mail function