2017 © Pedro Peláez
 

library mailer

A very lightweight PHP email sender

image

laasti/mailer

A very lightweight PHP email sender

  • Tuesday, November 15, 2016
  • by nebulousGirl
  • Repository
  • 1 Watchers
  • 0 Stars
  • 284 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 28 Forks
  • 3 Open issues
  • 15 Versions
  • 4 % Grown

The README.md

# Laasti/mailer

A lightweight mail sender, credits to https://github.com/txthinking/Mailer for the inspiration and SMTP server., (*1)

Installation

$ composer require laasti/mailer

Usage

<?php
use Laasti\Mailer;
$server = new Servers\SMTP($logger, $host, $username, $password, $port);
$ok = (new Mailer($server))
    ->setFrom('You', '') //your name, your email
    ->setFakeFrom('heelo', 'bot@fake.com') // if u want, a fake name, a fake email
    ->addTo('Cloud', 'cloud@txthinking.com')
    ->setSubject('Test Mailer')
    ->setBody('Hi, I <strong>love</strong> you.')
    ->addAttachment('host', '/etc/hosts')
    ->send();
var_dump($ok);

OR, (*2)

<?php
use Laasti\Mailer\Servers\SMTP;
use \Laasti\Mailer\Message;
use \Monolog\Logger;

$server = new SMTP($logger, $host, $username, $password, $port);
$mailer = new Mailer($server);

$message = new Message();
$message->setFrom('Tom', 'your@mail.com') // your name, your email
    ->setFakeFrom('heelo', 'bot@fake.com') // if u want, a fake name, a fake email
    ->addTo('Cloud', 'cloud@txthinking.com')
    ->setSubject('Test Mailer')
    ->setBody('

For test

') ->addAttachment('host', '/etc/hosts'); $ok = $mailer->send($message); var_dump($ok);

A number of servers are available: FileServer (prints message to file), Mail, NullServer (does nothing), SMTP, Sendmail, (*3)

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

History

See CHANGELOG.md for more information., (*4)

Credits

Author: Sonia Marquette (@nebulousGirl), (*5)

License

Released under the MIT License. See LICENSE file., (*6)

The Versions

15/11 2016

dev-master

9999999-dev http://github.com/laasti/mailer

A very lightweight PHP email sender

  Sources   Download

MIT

The Requires

 

The Development Requires

mail email mailer smtp sendmail

15/11 2016

v2.1.1

2.1.1.0 http://github.com/laasti/mailer

A very lightweight PHP email sender

  Sources   Download

MIT

The Requires

 

The Development Requires

mail email mailer smtp sendmail

22/04 2016

v2.1

2.1.0.0 http://github.com/laasti/mailer

A very lightweight PHP email sender

  Sources   Download

MIT

The Requires

 

The Development Requires

mail email mailer smtp sendmail

14/01 2016

v2.0.4

2.0.4.0 http://github.com/laasti/mailer

A very lightweight PHP email sender

  Sources   Download

MIT

The Requires

 

The Development Requires

mail email mailer smtp sendmail

13/01 2016

v2.0.3

2.0.3.0 http://github.com/laasti/mailer

A very lightweight PHP email sender

  Sources   Download

MIT

The Requires

 

The Development Requires

mail email mailer smtp sendmail

12/01 2016

v2.0.2

2.0.2.0 http://github.com/laasti/mailer

A very lightweight PHP email sender

  Sources   Download

MIT

The Requires

 

The Development Requires

mail email mailer smtp sendmail

23/10 2015

v2.0.1

2.0.1.0 http://github.com/laasti/mailer

A very lightweight PHP email sender

  Sources   Download

MIT

The Requires

 

The Development Requires

mail email mailer smtp sendmail

28/08 2015

v2

2.0.0.0 http://github.com/laasti/mailer

A very lightweight PHP email sender

  Sources   Download

MIT

The Requires

 

The Development Requires

mail email mailer smtp sendmail

18/05 2015

dev-develop

dev-develop http://github.com/txthinking/Mailer

A very lightweight PHP SMTP mail sender

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matt Sowers

mail smtp

18/05 2015

v1.2.1

1.2.1.0 http://github.com/txthinking/Mailer

A very lightweight PHP SMTP mail sender

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matt Sowers

mail smtp

01/04 2015

v1.2.0

1.2.0.0 http://github.com/txthinking/Mailer

A very lightweight PHP SMTP mail sender

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matt Sowers

mail smtp

01/04 2015

dev-feature-daemionfox

dev-feature-daemionfox http://github.com/txthinking/Mailer

A very lightweight PHP SMTP mail sender

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matt Sowers

mail smtp

30/03 2015

v1.1.1

1.1.1.0 http://github.com/txthinking/Mailer

A very lightweight PHP SMTP mail sender

  Sources   Download

MIT

The Requires

  • php >=5.3.2
  • txthinking/util dev-master

 

The Development Requires

mail smtp

30/03 2015

v1.1.0

1.1.0.0 http://github.com/txthinking/Mailer

A very lightweight PHP SMTP mail sender

  Sources   Download

MIT

The Requires

  • php >=5.3.2
  • txthinking/util dev-master

 

The Development Requires

mail smtp

14/03 2015

v1.0.1

1.0.1.0 http://github.com/txthinking/Mailer

A very lightweight PHP SMTP mail sender

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

The Development Requires

mail smtp