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

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.

主站蜘蛛池模板: 上饶市| 孝昌县| 呈贡县| 德兴市| 巴马| 成都市| 泰安市| 伊金霍洛旗| 若尔盖县| 新巴尔虎左旗| 正蓝旗| 延吉市| 石柱| 赞皇县| 安远县| 宜州市| 社旗县| 贵港市| 绥滨县| 延吉市| 广宁县| 黄梅县| 洞口县| 东乡| 赣州市| 德江县| 新建县| 寿阳县| 乌什县| 平山县| 达尔| 新竹县| 临桂县| 凤阳县| 连江县| 濉溪县| 南投县| 林周县| 灵山县| 陈巴尔虎旗| 黎川县|