External SMTP Server1 user found helpful
When I attempt to send a response from the form block I don't get any email but do get two entries in the log.
One entry is log type "sent emails." It looks successful and starts like this:
"**EMAILS ARE ENABLED. THIS EMAIL WAS SENT TO mail()**"
The other entry is log type "exception". It looks unsuccessful and starts like this:
"Mail Exception Occurred. Unable to send mail: Could not open socket"
I'm using concrete5 version 22.214.171.124, XAMPP 1.7.4, Windows 7 am using google apps for SMTP mail.
I've tried many combinations unsuccessfully. Here's the one I most think should work, but doesn't.
In Dashboard > Sitewide Settings > Email > Sitewide Mail Settings I've done the following.
Selected External SMTP Server
Mail Server: smtp.gmail.com (I've tried smtp.googlemail.com)
Connection Type: SSL
These SMTP settings work in my email client (Thunderbird) from the same server.
Server Name: smtp.googlemail.com
User: [email protected]
Authentication method: Normal password
Connection Security: SSL/TLS
I'm not running a local SMTP server. XAMPP control panel reports SMTP service is disabled. But I suspect this isn't needed since I'm not running a local SMTP server. Correct?
I turned off the local firewall for testing. I opened port 465 on my router.
I had this working before on a older versions of concrete5, xampp, a different router, but can't for the life of me figure out what I'm doing wrong this time.
Thanks for the suggestion, though.
Thanks for the suggestion, though.
by default the admin account mail adres get used, you can use a different one by adding these lines to your site.php:
So I tried two things.
First, I didn't implement those two lines of code. I just aligned all my accounts. In my c5 dashboard e-mail settings, I used my c5 admin e-mail account, and I changed the form block to e-mail that same e-mail address--let's call it [email protected] That didn't work.
Second, I added those lines of code exactly like you have it (changing out "yourdomain"), then changed the form block to e-mail to send to that same e-mail address. However, I left the dashboard e-mail settings as [email protected] That didn't work.
Thanks for the suggestion. I suspect that'll help me further down the road, but that didn't seem to help with my current problem.
I have this in my httpd.conf
LoadModule ssl_module modules/mod_ssl.so
Thanks for your response.
telnet smtp.gmail.com 587
You should see a prompt back from gmail like:
220 mx.google.com ESMTP p8sm1729619vcr.42
You should see:
250-mx.google.com at your service,
But for giggles, I checked out the telent suggestion. Oddly enough, I got similar results to you when I tried 587, but not when I tried 465 (erratic behavior with the cursor and no text back).
This just makes me wonder if the telnet server at smtp.gmail.com is enabled for 587, but not 465.
I'm not sure what this all means, but I don't immediately see how this is relevant to my problem. I think I'll call this one a red herring for now. But thanks for the suggestion.
I didn't otherwise need to install any packages or anything. The standard XAMPP and concrete5 bundles work nicely.
I'm not sure, but I believe that line was in older versions of XAMPP. Given that they enable openssl in Apache, I'm not sure why they wouldn't include it in php.ini--or at least have a commented line.
Anyway, it works perfectly. Thank you so much for your help all, especially nteavaiation!