我想發送電子郵件從本地主機,而不使用域名。使用php xampp。有沒有可能的做法呢?發送本地電子郵件
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: [email protected]' . "\r\n";
mail("[email protected]", "subject", "body", $headers);
您需要在本地運行郵件服務器 – Ibu 2012-08-02 06:04:40