I can't get mail server working

I would like to run Discourse, but for whatever reason I can’t get the mail server working. I have tried using google and dreamhost as mail servers, but neither work. Is there an easy solution to this?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Discourse sends email verification, so you need to set up a mail server to send mail from. I followed the troubleshooting guide with no success. I can’t include the link (reports it as spam) but I’ve copied some of it below:

Did you enter email settings correctly? Double check your app.yml:

Did you fill in the SMTP address, SMTP username, and SMTP password fields correctly, as specified by your mail provider?

Make sure you copy and paste the mail provider password – do not type it in manually.

Does the value for DISCOURSE_DEVELOPER_EMAILS correctly have one set of single quotes around it ‘like this’?

Are the values aligned with the correct indentation for the email section? YML files are alignment sensitive. Even one extra space at the beginning of a line will cause problems.

Did you remove the YML comment marker # in front of the lines?

A valid app.yml email section looks like this:


You trying to use php to send mails or…?