E-mail issues with SendGrid


(miceiken) #1

Hello. I’ve just set up a Discourse install with Docker on a DigitalOcean VPS. However, I am experiencing some problems with e-mail. I am using SendGrid as an SMTP server.

I keep getting this error:

Started POST “/session” for 128.39.148.250 at 2014-10-19 00:30:54 +0000
Processing by SessionController#create as /
Parameters: {“login”=>“miceiken”, “password”=>"[FILTERED]"}
Completed 200 OK in 318ms (Views: 0.4ms | ActiveRecord: 5.8ms)
Started POST “/users/action/send_activation_email” for 128.39.148.250 at 2014-10-19 00:30:56 +0000
Processing by UsersController#send_activation_email as /
Parameters: {“username”=>“miceiken”}
Rendered text template (0.1ms)
Completed 200 OK in 50ms (Views: 1.5ms | ActiveRecord: 3.4ms)

Sent mail to ---@gmail.com (148.1ms)
Job exception: 535 Authentication failed: Bad username / password

Job exception: Wrapped Net::SMTPAuthenticationError: 535 Authentication failed: Bad username / password

I tried using the very same server, port, username and password by connecting by telnet to the SMTP server, and I got “authentication successful”, using this guide.

Any ideas?


(miceiken) #2

Solved it. Apparently you can’t use special characters in your password.


(Jeff Atwood) #3