SMTP email configuration is not working

(Manzarul Haque) #1

I am trying to test email using gmail SMTP but it’s not working and in side log file as well not providing any error.
Can any body help with Gmail smtp working example . I am running application on my local system using vagrant. Thanks.

(Mittineague) #2

If you’re running Discourse on a localhost install I think you will need MailCatcher not Gmail

(Jay Pfaffman) #3

If you don’t want mail catcher, then get a recommended mail service and see the how to Troubleshooting email on a new Discourse install

(Lucas Nicodemus) #4

The only tip I can add is that if you’re dead set on trying to run locally with Gmail SMTP, you probably need to change email address that you’re trying to send from. I doubt Gmail SMTP will let you deliver mail with anything other than your account’s address as the from header, which is in the troubleshooting section Jay linked.

Mailcatcher or Mailgun will both be the preferred method for sending mail in the long run, however.