stackinstance / mailer-bundle
Stack Instance Mailer
Installs: 2 757
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
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