- 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.
- Cross-platform Desktop Application Development:Electron,Node,NW.js,and React
- Learning Zurb Foundation
- H5頁面設計:Mugeda版(微課版)
- HTML+CSS+JavaScript編程入門指南(全2冊)
- RubyMotion iOS Develoment Essentials
- SQL Server 2016 從入門到實戰(視頻教學版)
- 視窗軟件設計和開發自動化:可視化D++語言
- Implementing Microsoft Dynamics NAV(Third Edition)
- Java設計模式深入研究
- Leaflet.js Essentials
- 基于Docker的Redis入門與實戰
- Testing Practitioner Handbook
- Ionic Framework By Example
- Erlang編程指南
- 點云庫PCL從入門到精通