title: Response from SMTP server with Rails
body: <p>How could I get the response from an SMTP server in Ruby on Rails using ActionMailer, when I send an email with the <code>Mailer.deliver</code> method?</p>
  
  <p>I found the <a href="https://stackoverflow.com/questions/6374648/actionmailer-smtp-server-response">Actionmailer SMTP Server Response</a> answer but it doesn't work... Any idea?</p>
  
  <p>I need it because <a href="http://docs.aws.amazon.com/ses/latest/DeveloperGuide/smtp-response-codes.html" rel="nofollow noreferrer">AWS SES return a message ID</a> through, and it's the only way to get the message linked to a bounce or spam report they provide after.</p>