Can't send outbound email message
Permalink
I've read lots of threads on similar topics but I'm still having this issue.
I'm running 5.4.0 RC1 on Windows Vista with XAMPP (packaged Apache, etc.). I don't have a mail server running. I use Google apps for mail.
I'm hoping I just need help on my sitewide mail settings. I've tried variations on this theme.
Mail Server: smtp.google.com
Username: (myuser@mydomain.com or myuser or blank)
Password: (mypassword or blank)
Encryption: (SSL or blank)
Port: (blank)
I've set up a form block and told it to send alerts to myaccount@yahoo.com.
Depending on the variants, I get something like this in the log.
Mail Exception Occurred. Unable to send mail: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
or
Mail Exception Occurred. Unable to send mail: 'mail.google.com/a/mydomain.com' appears to be a DNS hostname but cannot match against hostname schema for TLD 'com', 'mail.google.com/a/mydomain.com' does not appear to be a valid local network name
I understand there could be an issue if I specify the target e-mail address as being on the same domain as the web server, but it's not--it's a yahoo account.
I opened up port 25, and even turned off the firewall for certain tests, but I just never receive anything in my e-mail account.
I don't have php experience.
I'm running 5.4.0 RC1 on Windows Vista with XAMPP (packaged Apache, etc.). I don't have a mail server running. I use Google apps for mail.
I'm hoping I just need help on my sitewide mail settings. I've tried variations on this theme.
Mail Server: smtp.google.com
Username: (myuser@mydomain.com or myuser or blank)
Password: (mypassword or blank)
Encryption: (SSL or blank)
Port: (blank)
I've set up a form block and told it to send alerts to myaccount@yahoo.com.
Depending on the variants, I get something like this in the log.
Mail Exception Occurred. Unable to send mail: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
or
Mail Exception Occurred. Unable to send mail: 'mail.google.com/a/mydomain.com' appears to be a DNS hostname but cannot match against hostname schema for TLD 'com', 'mail.google.com/a/mydomain.com' does not appear to be a valid local network name
I understand there could be an issue if I specify the target e-mail address as being on the same domain as the web server, but it's not--it's a yahoo account.
I opened up port 25, and even turned off the firewall for certain tests, but I just never receive anything in my e-mail account.
I don't have php experience.
use port 465 works fine for me
Thanks for the tip. That should take me one step closer, but I still can't get it to work. I opened port 465 on my firewall, and even tried turning off the firewall. I mapped the port to my server on my router.
I have this in Concrete5 sitewide e-mail settings.
Selected "External SMTP Server"
Mail Server: smtp.google.com
Username: myaccount@mydomain.com
Password: mypassword
Encryption: SSL
Port: 465
I get this in the log.
Mail Exception Occurred. Unable to send mail: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
#0 C:\data\xampplite\htdocs\mydomain\concrete\libraries\3rdparty\Zend\Mail\Protocol\Smtp.php(167): Zend_Mail_Protocol_Abstract->_connect('ssl://smtp.goog...')
I have this in Concrete5 sitewide e-mail settings.
Selected "External SMTP Server"
Mail Server: smtp.google.com
Username: myaccount@mydomain.com
Password: mypassword
Encryption: SSL
Port: 465
I get this in the log.
Mail Exception Occurred. Unable to send mail: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
#0 C:\data\xampplite\htdocs\mydomain\concrete\libraries\3rdparty\Zend\Mail\Protocol\Smtp.php(167): Zend_Mail_Protocol_Abstract->_connect('ssl://smtp.goog...')
it seems that it is timing out, so thats a problem with your setup, something seems to be blocking it
Eureka! Problem solved. I was wrongly using smtp.google.com. I changed it to smtp.gmail.com and everything works.