2017 © Pedro Peláez
 

library easy-mail

A wrapper for php's mail function that allows you to easily construct and send mails.

image

pushkar/easy-mail

A wrapper for php's mail function that allows you to easily construct and send mails.

  • Tuesday, July 3, 2018
  • by pushkar
  • Repository
  • 1 Watchers
  • 0 Stars
  • 24 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 15 Versions
  • 0 % Grown

The README.md

easy-mail

A wrapper for php's mail function that allows you to easily construct and send mails., (*1)

Install

With composer:, (*2)

composer require pushkar/easy-mail

Usage

require_once "../../path/to/vendor/autoload.php";

use EasyMail\Mail;

//Example 1

$mail = new Mail("send_to@exapmle.com");
$mail->setSubject("Subject");
$mail->setMsg("Msg");
if($mail->sendMail()) {
    echo "Mail Sent.";
}

//Example 2

$mail = new Mail("send_to@exapmle.com", "Subject", "Msg');
if($mail->sendMail()) {
    echo "Mail Sent.";
}

//Some methods

//For a reply-to header
$mail->addReplyTo("email@email.com", Name);

//For html email
$mail->isHtml(true);

//For adding custom header
$mail->customHeaders($header);

//set From
$mail->setFrom($email, $name);

//All methods
isValidEmail(string);
isHtml(bool);
setSubject(string);
setMsg(string);
addCC(string);
addBcc(string);
customHeader(string);
addReplyTo(string, string|null);
setFrom(string, string|null);
setPriority(int);
addAttachment(string);
setEncoding(string);
sendMail();

License

Copyright (c) 2018 Pushkar Anand. Under MIT License., (*3)

The Versions

03/07 2018

dev-master

9999999-dev https://github.com/pushkar-anand/easy-mail

A wrapper for php's mail function that allows you to easily construct and send mails.

  Sources   Download

MIT

The Requires

  • php >=7

 

The Development Requires

by Pushkar Anand

mailer easy simple

03/07 2018

v1.4.7

1.4.7.0 https://github.com/pushkar-anand/easy-mail

A wrapper for php's mail function that allows you to easily construct and send mails.

  Sources   Download

MIT

The Requires

  • php >=7

 

The Development Requires

by Pushkar Anand

mailer easy simple

17/06 2018

1.4.6

1.4.6.0 https://github.com/pushkar-anand/easy-mail

A wrapper for php's mail function that allows you to easily construct and send mails.

  Sources   Download

MIT

The Requires

  • php >=7

 

The Development Requires

by Pushkar Anand

mailer easy simple

17/06 2018

v1.4.5

1.4.5.0 https://github.com/pushkar-anand/easy-mail

A wrapper for php's mail function that allows you to easily construct and send mails.

  Sources   Download

MIT

The Requires

  • php >=7

 

The Development Requires

by Pushkar Anand

mailer easy simple

17/06 2018

v1.4.4

1.4.4.0 https://github.com/pushkar-anand/easy-mail

A wrapper for php's mail function that allows you to easily construct and send mails.

  Sources   Download

MIT

The Requires

  • php >=7

 

The Development Requires

by Pushkar Anand

mailer easy simple

17/06 2018

v1.4.2

1.4.2.0 https://github.com/pushkar-anand/easy-mail

A wrapper for php's mail function that allows you to easily construct and send mails.

  Sources   Download

MIT

The Requires

  • php >=7

 

The Development Requires

by Pushkar Anand

mailer easy simple

17/06 2018

v1.4.1

1.4.1.0 https://github.com/pushkar-anand/easy-mail

A wrapper for php's mail function that allows you to easily construct and send mails.

  Sources   Download

MIT

The Requires

  • php >=7

 

The Development Requires

by Pushkar Anand

mailer easy simple

17/06 2018

v1.4

1.4.0.0 https://github.com/pushkar-anand/easy-mail

A wrapper for php's mail function that allows you to easily construct and send mails.

  Sources   Download

MIT

The Requires

  • php >=7

 

The Development Requires

by Pushkar Anand

mailer easy simple

17/06 2018

v1.3.3

1.3.3.0 https://github.com/pushkar-anand/easy-mail

A wrapper for php's mail function that allows you to easily construct and send mails.

  Sources   Download

MIT

The Requires

  • php >=7

 

The Development Requires

by Pushkar Anand

mailer easy simple

17/06 2018

v1.3.2

1.3.2.0 https://github.com/pushkar-anand/easy-mail

A wrapper for php's mail function that allows you to easily construct and send mails.

  Sources   Download

MIT

The Requires

  • php >=7

 

The Development Requires

by Pushkar Anand

mailer easy simple

17/06 2018

1.3.1

1.3.1.0 https://github.com/pushkar-anand/easy-mail

A wrapper for php's mail function that allows you to easily construct and send mails.

  Sources   Download

MIT

The Requires

  • php >=7

 

The Development Requires

by Pushkar Anand

mailer easy simple

17/06 2018

v1.3

1.3.0.0 https://github.com/pushkar-anand/easy-mail

A wrapper for php's mail function that allows you to easily construct and send mails.

  Sources   Download

MIT

The Requires

  • php >=7

 

The Development Requires

by Pushkar Anand

mailer easy simple

12/06 2018

v1.2

1.2.0.0 https://github.com/pushkar-anand/easy-mail

A wrapper for php's mail function that allows you to easily construct and send mails.

  Sources   Download

MIT

The Requires

  • php >=7

 

The Development Requires

by Pushkar Anand

mailer easy simple

12/06 2018

v1.1

1.1.0.0 https://github.com/

A wrapper for php's mail function that allows you to easily construct and send mails.

  Sources   Download

MIT

The Requires

  • php >=7

 

The Development Requires

by Pushkar Anand

mailer easy simple

12/06 2018

v1.0

1.0.0.0 https://github.com/

A wrapper for php's mail function that allows you to easily construct and send mails.

  Sources   Download

MIT

The Requires

  • php >=7

 

The Development Requires

by Pushkar Anand

mailer easy simple