smtpmailer
1.0.0
A simple, lightweight and secure SMTP Client library written in PHP, only supports TLS, SSL
Via Composer
$ composer require dilongfa/smtpmailer
<?php
$mail = new SMTPMailerMailer('smtp.example.com', 587, 'tls');
$mail->setAuth('[email protected]', 'password');
$mail->setFrom('[email protected]', 'Sender Name');
$mail->setTo('[email protected]', 'Recipient Name');
$mail->setSubject('Subject...');
$mail->setBody('Body...');
if ($mail->send()) {
echo "Sent successfully";
} else {
echo "Sent failed";
}
Click here
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.