email - Response from SMTP server with Rails -


how response smtp server in ruby on rails using actionmailer, when send email mailer.deliver method?

i found actionmailer smtp server response answer doesn't work... idea?

i need because aws ses return message id through, , it's way message linked bounce or spam report provide after.

if smtp in way this

response = mail.your_mail().deliver 

and isn't getting response need, try deliver_now!

response = mail.your_mail().deliver_now! pp response.message 

this show result: 250 2.0.0 ok: queued 3lg8s16khmz6zhxq

i configured smtp settings on mail.rb

delivery_options = {   user_name: 'email@server.com.br',                        password: 'mypassword',                        authentication: :login,                        address: 'smtp.mycompany.com.br',                        port: 2525,                        domain: 'mycompany.com.br',                        return_response: true                     } 

Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -