Concrete5 on Azurewebsites email setup problem - "Client does not have permissions to send as this sender"
I am using the External SMTP Server option under the SMTP Method section. I have tried entering the settings for my Office365 email account per below:
Mail server: smtp.office365.com
I am getting the following error when sending the test email: "The following error was found while trying to send the test email: 5.7.60 SMTP; Client does not have permissions to send as this sender".
I have also tried with my gmail account:
Mail server: smtp.gmail.com
But then I get the following error: "The following error was found while trying to send the test email:
5.7.14 TxgZAEjlW4otevyVG3GYpP5saYwI> Please log in via your web browser and
5.7.14 then try again.
5.7.14 Learn more at
5.7.14https://support.google.com/mail/answer/78754... a62sm23166730pfj.40 - gsmtp"
I am assuming these errors are occurring because the site is trying to send as a generic email address such as firstname.lastname@example.org and Office365 will not allow that. I have seen several posts that talk about editing the app.php file to set the email from address and have tried setting the from email address by making the following update to application/config/app.php file:
define('EMAIL_DEFAULT_FROM_NAME', 'OrgName Webmaster');
Can anyone give me some direction here? I am really hoping to get email working throughout the site.
"The following error was found while trying to send the test email:
Unable to send mail: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()"
not sure if these apply to you but I've had the same problems with both gmail and office365.
When using office365 the username must be the name of the mailbox that you are using or it will not work - it gives the exact message you are receiving if it does not match.
With gmail you may have to unlock the account to use smtp with it. If you log into your gmail account and then in the same browser window go to google and search on 'gmail unlock captcha' and visit the first result you should be able to sort it from there.
What version of Concrete5 are you using by the way?