With the help of this add-on, email notification can be sent to admin as well as user on Member Registration. Following email services can be used:

  • Postmark
  • Mandrill
  • Sendgrid
  • Mailgun

Those email services already integrated within Statamic. If no email service provided, email will be sent via PHP simple mailer.

Installation


Download the add-on zip.

  • Copy / paste _add-ons/register_notification within _add-ons directory of Statamic setup.
  • Copy / paste _config/add-ons/register_notification within _config/add-ons directory of Statamic setup.

Settings


The add-on settings can be found in _config/add-ons/register_notification/register_notification.yaml with the following options:

send_user_notification_email: true

This can be set as true or false if sending email notification to user who is registering.

send_admin_notification_email: true

This can be set as true or false if sending email notification to admin.

# email services
# postmark
# mandrill
# sendgrid
# mailgun

email_handler:
email_handler_key:

An email service (postmark, mandrill, sendgrid, mailgun) can be set as email_handler and email service API Key will be set as email_handler_key.

user_email:
to: “{{ email }}”
bcc:
cc:
from: “from email address”
subject: Subject
html_template: email/html_template
text_template: email/text_template

to: “admin email”
bcc:
cc:
from: “from email address”
subject: Subject
html_template: email/html_template
text_template: email/text_template

User and admin email options.