Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
[Solved] "exception 'phpmailerException' : SMTP Error: Could not authenticate*
mikizzi
New
It seems email subscribe plugin is causing this error:
Here below more details about this error, did I do something wrong?
Thanks in advance
exception 'phpmailerException' with message 'SMTP Error: Could not authenticate.' in /home/kapdiagn/public_html/forum/library/vendors/phpmailer/class.phpmailer.php:815 Stack trace: #0 /home/kapdiagn/public_html/forum/library/vendors/phpmailer/class.phpmailer.php(706): PHPMailer->SmtpConnect() #1 /home/kapdiagn/public_html/forum/library/vendors/phpmailer/class.phpmailer.php(577): PHPMailer->SmtpSend('Date: Fri, 30 D...', 'Adminstrator ha...') #2 /home/kapdiagn/public_html/forum/library/core/class.email.php(202): PHPMailer->Send() #3 /home/kapdiagn/public_html/forum/plugins/EMailSubscribe/default.php(73): Gdn_Email->Send() #4 /home/kapdiagn/public_html/forum/library/core/class.pluginmanager.php(648): EMailSubscribe->PostController_AfterDiscussionSave_Handler(Object(PostController), Array, 'postcontroller_...') #5 /home/kapdiagn/public_html/forum/library/core/class.pluginmanager.php(590): Gdn_PluginManager->CallEventHandler(Object(PostController), 'PostController', 'AfterDiscussion...', 'Handler') #6 /home/kapdiagn/public_html/forum/library/core/class.pluggable.php(127): Gdn_PluginManager->CallEventHandlers(Object(PostController), 'PostController', 'AfterDiscussion...') #7 /home/kapdiagn/public_html/forum/applications/vanilla/controllers/class.postcontroller.php(202): Gdn_Pluggable->FireEvent('AfterDiscussion...') #8 /home/kapdiagn/public_html/forum/library/core/class.dispatcher.php(322): PostController->Discussion() #9 /home/kapdiagn/public_html/forum/index.php(53): Gdn_Dispatcher->Dispatch(Array, Array) #10 {main}
0
Comments
This may sound like a stupid question, but: Did you check your email/SMTP settings? Sounds like the plugin fails to authenticate at the mailserver.
Hi thanks for answering,
Yes I did check email setting and it's alright!
What do you mean it's alright. Do you mean you solved your own problem?
Otherwise look here:
/forum/library/vendors/phpmailer/class.phpmailer.php:815
There was an error rendering this rich post.
I have checked SMTP details and they are OK but still I have this issue.
I have checked /forum/library/vendors/phpmailer/class.phpmailer.php:815
$connection = true;
if ($this->SMTPAuth) {
if (!$this->smtp->Authenticate($this->Username, $this->Password)) {
throw new phpmailerException($this->Lang('authenticate'));
}
does this informatioin help?
Thanks
Yes it does.
Unfortunately, this is your problem:
if (!$this->smtp->Authenticate($this->Username, $this->Password)) {
throw new phpmailerException($this->Lang('authenticate'));
}
This will generate your exception.
There was an error rendering this rich post.
oh Thanks for this; so how can I avoid this "exception"?
Is this a problem with SMTP configuration? hosting? What is "lang"?
Thanks
Hello any good news for this issue?
Issue solved !! There was something wrong in the var/mail folder.
Thanks
@UnderDog: i'm wondering about the same thing as @mikizzi, how can I avoid this "exception"?
Related: BONK on "Click here to resend the confirmation email."