PHP code example of felixfw / email-origin
1. Go to this page and download the library: Download felixfw/email-origin library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
felixfw / email-origin example snippets
// 清除
$html = '<div>未过滤正文以及引用</div>';
$fromEmail = '****@gmail.com';
(new Email())->getContent($html, $fromEmail);
// 拼装
$html = '<div>正文</div>';
$orderHtml = '<div>引用</div>';
$fromEmail = '****@gmail.com';
(new Email())->setContent($html, $orderHtml, $fromEmail);