bariew/to-swift-mime-parser
Composer 安装命令:
composer require bariew/to-swift-mime-parser
包简介
Temporary fork untill goetas fix the bug
关键字:
README 文档
README
Parse a generic mail stream, and convert it to a SwiftMailer Message object
Installing (composer)
composer requre goetas/to-swift-mime-parser
Usage
<?php $parser = new \Goetas\Mail\ToSwiftMailParser\MimeParser(); // read a mail message saved into eml format (or similar) $inputStream = fopen('mail.eml', 'rb'); $mail = $parser->parseStream($inputStream); // now $mail is a \Swift_Message object // edit the email $mail->setFrom("me@you.it"); $mail->setTo("me@you.it"); $mail->setSubject("New Subject"); // optionally loop through mail parts (and edit it!) // $mail->getChildren(); // send a new mail $mailer->send($mail);
统计信息
- 总下载量: 1.25k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-09-25