sinclairnick / brail

💌 Transactional email that feels different
https://brail.dev
Apache License 2.0
258 stars 6 forks source link

Unable to send test email #29

Closed senguttuvang closed 1 year ago

senguttuvang commented 1 year ago

It is unclear from the documentation on how to send test email. Is this email handled in server side React or do we need Node us? Shall we use Laravel for dynamic/merge data and sending and use Brail for composing the email templates? Can we have any examples in the documentation? If we need to add SMPT, which part of the code do we need to do it?

sinclairnick commented 1 year ago

You can set the onSend method for a template which allows sending emails, in general. To specifically send a test email, we can use the Brail Devtools, which will call this onSend method we've attached to a template.

You can play around with this in a playground by clicking the email icon in the toolbar of the Devtools UI, and sending the email via the an API of your choice.