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

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.

主站蜘蛛池模板: 镇原县| 繁峙县| 新蔡县| 汉川市| 通江县| 永善县| 广东省| 锡林郭勒盟| 桂阳县| 清水河县| 桃园县| 西峡县| 稷山县| 十堰市| 甘谷县| 安阳市| 盐源县| 龙江县| 汝南县| 元阳县| 突泉县| 奉化市| 拉孜县| 汨罗市| 黑水县| 蒲江县| 西充县| 太白县| 黄梅县| 水城县| 柘城县| 新昌县| 吴江市| 靖江市| 原平市| 翼城县| 台东市| 封开县| 马龙县| 秭归县| 新河县|