email problems

Permalink
I can't get my email to work. I hope it's simple but I just don't know what to do. I registered the email with my server and them set up a custom gmail account for the emails to be directed to. I can send emails to the accounts, no problem, but when I try to send from my website's contact us block nothing happens. The log shows this message:

11:27:24 AM sent_emails **EMAILS ARE ENABLED. THIS EMAIL WAS SENT TO mail()**
Template Used: block_form_submission
To: admin@henryshandmadesoap.com
From: admin@henryshandmadesoap.com
Subject: Contact Us Form Submission
Body:
There has been a submission of the form Contact Us on through your concrete5 website.

Name
Henry

Email address
hbenagh@gmail.com

Issue


Message
hello



To view all of this form's submissions, visithttp://henryshandmadesoap.com/conc/index.php/dashboard/reports/form...
______________________________________________________

So I tried setting the email to SMTP (I listed gmail and 'server' though I don't know if that's right) and got this from the log report:
exceptions Mail Exception Occurred. Unable to send mail: Could not open socket
#0 /home/d556164/public_html/henryshandmadesoap.com/conc/concrete/libraries/3rdparty/Zend/Mail/Protocol/Smtp.php(167): Zend_Mail_Protocol_Abstract->_connect('tcp://gmail:25')
#1 /home/d556164/public_html/henryshandmadesoap.com/conc/concrete/libraries/3rdparty/Zend/Mail/Transport/Smtp.php(199): Zend_Mail_Protocol_Smtp->connect()
#2 /home/d556164/public_html/henryshandmadesoap.com/conc/concrete/libraries/3rdparty/Zend/Mail/Transport/Abstract.php(348): Zend_Mail_Transport_Smtp->_sendMail()
#3 /home/d556164/public_html/henryshandmadesoap.com/conc/concrete/libraries/3rdparty/Zend/Mail.php(1194): Zend_Mail_Transport_Abstract->send(Object(Zend_Mail))
#4 /home/d556164/public_html/henryshandmadesoap.com/conc/concrete/helpers/mail.php(349): Zend_Mail->send(Object(Zend_Mail_Transport_Smtp))
#5 /home/d556164/public_html/henryshandmadesoap.com/conc/concrete/blocks/form/controller.php(392): MailHelper->sendMail()
#6 /home/d556164/public_html/henryshandmadesoap.com/conc/concrete/models/block.php(325): FormBlockController->action_submit_form()
#7 /home/d556164/public_html/henryshandmadesoap.com/conc/concrete/startup/process.php(325): Block->passThruBlock('submit_form')
#8 /home/d556164/public_html/henryshandmadesoap.com/conc/concrete/dispatcher.php(260): require('/home/d556164/p...')
#9 /home/d556164/public_html/henryshandmadesoap.com/conc/index.php(2): require('/home/d556164/p...')
#10 {main}
Template Used: block_form_submission
To: admin@henryshandmadesoap.com
From: admin@henryshandmadesoap.com
Subject: Contact Us Form Submission
Body:
There has been a submission of the form Contact Us on through your concrete5 website.

Name
Henry

Email address
hbenagh@gmail.co
_____________________________________________
I'm sure this is simple but I need help. One other thing – when I opened the gmail account I had to get my server to change the MX settings to direct mail to gmail.

 
adajad replied on at Permalink Best Answer Reply
adajad
I use gmail as smtp without any problem on one of my sites with the following settings:

External SMTP server checked
Mail Server: smtp.gmail.com
Username: yourmail@gmail.com
Password: your_gmail_password
Encryption: TLS
Port: 587

You can also define a default from address in your site.php (in config directory):
define('EMAIL_DEFAULT_FROM_ADDRESS', 'no-reply@henryshandmadesoap.com');
hbenagh replied on at Permalink Reply
Thanks. I finally got it going.

hbenagh