Hi.
I'm trying to configure the sending of mail from my alfresco to notify users by mail when they are invited for example. I have configured the alfresco-global.properties file
like this:
mail.host=smtp.office365.com
mail.port= 587
mail.username= xxxxx@xxxx.fr
mail.password= xxxxx
mail.encoding=UTF-8
mail.protocol=smtps
mail.smtps.starttls.enable=true
mail.smtps.auth=true
But the mails are not transmitted to the users I can't find a log file to help me, do you have any indications?
Thank you in advance
I see there is a space before the actual value in your mail.port, mail.username and mail.password property configuration. Not sure if you have put in same way in your alfresco-global.properties file. Please check if values are set correctly.
It should be:
mail.host=smtp.office365.com mail.port=587 mail.username=xxxxx@xxxx.fr mail.password=xxxxx mail.encoding=UTF-8 mail.protocol=smtps mail.smtps.starttls.enable=true mail.smtps.auth=true
In addition, enable step by step debug logging your code where you are trying to send emails. It will help you nail down the cause. If you are using org.alfresco.repo.action.executer.MailActionExecuter for sending emails, then add the following debug log config in your log4j.properties file:
log4j.logger.org.alfresco.repo.action.executer.MailActionExecuter=debug log4j.logger.org.alfresco.repo.action.executer.ActionExecuterAbstractBase=debug or log4j.logger.org.alfresco.repo.action=debug
This document provides all the confugurations related to Outbound smtp, FYR: https://docs.alfresco.com/5.2/concepts/email-outboundsmtp-props.html
Thank you for your answer. It is possible that Outlook does not accept alfresco emails because when I go through gmail it works correctly.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.