Send HTML in email via PHP

后端 未结 8 2089
时光说笑
时光说笑 2020-11-22 03:13

How can I send an HTML-formatted email with pictures using PHP?

I want to have a page with some settings and HTML output which is sent via email to an address. What

8条回答
  •  盖世英雄少女心
    2020-11-22 03:36

    The trick is to know the content id of the Image mime part when building the html body part. It boils down to making the img tag

    https://github.com/horde/horde/blob/master/kronolith/lib/Kronolith.php

    Look at the function buildMimeMessage for a working example.

提交回复
热议问题