title: Rails, check if email was sent or not
body: <p>I have an app that sends email to registred users. This app sends an automatic email to the user while he is using some functions. Plus, on the admin screen, the admin can send emails to all persons that didn't get the email sent automatically for any reason. I store in database a value showing if the email was delivered or not, so the admin won't send emails to someone that already got one.</p>
  
  <p>The problem is: how can I check if the email was delivered correctly in order to update this value? I am not talking about tests, I need to check right after the method <code>deliver</code> is called if the email was sent, or if any problem happened, like connection loss or  email is invalid. Is there any method or way to do this?</p>
  
  <p>Thanks.</p>