我想发送电子邮件从本地主机,而不使用域名。使用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