Skip to content

How can I send a notification to an email address without having a database record for the recipient? #418

Answered by excid3
straversi asked this question in Q&A
Discussion options

You must be logged in to vote

In this case, you don't have a recipient object to deliver to, so you will want to use a bulk delivery.

I would use MyNotifier.with(record: thing, email: "[email protected]").deliver and use a Bulk Delivery method to send the email. You'll have to create a custom bulk email delivery method that sends the mailer as well.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@straversi
Comment options

@t2
Comment options

Answer selected by straversi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants