Search⌘ K
AI Features

Mail Methods

Explore how to send emails in AdonisJs using Mail.send and Mail.raw methods. Understand how to build mail messages by setting recipients, sender, subject, adding text content, and attachments to effectively notify users in your applications.

Sending emails is an integral part of many applications. For instance, we may want to send emails to notify our customers about something. Hence, Adonis has support for sending emails.

Methods to send an email

We can use the following methods to send an email:

Mail.send(views, data, callback)

  • views can be one or more Edge template files that contain the HTML that will be sent. ...