php.ini & SMTP= - how do you pass username & password
PHP mail()
command does not support authentication. Your options:
- PHPMailer- Tutorial
- PEAR - Tutorial
- Custom functions - See various solutions in the notes section: http://php.net/manual/en/ref.mail.php
I apply following details on php.ini file. its works fine.
SMTP = smtp.example.com
smtp_port = 25
username = info@example.com
password = yourmailpassord
sendmail_from = info@example.com
These details are same as on outlook settings.