stackinstance / mailer-bundle
Stack Instance 邮件发送器
2.1.13
2021-08-18 11:35 UTC
Requires
- php: >=7.2.5
- swiftmailer/swiftmailer: ^6.2
- symfony/config: ^3.4|^4.0|^5.0
- symfony/dependency-injection: ^3.4|^4.0|^5.0
- symfony/http-kernel: ^3.4|^4.0|^5.0
README
#Stack Instance 邮件发送器包
安装方法
composer require stackinstance/mailer-bundle
使用方法
/** * @Route("/mail", name="mail") */ public function mailAction() { $mailer = $this->container->get('stack_instance.mailer'); $attachment = new Attachment(); $attachment->attach('/path/to/file/test.csv', 'file.csv', 'text/csv'); $mailer->send('This is my subject', 'This is the body', 'to@example.org', 'from@example.org', 'cc@address.com', 'bcc@address.com', $attachment); }
网站
PHP要求
从版本2.0.2开始,Stack Instance 邮件发送器包需要至少php 7.0.0。