email - Rails mailer smtp configuration with gmail -
so having trouble setting rails application(openproject, if makes difference). when try send test mail in openproject settings displays message in e-mail sent don’t ever receive @ address.
config/configuration.yml
production: delivery_method: :smtp smtp_settings: tls: true address: "smtp.gmail.com" port: '587' domain: "smtp.gmail.com" authentication: :plain user_name: "your_email@gmail.com" password: "your_password" development: delivery_method: :smtp smtp_settings: tls: true address: "smtp.gmail.com" port: '587' domain: "smtp.gmail.com" authentication: :plain user_name: "your_email@gmail.com" password: "your_password" test: delivery_method: :test
if use:
telnet smtp.gmail.com 587 trying 64.233.171.108... connected gmail-smtp-msa.l.google.com. escape character '^]'. 220 mx.google.com esmtp r1sm2094806qam.42 – gsmtp
this leads me think can send gmail cant receive gmail. have tried of configurations such port 25 , 456 ssl vs tls , none. don't think isp blocking mail.
in google settings → accounts , import → add email address own send mail through smtp server.
smtp server: smtp.my_domain_name.com port: 587 username: my_username_on_my_domain password: passwd tls (recommended) ← (i have selected) ssl
i message couldn't reach server. please double-check server , port number.
i did run
netstat -a
if results of helpful let me know.
any appreciated. thanks.
unfortunately there no logs in question. please note:
- gmail api not support sent email different adress(protect spam/spoof)
- rails can send email self application , options tell him host use.
consider config.action_mailer.raise_delivery_errors = true
debug code , settins.
Comments
Post a Comment