我send.php代碼我想發送郵件到我的Gmail,但未能
<?php
mail('mn###[email protected]', 'Mail Subject', 'From: md###[email protected]');
?>
和php.ini文件是
和sendmail.php是
我send.php代碼我想發送郵件到我的Gmail,但未能
<?php
mail('mn###[email protected]', 'Mail Subject', 'From: md###[email protected]');
?>
和php.ini文件是
和sendmail.php是
我認爲最好使用PHPMailer的https://github.com/Synchro/PHPMailer。它的面向對象,超級簡單,有很多選項。下面是一個簡單的例子:
我正在做一個關於mysqli的項目,它會適用嗎? –
是的。它不需要PDO或mysqli兼容性,因爲它不需要數據庫的功能 – theFreakative
http://stackoverflow.com/q/24644436/6390490 – smarttechy