最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【已解决】drupal配置smtp时出错warning: require_once(sites/all/modules/smtp/phpmailer/class.phpmailer.php) [function.require-once]: failed to open stream: No such file or directory in XXXallmodulessmtpsmtp.module on line 266.

Drupal crifan 2468浏览 0评论

【已解决】drupal配置smtp时出错warning: require_once(sites/all/modules/smtp/phpmailer/class.phpmailer.php) [function.require-once]: failed to open stream: No such file or directory in XXXallmodulessmtpsmtp.module on line 266.

【问题背景】

想要在drupla中安装smtp,下载模块后,放到modules下面,然后启动。

再去配置,结果安装网上说的填写好信息后,确定后,结果出错:

warning: require_once(sites/all/modules/smtp/phpmailer/class.phpmailer.php) [function.require-once]: failed to open stream: No such file or directory in E:DrupalApache_rootApache Software FoundationApache2.2htdocsdrupal6sitesallmodulessmtpsmtp.module on line 266.

【解决过程】

解决办法:

下载PHPMailer_v5.1.zip后,解压,然后将PHPMailer_v5.1文件夹及其内容整个都拷贝到sitesallmodulessmtp下面,然后将PHPMailer_v5.1改名为phpmailer即可。再去重新配置smtp,配置好后保持设置,就可以发送测试邮件到你的那个用于测试的邮箱了。然后登陆你的邮箱去看,就可以看到对应的刚发的邮件了。

完成后的文件夹,参考下图:

【已解决】drupal配置smtp时出错warning: require_once(sites/all/modules/smtp/phpmailer/class.phpmailer.php) [function.require-once]: failed to open stream: No such file or directory in XXXallmodulessmtpsmtp.module on line 266. - carifan - work and job

 

【总结】

我开始时,是安装phpmailer模块,然后把  class.phpmailer.php和  class.smtp.php拷贝到phpmailerphpmailer下面的,根本没用。

看了网上视频教程“第六讲-模块的安装与配置下.flv”后,才知道上面的解决办法的。。。

转载请注明:在路上 » 【已解决】drupal配置smtp时出错warning: require_once(sites/all/modules/smtp/phpmailer/class.phpmailer.php) [function.require-once]: failed to open stream: No such file or directory in XXXallmodulessmtpsmtp.module on line 266.

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
81 queries in 0.155 seconds, using 22.06MB memory