Basic sendmail configuration on XAMPP Windows using an Office 365 account

sendmail.ini

smtp_server=smtp.office365.com
smtp_port=587
auth_username=your-username@your-domain.com
auth_password=your-password
force_sender=your-username@your-domain.com

php.ini

SMTP=smtp.office365.com
smtp_port=587
sendmail_from = your-username@your-domain.com
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"

Source: How to configure XAMPP to send mail from localhost?

Leave a Reply

Your email address will not be published. Required fields are marked *