我是一个PHP的新手。这是我用PHP发送电子邮件的代码。发送电子邮件与PHP和可能配置SMTP设置
mail("[email protected]", "the subject", $message,
"From: [email protected] \r\n"
."X-Mailer: PHP/" . phpversion());
可以用PHP沙箱在这里找到:
http://sandbox.onlinephpfunctions.com/code/88e1df4ddf90cdf64d5e04c2c2da4c10dfb801ee
但是没有关系的工作。
我需要设置SMTP连接吗?如果是这样,怎么样?
请如果您对此有任何解释的话。 – user2950593