Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

jaeger-app/email

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jaeger Email Object

Build Status Scrutinizer Code Quality Author GitHub license

JaegerApp\Email is an email abstraction that works with both SwiftMailer 3 and 5 (depending on which is already available). Note that the Email object does NOT include any version of SwiftMailer and relies on the host system to provide one.

On top of that, JaegerApp\Email works with the JaegerApp\Language (for copy abstraction), and JaegerApp\View (for templating of email messages) using the Mustache templating language.

Installation

Add jaeger-app/email as a requirement to your composer.json:

$ composer require jaeger-app/email

Send Email

At its purest, sending an email using JaegerApp\Email looks like the below (albeit not 100%):

$vars = array('variable1' => 'Variable1');
$email->setSubject($subject)
	->setMessage($message_template)
	->setTo($emails)
	->addAttachment($file)
	->setMailtype('html');
$email->send($vars);

About

An email abstraction that works with both SwiftMailer 3 and 5 (depending on which is already available)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages