When we active notifications with smtp configuration, mails sent are banned by serveurs like gmail because they are no sender information.
I modified my open plateform with informations to correct situation :
add property mail.smtp.from to file application.properties to contains name of sender formated like "sender name sender@serveur.com"
add String MAIL_SMTP_FROM = "mail.smtp.from"; into class AvailableAppSettings
modified method void send(final MailMessage message) into class MailServiceImpl to set from property of MailBuilder
final MailBuilder builder = sender.compose().subject(getSubject(message, related));
final AppSettings settings = AppSettings.get();
String from = settings.get(AvailableAppSettings.MAIL_SMTP_FROM);
if (message.getFrom()!=null && !Strings.isNullOrEmpty(message.getFrom().getAddress())) {
from = message.getFrom().getAddress();
}
builder.from(from);
When we active notifications with smtp configuration, mails sent are banned by serveurs like gmail because they are no sender information.
I modified my open plateform with informations to correct situation :
modified method void send(final MailMessage message) into class MailServiceImpl to set from property of MailBuilder
Have you an other solution ? Thanks