Creating Emails
$ python craft mailable Welcomeclass Welcome(Mailable):
def build(self):
(
self.subject("Welcome to our site!")
.from_("[email protected]")
.view("mailables.welcome", {})
)Sending Mailables
from masonite.mail import Mail
from app.mailables.Welcome import Welcome
class WelcomeController(Controller):
def welcome(self, mail: Mail):
mail.mailable(Welcome().to('[email protected]')).send()Mail Options
Options
Description
Sending Attachments
Mailable Responses
Changing Drivers
Last updated