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
I'm trying to skip a mailing when a condition I provide is false.
Please see the following code snippet:
config.sequence :paid_onboarding do |seq|
seq.title = "Paid Onboarding"
seq.list = :paid_users
seq.start_at = Proc.new { |user| user.account.subscription_end - 30.days } # days that have passed since subscription will be used in absolute_delay mailings below
seq.enable
# I WANT TO SKIP THIS MAILING FROM BEING SENT WHEN A CONDITION I PASS RETURNS FALSE
# For example: Time.now < (user.account.subscription_end + 45.days)
seq.mailing :subscription_ended_email_45 do |mailing|
mailing.title = "Subscription ended 45 days ago"
mailing.absolute_delay = 75.days
mailing.mailer_name = "UserMailer"
mailing.enable
end
end
Question: Is maily_herald capable of handle conditionals to determine whether or not an email must be sent?
If not, what other alternatives I have to accomplish my goal?
The text was updated successfully, but these errors were encountered:
I'm trying to skip a mailing when a condition I provide is false.
Please see the following code snippet:
Question: Is maily_herald capable of handle conditionals to determine whether or not an email must be sent?
If not, what other alternatives I have to accomplish my goal?
The text was updated successfully, but these errors were encountered: