smtpmailer
1.0.0
Une bibliothèque client SMTP simple, légère et sécurisée écrite en PHP, ne prend en charge que TLS, SSL
Via Compositeur
$ composer require dilongfa/smtpmailer
<?php
$ mail = new SMTPMailer Mailer ( ' 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 " ;
}
Cliquez ici
Si vous découvrez des problèmes liés à la sécurité, veuillez envoyer un e-mail à [email protected] au lieu d'utiliser le suivi des problèmes.
La licence MIT (MIT). Veuillez consulter le fichier de licence pour plus d'informations.