网站上联系表格的邮件服务器模拟

发布于 2024-08-26 13:03:40 字数 183 浏览 4 评论 0原文

我意识到我需要使用邮件服务器以便人们可以联系我,我的问题是,如何在本地计算机上设置一个邮件服务器以便我可以测试它?

我已经使用 PHPMyAdmin 安装了 XAMPP,我只是在玩弄和学习它。

现在,在我的生产服务器中,我应该使用什么电子邮件向我发送用户评论?我真的很新,需要一些指导。

I realize that I need to use a mailserver so people can contact me, my question is, how can I set one up on my local machine so I can test it?

I have XAMPP installed with PHPMyAdmin and I'm just toying and learning with it.

Now, in my PRODUCTION server, what email should I use to send users comments to me? I'm really new and need some guidance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

一人独醉 2024-09-02 13:03:44

一般来说,我不建议您在本地计算机上设置邮件服务器只是为了测试。

查看 PHP 函数 mail(),它应该已经配置好了并准备好在生产服务器上运行。

如果您想测试脚本是否有效,只需打印出要传递给 mail() 的参数即可。

Generally I don't recommend you setting up a mailserver on your local machine just for testing.

Check out the PHP function mail(), it should be already configured and ready to run on the production server.

If you want to test if your script works, simply print out the arguments you would pass to mail().

年少掌心 2024-09-02 13:03:44

假设您的生产服务器运行 Linux,您可以使用 sendmail 二进制文件或本地 smtp。

Assuming your production server is running linux, you can use the sendmail binary or local smtp.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文