What if Office 365 doesn't respond to Magento test emails
Email Sending from Magento
- We use SMTP with nagios account
- Office 365 use TLS not SSL
Login to server having issue in sending email and run below command
• cd /home/neal/sendemail/
• apt-get install libnet-ssleay-perl libio-socket-ssl-perl libnet-smtp-ssl-perl
Note:- sendemail folder is not available on server by default.. it will be at github (https://github.com/mogaal/sendemail)
Login to nagios.apoyar
• Cd /usr/local/etc/objects
• Vi commands.cfg
Check for to test at command line in commands.cfg file
Copy that command and run on server having issue in sending email, change email id in below command, mention the one which having issue
We can get that email id from magento, at below path
Store/configuration/general/store email
• ./sendEmail -o tls=yes -s smtp.office365.com:587 -xu nagios@apoyar.eu -xp Ap0yar4321 -t karolp@apoyar.eu -f nagios@apoyar.eu -u "** Subject **" -m "***** Nagios ***"
And at last, check with test mail.