smtpmailer
1.0.0
PHP로 작성된 간단하고 가볍고 안전한 SMTP 클라이언트 라이브러리는 TLS, SSL만 지원합니다.
작곡가를 통해
$ 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 " ;
}
여기를 클릭하세요
보안 관련 문제를 발견한 경우 문제 추적기를 사용하는 대신 [email protected]으로 이메일을 보내주세요.
MIT 라이센스(MIT). 자세한 내용은 라이센스 파일을 참조하십시오.