- Drupal 8 Module Development
- Daniel Sipos
- 173字
- 2021-07-02 15:45:21
Custom mail plugins
In the preceding section, we saw how we can use the Drupal 8 mail API to send emails programmatically in Drupal 8. In doing so, we used the default PHP mailer, which although is good enough for our example, might not be so for our application. For example, we might want to use an external service via an API.
In this section, we will teach you how to do this. To this end, we will need to write our own mail plugin that does just that, and then simply tell Drupal to use that system instead of the default one. Yet another plugin-based, noninvasive, extension point.
Before we start, I would like to mention that we won't go into any kind of detail related to the potential external API. Instead, we will stop at the Drupal 8-specific parts, so the code you will find in the repository won't do much--it will be used as an example only. It's up to you to use this technique if you need to.
- Node.js Design Patterns
- What's New in TensorFlow 2.0
- Hands-On Data Structures and Algorithms with JavaScript
- Learning AWS Lumberyard Game Development
- Learn Programming in Python with Cody Jackson
- PostgreSQL Replication(Second Edition)
- Mastering Drupal 8 Views
- 深入理解Elasticsearch(原書第3版)
- HTML5與CSS3基礎教程(第8版)
- NGINX Cookbook
- Java網絡編程實戰
- 持續輕量級Java EE開發:編寫可測試的代碼
- 響應式架構:消息模式Actor實現與Scala、Akka應用集成
- MongoDB Cookbook(Second Edition)
- Mastering Unreal Engine 4.X