anarute
(Ana Rute Mendes)
September 14, 2016, 11:44pm
1
I have just deployed my application and apparently it works right (http://54.69.32.199 ) but I’m not being able to send any email.
I’m using unicorn + nginx. I have already checked and my sendmail works. I also have checked unicorn and mail logs, but found nothing helpful.
Can anyone give me tips if I’m missing any config or a log that I haven’t checked?
Thank you in advance.
Hey Ana, I had the same problem with sendmail, so I switched to SMTP (on Heroku), and it’s working fine.
I’ve put in the details if my google apps for work address (with my own domain). The following is production settings from my config.yml:
production: secret_key_base: [rake secret] domain: "my-app.herokuapp.com" mail_delivery_method: "smtp" smtp_email_address: "smtp.gmail.com" smtp_email_port: 587 smtp_email_user_name: "jarvis@swish.online" smtp_email_password: "passwordforthatemail" smtp_email_domain: "gmail.com" google_maps_key: [apikey]
I did get an email from Google Apps saying someone tried to login from an unsecure app, and I had to confirm I wanted to do that, after which, the emails worked. I believe that is because I turned off the SSL app on Heroku though. Also probably why I can’t post listings now as the google maps api key won’t authenticate anymore to allow me to put in locations…
1 Like
anarute
(Ana Rute Mendes)
September 15, 2016, 4:27pm
3
Thank you!
I changed to smtp as you said and it worked
For some reason I changed back to sendmail just to test again and it is working too! go figure…
2 Likes
Awesome! Weird re: changing back. Wonder if you had some mistyped syntax in your config before…
vivekraj
(vivek raj)
December 5, 2017, 4:41am
5
Hi what about email setting for development environment configuaration