官术网_书友最值得收藏!

Mail API

Now that we know how to log things in our application, let's turn our attention to the Drupal 8 Mail API. Our goal for this section is to see how we can send emails programmatically in Drupal 8. In achieving this goal, we will explore the default mail system that comes with the core installation (which uses PHP mail), and also create our own system that can theoretically use an external API to send mails. We won't go all the way with the latter because it's beyond the scope of this book. We will stop after covering what needs to be done from a Drupal point of view.

In the next and final section, we will look at tokens so that we can make our mailings a bit more dynamic. However, before we do that, let's get into the Mail API in Drupal 8.

主站蜘蛛池模板: 哈尔滨市| 家居| 金昌市| 吴旗县| 沧州市| 郑州市| 瑞金市| 孟津县| 临沭县| 禹州市| 桓台县| 桓仁| 水城县| 河南省| 江西省| 汝南县| 沭阳县| 长岭县| 大厂| 红原县| 安仁县| 馆陶县| 鄯善县| 江阴市| 二手房| 柘城县| 三都| 桃江县| 巴楚县| 西乌珠穆沁旗| 武宁县| 鲁山县| 从江县| 邯郸市| 泰州市| 梧州市| 汕尾市| 昆明市| 托克逊县| 杨浦区| 安图县|