在伺服器安裝sendmail
sudo apt-get install sendmail
啟動sendmail
sudo /etc/init.d/sendmail start
Function sendMail
[mail function] SMTP = localhost smtp_port = 25 sendmail_from = me@example.com
以上就是PHPMailer - PHP email transport class 的內容,更多相關內容請關注PHP中文網(www.php.cn)!