Hello,
I hope you guys can help me with this one. Few days ago smtp mailing stopped working. Error log says "SMTP connect() failed". I use Mandrill SMTP service in various projects and all of them are working right. So the problem is not Mandrill. Also those projects are stored in a development environment hosted in a remote server, so the problem is not hosting. I installed BobRay's Quick Mail Extra and i found a really weird thing.
As you can see, the host that phpmailer is trying to connect is not the mandrill's one "smtp.mandrillapp.com", but instead is trying to connect to domain similar to the application's domain. I don't know where this behaviour is specified but thats what doing right now. So i digged into the code (all is in the correct place, no weird code appeared) and found that stream_socket_client function is overwriting my remote_host parameter in someway. This lines belong to class.smtp.php file, path core/model/modx/mail/phpmailer/class.smtp.php line 215.
Put "die($host')" before the function call and the host is right "smtp.mandrillapp.com" but the function ignore that and use "server.dhdinc.com". How this can be? This is driving me crazy, i really don't know what to do. Anyone who faced this problem before please give me a hand.
Diego