EmailProvider
Requirements
Configuration
{
"mailer": "default", // optional, uses the cbMailServices default otherwise
"onSuccess": () => {}, // optional, logs to info otherwise
"onFailure": () => {} // optional, logs to error otherwise
}toEmail
public struct function toEmail( notifiable, newMail ) {
return newMail(
to = notifiable.getEmail(),
from = "[email protected]",
subject = "Megaphone Email Notification",
type = "html",
bodyTokens = { product: "ColdBox" }
).setBody( "
<p>Thank you for downloading @product@, have a great day!</p>
" );
}routeNotificationForEmail
Last updated
