Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 845 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 845 Bytes

intervademailer

Easy-to-use php mailer class

##Supported Mail Clients Intervade Mailer currently only supports the php's mail() functionality but there is currently work being done to allow support for SMTP and sendmail functionality as well.

Example

This is a simple example on how to use the mailer with php's mail() function.

require('Intervade_Mailer.php'); 

$client = new Intervade_Mailer(); 
$client->setFromAddress('me@mydomain.com'); 
$client->addSendAddress('user@example.com');

$client->addAttachment('files/myfile.pdf', 'myfile.pdf', 'application/pdf'); 

//$client->send('My PDF File', 'Attached is my PDF file for your viewing pleasure'); 

$client->setSubject('My PDF File');
$client->setMessage('Attached is my PDF file for your viewing pleasure'); 
$client->send();