failed: Unable to send mail. src/XF/Mail/Mailer.php:292

AbuGhaith

Well-known member
i can't receive email

Server error log :

Code:
Swift_TransportException: Email to ...@gmail.com failed: Unable to send mail. src/XF/Mail/Mailer.php:292

Stack trace

#0 src/XF/Mail/Mail.php(347): XF\Mail\Mailer->send(Object(Swift_Message), NULL)
#1 src/XF/Service/User/AbstractConfirmationService.php(85): XF\Mail\Mail->send()
#2 src/XF/Service/User/AbstractConfirmationService.php(63): XF\Service\User\AbstractConfirmationService->sendConfirmationEmail()
#3 src/XF/ControllerPlugin/EmailConfirmation.php(43): XF\Service\User\AbstractConfirmationService->triggerConfirmation()
#4 src/XF/Pub/Controller/AccountConfirmation.php(46): XF\ControllerPlugin\EmailConfirmation->actionResend(Object(XF\Entity\User), '/account-confir...', Array)
#5 src/XF/Mvc/Dispatcher.php(249): XF\Pub\Controller\AccountConfirmation->actionResend(Object(XF\Mvc\ParameterBag))
#6 src/XF/Mvc/Dispatcher.php(89): XF\Mvc\Dispatcher->dispatchClass('XF:AccountConfi...', 'resend', 'json', Object(XF\Mvc\ParameterBag), '', Object(XF\Pub\Controller\AccountConfirmation), NULL)
#7 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#8 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#9 src/XF.php(329): XF\App->run()
#10 index.php(13): XF::runApp('XF\\Pub\\App')
#11 {main}

Request state

array(4) {
["url"] => string(28) "/account-confirmation/resend"
["referrer"] => string(19) "https://raheef.net/"
["_GET"] => array(0) {
}
["_POST"] => array(6) {
["captcha_question_answer"] => string(23) "رهيف الاحساس"
["captcha_question_hash"] => string(40) "4bf8584f3c5d45bcfdd65f508784dd4f9891aaa9"
["_xfToken"] => string(8) "********"
["_xfRequestUri"] => string(1) "/"
["_xfWithData"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}
 
You went through this, "In the event of failed email delivery, the first thing to determine is whether it is affecting all members or individual members." What was the outcome ?
 
Almost sounds to me like a port issue. If this is a shared host, contact them to make sure that outbound port 465 is open.
If you are running a Dedi/VPS check to make sure that the firewall is allowing outbound connections on port 465.
 
On the few sites I run I use the default transport method. On a couple of the sites I manage, they use SMTP.

Has your email ever worked, or did it just suddenly stop one day.
 
no i use the SMTP for the first time with new website .. i asked my shared hosting support and they tel me all options are ok , the problem is with the xenforo script
 
I doubt the problem is with the XenForo script, because if it was, no one would be able to send emailing SMTP. There has to be a misconfiguration somewhere on the email server or in the SMTP settings, I just am not sure what the issue is as in ever have come across the specific error you are receiving.
 
The only issues I have come across causing trouble is the configuration settings in XF, like wrong (TLS, SSL) properties, or the port was blocked by a server/host. Try sending a email setting the encryption to "none".
 
Back
Top Bottom