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

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.

主站蜘蛛池模板: 金湖县| 来宾市| 赤城县| 宜兰市| 潮安县| 唐海县| 金乡县| 柳河县| 闻喜县| 鄱阳县| 湘阴县| 都江堰市| 井陉县| 保康县| 富宁县| 宕昌县| 称多县| 黄陵县| 板桥市| 秦安县| 卓尼县| 剑阁县| 沂南县| 玛沁县| 双流县| 得荣县| 晋江市| 成安县| 应城市| 阿拉善盟| 定州市| 北海市| 漳浦县| 梁河县| 潢川县| 洪洞县| 巫溪县| 蚌埠市| 横峰县| 和政县| 东海县|