title: rails 3: how to abort delivery method in actionmailer?
body: <p>In my mailer controller, under certain conditions (missing data) we abort sending the email.</p>
  
  <p>How do I exit the controller method without still rendering a view in that case?</p>
  
  <blockquote>
    <p>return if @some_email_data.nil?</p>
  </blockquote>
  
  <p>Doesn't do the trick since the view is still rendered (throwing an error every place I try to use @some_email_data unless I add a lot of nil checks)</p>
  
  <p>And even if I do the nil checks, it complains there's no 'sender' (because I supposed did a 'return' before getting to the line where I set the sender and subject.</p>
  
  <p>Neither does <code>render ... return</code> </p>
  
  <p>Basically, RETURN DOESN'T RETURN inside a mailer method!</p>