Mail API

Jaywant Topno March 23, 2017

How to send custom formatted HTML mail in Drupal 8 using hook_mail_alter()

As you can understand from name itself it’s basically used to Alter an email created with drupal mail in D7/ MailManagerInterface->mail()in D8.  hook_mail_alter() allows modification of email…

Jaywant Topno February 17, 2017

Beginner’s guide to Mail System in Drupal 7 and 8

This blog is all about How Drupal handles the Mail system & the stages it has to go through. In Drupal to sends an email we need to take care of two rules Declare all the required properties…

Aditya Anurag March 15, 2016

How to send mail programmatically in Drupal 8

Sometime we require emails to be sent on certain events e.g. for a blog website or a news site we may need to send email after creating new article or blog or in case of e-commerce site we may need…