You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi thanks for the quick response! I realised I was just being stupid now and have fixed the issue. I tested with raw Javax code in issue98 #98 and it worked fine. I then realised that in the actual email send function I hadn't updated the actually send function, so the email was being rejected.
mailerClient.send(Email(
subject = subject,
**from = "[email protected]",**
to = to,
cc = cc.getOrElse(Seq.empty),
bcc = bcc.getOrElse(Seq.empty),
bodyText = bodyText,
bodyHtml = bodyHtml
))
it works now thanks! Is there a way of inheriting the "from" field from the username in config?
Hi there,
I'm having trouble with sending emails via office365. I've tried gmail and it works fine but this isn't working for some reason. Here's my config:
Play mailer
play.mailer {
host = "smtp.office365.com"
port = 587
tls = true
user = "[email protected]"
password = "test"
props {
starttls.enable = true
starttls.required = true
}
}
I get this error:
Sending the email to the following server failed : smtp.office365.com:587
Has anyone experienced anything similar?
Thanks!
The text was updated successfully, but these errors were encountered: