我的php版本是7.3,下载的class.phpmailer.php和class.smtp.php。
邮箱和授权码都没有问题,在phpmailer类里面有一段switch-case代码,如果发送邮件时使用smtpSend()函数(phpmailer类的Mailer属性值为“smtp”)就报错无法连接到smtp主机,而如果是default情况使用Mailsend()函数则会报错mail方法无法实例化。
网上说的修改smtp大小写,以及有个函数前面加个字母p我都试过,并没有什么用。
有没有大神帮忙解决一下
![[呵呵]](/static/emoticons/u5475u5475.png)
。如果需要代码截图dd一下就行了。