I have a client who uses Office 365 for email. Using the basic phpMail config in Craft fails when I try to direct an email to any of the clients email addresses, including user registration and, more importantly, when sending a message from the Contact Form plugin.

I have tried in vain to change the Craft email settings to SMTP, using credentials that have been tested with a desktop email client. I am sure there is something I am missing, e.g. some server config thing.

Any advice would be greatly appreciated!


  • What do you mean if fails? Are you getting an error message or are they just not receiving the email? Or are you trying to use Office 365 as the SMTP server to relay?
    – Brad Bell
    Jun 27, 2015 at 1:04
  • Getting an error. I think the problem is rooted in the fact that the client's hosting account (Bluehost) is on a shared IP and, therefore, does not have access to "certain server features". I set up the exact same scenario on my site (hosted by Arcustech) and it works fine.
    – Roi Agneta
    Jun 28, 2015 at 17:24

1 Answer 1


It could be your server blocks outgoing mail on the default port (25). Try port 587 instead.

  • 1
    Thanks, Bob. I did use 587, but no luck
    – Roi Agneta
    Jun 26, 2015 at 19:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.