Skip to content

Simple Mail - PHP SMTP Mail Library

License

Notifications You must be signed in to change notification settings

seritpt/SimpleMail

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple Mail

PHP SMTP Mail Library

Simple Mail is a PHP library for sending email through SMTP protocol using authentication.

Supports SSL and TLS security.

require 'classSimpleMail.php';

$mail = new SimpleMail('smtp.gmail.com', 587, 'tls');
$mail->auth('[email protected]', 'password');

$mail->from('[email protected]', 'Burt Johnson');
$mail->to('[email protected]', 'John Smith');

$mail->subject = 'Hello, partner';
$mail->message = '<h3>My Message</h3>
                  <b>This</b> is a html test message.'

if ($mail->send())
	echo 'Mail sent successfully.';
else
	echo 'Error: ' . $mail->error;

About

Simple Mail - PHP SMTP Mail Library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%