As of few days ago I was using a VPS on centos.
The issues were I cant get thumbnails from youtube and no mails were being delivered via my smtp provider.
Thanks to Elshara, we tried all we could to debug but no luck.
Eventually I got fed up and switched to a RECOMMENDED host, TMD.
I reinstalled the whole engine from the scratch and started afresh.
And sure enough, the video thumbnail started working with no issues at all.
However, mails are still not being sent out.
I contacted my mail provider (mailgun), they said everything is working on their end.
I used others, no luck, heck I even used gmail.
TMD says their server is optimized.
Which left me with just only one conclusion, this is a bug.
This is a fresh installation and it should work optimally.
I have uploaded a screenshot of the error message generated.
I use SE on my site and we use it here. We see no issues with mail. I use Sendgrid for my site SMTP and we use it here as well. I cannot classify this as a bug yet when it works here and on my site.
Please don't post screenshots of error reports. Please copy and paste and following the guidelines for posting bugs or issues, use the code button in the editor to wrap the code in proper formatting please. Then we will be able to see the full error.
2017-07-25T13:25:05+00:00 ERR (3): exception 'Zend_Mail_Protocol_Exception' with message 'Connection refused' in /home/praisefu/public_html/application/libraries/Zend/Mail/Protocol/Abstract.php:277
Stack trace:
#0 /home/praisefu/public_html/application/libraries/Zend/Mail/Protocol/Smtp.php(167): Zend_Mail_Protocol_Abstract->_connect('ssl://smtp.mail...')
#1 /home/praisefu/public_html/application/libraries/Zend/Mail/Transport/Smtp.php(199): Zend_Mail_Protocol_Smtp->connect()
#2 /home/praisefu/public_html/application/libraries/Zend/Mail/Transport/Abstract.php(348): Zend_Mail_Transport_Smtp->_sendMail()
#3 /home/praisefu/public_html/application/libraries/Zend/Mail.php(1201): Zend_Mail_Transport_Abstract->send(Object(Zend_Mail))
#4 /home/praisefu/public_html/application/modules/Core/Api/Mail.php(192): Zend_Mail->send(Object(Zend_Mail_Transport_Smtp))
#5 /home/praisefu/public_html/application/modules/Core/Api/Mail.php(174): Core_Api_Mail->sendRaw(Object(Zend_Mail))
#6 /home/praisefu/public_html/application/modules/Core/controllers/AdminMessageController.php(82): Core_Api_Mail->send(Object(Zend_Mail))
#7 /home/praisefu/public_html/application/libraries/Zend/Controller/Action.php(516): Core_AdminMessageController->mailAction()
#8 /home/praisefu/public_html/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('mailAction')
#9 /home/praisefu/public_html/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#10 /home/praisefu/public_html/application/modules/Core/Bootstrap.php(84): Zend_Controller_Front->dispatch()
#11 /home/praisefu/public_html/application/libraries/Engine/Application.php(160): Core_Bootstrap->run()
#12 /home/praisefu/public_html/application/index.php(219): Engine_Application->run()
#13 /home/praisefu/public_html/index.php(24): include('/home/praisefu/...')
#14 {main}
2017-07-25T13:25:05+00:00 ERR (3): exception 'Zend_Mail_Protocol_Exception' with message 'No connection has been established to smtp.mailgun.org' in /home/praisefu/public_html/application/libraries/Zend/Mail/Protocol/Abstract.php:319
Stack trace:
#0 /home/praisefu/public_html/application/libraries/Zend/Mail/Protocol/Smtp.php(338): Zend_Mail_Protocol_Abstract->_send('RSET')
#1 /home/praisefu/public_html/application/libraries/Zend/Mail/Transport/Smtp.php(203): Zend_Mail_Protocol_Smtp->rset()
#2 /home/praisefu/public_html/application/libraries/Zend/Mail/Transport/Abstract.php(348): Zend_Mail_Transport_Smtp->_sendMail()
#3 /home/praisefu/public_html/application/libraries/Zend/Mail.php(1201): Zend_Mail_Transport_Abstract->send(Object(Zend_Mail))
#4 /home/praisefu/public_html/application/modules/Core/Api/Mail.php(192): Zend_Mail->send(Object(Zend_Mail_Transport_Smtp))
#5 /home/praisefu/public_html/application/modules/Core/Api/Mail.php(174): Core_Api_Mail->sendRaw(Object(Zend_Mail))
#6 /home/praisefu/public_html/application/modules/Core/controllers/AdminMessageController.php(93): Core_Api_Mail->send(Object(Zend_Mail))
#7 /home/praisefu/public_html/application/libraries/Zend/Controller/Action.php(516): Core_AdminMessageController->mailAction()
#8 /home/praisefu/public_html/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('mailAction')
#9 /home/praisefu/public_html/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#10 /home/praisefu/public_html/application/modules/Core/Bootstrap.php(84): Zend_Controller_Front->dispatch()
#11 /home/praisefu/public_html/application/libraries/Engine/Application.php(160): Core_Bootstrap->run()
#12 /home/praisefu/public_html/application/index.php(219): Engine_Application->run()
#13 /home/praisefu/public_html/index.php(24): include('/home/praisefu/...')
#14 {main}
One thing to note about SMTP, is that you have 3 options to choose from.
SSL TLS and None for security.
If one doesn't work, try another.
Passwords don't show when you type it in so just be aware of this. Authentication is essential regardless.
If the port is correct, be sure you are using SMTP port not Imap.
I'm Trying to set up the top version of SE 5 with SMTP through AWS. My purpose is to have My site become User invitation only through the email. I have sent many invites to my alternative email account and have received nothing, But I did how ever get a response one time through my friends email, one time out of many tries and half a day later.
My email account is through Gmail. My friends was exitexchange if that helps.
I need this function to be reliable, so what do I do? I also want to test out the authentication methods available so I can figure out what is the best balance. Meaning I want to be able to send to my alt account many times until the system is what I want.
I tried to send it to my wifes Email and that never got received.
I just tried verifying my Email through AWS and now My SE invite worked. The problem is I need to have this work on unverified emails that I don't know.
It would probably have been best to start a new thread for AWS SMTP issues as this thread is so old. Here are some email tips, found in our Learning Center, https://www.socialengine.com/support/article/5210393/se-php-basic-email-troubleshooting and another at BryZar, https://blog.bryzar.com/socialengine-smtp-setup/ . I'm posting that one as it has some specific tips in it for better delivery.