stackinstance/mailer-bundle

Stack Instance Mailer

Installs: 2 754

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

2.1.13 2021-08-18 11:35 UTC

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