Skip to content
On this page

Mailing

  • Mail Driver: The email sending method. Currently support SMTP, AmazonSES, Postal, Mailgun and Sendgrid.

Custom Email Templates

  • In addition to the added templates and email providers in the system, you can create your own templates for use.

  • First you need to go to /resources/mail , this directory stores the mail template, you can modify the .tpl files.

  • To add a new mail provider go to /src/Services/Mail/, this directory contain all the provider,

You can added your provider with these functions required extending class to MailAbstract.

php
function __construct()

function send($to, $subject, $text, $file): void

function form()

In /src/Services/Mail.php function getClient() add the provider.

  • After the creation is complete, go back to the Admin -> Settings -> Mailing -> Mail Driver, and you can see it listed.

Use of mailing system

  • Account verification code
  • Password reset code
  • Email chnage verification code
  • Admin email message
  • Admin notices
  • Service expire notification
  • Service traffic reset notice.