fifths/php_mail

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

php_mail

0.0.1 2016-01-04 07:28 UTC

This package is auto-updated.

Last update: 2021-09-14 22:27:10 UTC


README

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

Installation

composer require fifths/php_mail

Quick Start and Examples

require __DIR__ . "/../vendor/autoload.php";
use Mail\Smtp;

$mail = new Smtp();

$mail->host = 'smtp.163.com';
$mail->user = 'xxx@163.com';
$mail->pass = 'xxx';

$mail->debug = true;
$mail->nickname = 'fifths';
$to = "xxx@qq.com";
$subject = 'it is subject';
$body = 'it is body';
$data = $mail->sendMail($to, $body, $subject);
print_r($data);
succeed connect to smtp.163.com:25
220 163.com Anti-spam GT for Coremail System (163com[20141201])
250 OK
334 UGFzc3dvcmQ6
235 Authentication successful
250 Mail OK
250 Mail OK
354 End data with <CR><LF>.<CR><LF>
250 Mail OK queued as smtp7,C8CowEA5d0bRGYpW8O4AAA--.501S2 1451891154
221 Bye