Skip to content

nuex/php-email

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

php-email

A simple wrapper for PHP mail that supports attachments and setting the attachment disposition (i.e. inline attachments).

USAGE

require_once('email.php');

email::send(array(
  'subject' => 'Check out these pics!',
  'from' => 'John Smith <jsmith@email.com>',
  'to' => 'Jane Doe <jdoe@email.com>',
  'body' => "These pics are cool, I'm not even lying.",

  // Extra Headers
  'headers' => array(
    'X-Mailer' => 'PHP/' . phpversion()
  ),

  // Attachments 
  'attachments' => array(
    array(
      'path' => '/var/sites/mysite/public/pics/picture.jpg'
    ),
    array(
      'path' => '/var/sites/mysite/public/pics/picture2.jpg',
      'disposition' => 'inline'
    )
  )
));

About

Wrapper for PHP mail. Supports attachments.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages