如何让 Drupal Contact 模块发送电子邮件(在共享服务器上)
我在这方面运气不太好。在我的网站上,我已在“网站配置”>“网站信息”中设置了电子邮件地址,并且已授予联系人模块权限。事实上,当用户输入详细信息并按下提交(发送电子邮件按钮)时,消息会闪烁“电子邮件已发送”。但什么也没发生。我已经与我的托管提供商谈过了,但他说“您只需要使用服务器上托管的有效电子邮件地址和密码进行身份验证。您应该使用 pear smtp 方法。”我必须使用 pear smtp 方法编写一些 php 吗?我以为 Drupal 已经这么做了?
I'm not having much luck with this one. On my site I've set the email address in Site Configuration>Site information and i've allowed permissions for the contact module. Indeed, when the user enters their details and presses the submit (send e-mail button) the message flashes up "Email has been sent". But nothing happens. I've had a word with my hosting provider but he says "you just need to use authentication with a valid email address and password hosted on the server. You should be using the pear smtp method." Do I have to write some php using the pear smtp method? I thought Drupal would already do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该检查日志并确保将其发送到正确的目的地,或者查看是否存在有关任何错误的一些详细信息。
如果您确实需要设置 SMTP 身份验证,似乎有几个选项(请参阅 http://drupal. org/project/smtp)例如。
You should check your logs and make sure it's being sent to the right destination, or see if there are some details about any errors there.
If you do need to setup SMTP auth, it looks like there are a few options for that (see http://drupal.org/project/smtp) for example.