stackinstance / mailer-bundle
Stack Instance Mailer
Package info
github.com/stackinstance/mailer-bundle
Type:symfony-bundle
pkg:composer/stackinstance/mailer-bundle
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 Mailer bundle
How to install
composer require stackinstance/mailer-bundle
Usage
/** * @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); }
Website
PHP requirements
As of version 2.0.2 the Stack Instance Mailer bundle needs a minimum of php 7.0.0