You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
victorbstan edited this page Feb 10, 2013
·
1 revision
Gotchas
If your cron reports errors like this:
A sender (Return-Path, Sender or From) required to send a message (ArgumentError)
You might have to specify return_path and sender in your mailer, even if you have your production environment configuration to send through an account like GMail.
default from: "Your Name <your.name@example.com>",
return_path: 'your.name@example.com',
sender: 'your.name@example.com'
In the context of a mailer:
classYourMailer < ActionMailer::Basehelper:applicationdefaultfrom: "Your Name <your.name@example.com>",return_path: 'your.name@example.com',sender: 'your.name@example.com'defyour_mailer_email# your mailer logicendend