Closed armiiller closed 7 months ago
Adds support for lambdas in the from, bcc, and reply_to email options. Currently only the to field support dynamic addressing.
from
bcc
reply_to
to
Use case: I needed to support sending from dynamic email addresses for whitelabeling.
step :support, from: ->(user){user.account.brand_support_email.presence || "noreply@example.com"}
We need this exact feature to dynamically set the from email address
Adds support for lambdas in the
from
,bcc
, andreply_to
email options. Currently only theto
field support dynamic addressing.Use case: I needed to support sending from dynamic email addresses for whitelabeling.