dsbezji539113152 2011-02-14 20:08
浏览 65
已采纳

PHPMailer适用于WAMP,但不适用于Production Server

Hello I'm trying to use PHPMailer to send emails via SMTP. So, on my development server (WAMP on my computer), it works fine. The mail server I use is mail.jackbusch.net which is on the same shared host that I am going to upload the site to for production.

But when I DO upload the website, PHP mailer stops working and returns SMTP: Error: Could Not Authenticate (when I try to use localhost as the server) and SMTP Error: Could Not Connect (when I type in the full smtp server name--i.e. mail.jackbusch.net).

This seems odd to me since I have several Wordpress installations that send email notifications just fine--and WP uses Phpmailer, correct?

I don't even know where to begin on fixing this?

EDIT: Thanks for your suggestions--I ended up just using the PEAR Mail package and it works perfectly fine.

I used the second example shown here: http://email.about.com/od/emailprogrammingtips/qt/PHP_Email_SMTP_Authentication.htm

I think one key difference is that before I was using Port 26, and the second time I was using the SSL port for my web host (a small orange). For whatever reason, it all worked out this time.

  • 写回答

1条回答 默认 最新

  • dsxxqndv41105 2011-02-15 19:26
    关注

    Used PEAR Mail package instead with the SSL example shown here: http://email.about.com/od/emailprogrammingtips/qt/PHP_Email_SMTP_Authentication.htm

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?