Mailable
class. This class will act as the settings for your email such as the address you are sending from, the subject, the text of the email, the html of the email, etc.Mail
class in your controller:Mail
facade anywhere in your code:to('[email protected]')
to('Joseph <[email protected]>')
.from_("[email protected]")
cc(["[email protected]"])
bcc(["[email protected]"])
subject('Subject of the Email')
reply_to('[email protected]')
text('Welcome to Masonite')
html('Welcome to Masonite')
view('mailables.view', {})
priority(1)
low_priority()
high_priority()
attach('MAY.pdf', 'path/invoice.pdf')
view()
option in your mailable then you will need to set the application on the mailable:driver
argument in the send()
method: