Search code examples
playframeworksmtpimapoffice365mailer

Play Mailer Plugin For Play Framework 2.4 Does Not Work With Outlook Office 365


I am trying to get the Play Mailer plugin to work with an office 365 email account but receive the following error:

Sending the email to the following server failed : smtp.office365.com:995]

Using MS recommended settings we have tried:

SMTP

play.mailer {
    host="smtp.office365.com"
    port=995
    ssl=yes
    tls=no
    user="[email protected]"
    password=“XXXXX
}

play.mailer {
    host="smtp.office365.com"
    port=587
    ssl=no
    tls=yes
    user="[email protected]"
    password="XXXXX"
}

IMAP:

We also attempted to use IMAP settings

play.mailer {
    host="outlook.office365.com"
    port=993
    ssl=yes
    tls=no
    user="[email protected]"
    password="XXXXX"
}

Any help would be fantastic.


Solution

  • I just don't think that play mailer works. There doesn't seem to be any working examples of this anywhere and as it's 2017 - it's probably been deprecated now anyway.