Skip to content

Instantly share code, notes, and snippets.

@mmottola24
Created August 30, 2012 19:52
Show Gist options
  • Select an option

  • Save mmottola24/3539218 to your computer and use it in GitHub Desktop.

Select an option

Save mmottola24/3539218 to your computer and use it in GitHub Desktop.
Using sendmail in Rails Mailer may send duplicate emails to recipient. Default sendmail settings may cause this. Fix it by adding this to /config/environments/production.rb to stop that behaviour.
config.action_mailer.sendmail_settings = {
:arguments => '-i'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment