Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow mail rendering at delay time #672

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jul 17, 2014

  1. allow mail rendering at delay time

    The current solution to delayed mail delivery renders the mail template at delivery time:
        Notifier.delay.signup(@user)
    
    When you try to explicitly delay delivery you will get an error:
        Notifier.signup(@user).delay.deliver
        > Use MyMailer.delay.mailer_action(args) to delay sending of emails.
    
    The new approach will serialize the mail message at delay time using Mail::Message.encoded and deserialize using the constructor:
        Notifier.signup(@user).delay.deliver
    hqm42 committed Jul 17, 2014
    Configuration menu
    Copy the full SHA
    4f7ee8f View commit details
    Browse the repository at this point in the history