Issue with mail after install

Hello,

I just installed discourse in DO and I’m having issues sending email: This is what I see in the logs:

Processing by Admin::EmailController#index as JSON
  Parameters: {"_"=>"1486273924108"}
Completed 200 OK in 18ms (Views: 0.6ms | ActiveRecord: 12.0ms)
Started GET "/about/live_post_counts.json?_=1486273924109" for 69.138.184.85 at 2017-02-05 05:52:04 +0000
Processing by AboutController#live_post_counts as JSON
  Parameters: {"_"=>"1486273924109"}
Completed 200 OK in 20ms (Views: 0.3ms | ActiveRecord: 9.7ms)
Started POST "/admin/email/test" for 69.138.184.85 at 2017-02-05 05:52:18 +0000
Processing by Admin::EmailController#test as */*
  Parameters: {"email_address"=>"computertech2124@gmail.com"}

so not sure where Is the problem. I’m using mailgun and I have added all the records required and my domain is verified.

This is what is on my app file:

DISCOURSE_SMTP_ADDRESS: smtp.mailgun.org
  DISCOURSE_SMTP_PORT: 576
  DISCOURSE_SMTP_USER_NAME: postmaster@gaming.org
  DISCOURSE_SMTP_PASSWORD: "mypassword"
  DISCOURSE_SMTP_ENABLE_START_TLS: true    

DISCOURSE_SMTP_PORT should be 587 instead of 576.

2 Likes

thank you! I must had misstype it. Now I got it to send the email but, the mailgun logs give me this info:

 "reject": {
    "reason": "Free accounts are for test purposes only. Please upgrade or add the address to authorized recipients in Account Settings.",
    "description": ""

I have added the postmaster email as the authorized recipients and I thought mailgun offered free services?

A few weeks ago they changed their policy. It is still free for the first 10k messages per month, but you must give them a credit card to be able to send mail.

4 Likes

oh wow :neutral_face: thank you for mentioning. Its mailgun still a better option? It was easier to use them than the other options.

so yeah I added my CC and everything worked. Thanks for the information. The support did not even mentioned that.

2 Likes