Localhost Email Problems
Permalink
Hello,
I am currently having email issues with a site developed locally.
My contact form only works using Gmail settings in Dashboard > SMTP method. My own domain name and SMTP details do not seem to work.
I'm not sure where the problem lies. Is the problem MAMP? Do I need to modify some PHP buried deep in my sites folder?
Below I've included a copy of the Log from the Dashboard, but it may swell be in Mandarin. If someone could translate, that would be great.
I've been through several posts on this forum and spent hours trying to figure it out on my own, but haven't found a definitive answer.
So why does Gmail work and not my other email settings?
Any help would be very much appreciated.
Many thanks!!!!
Logs:
I am currently having email issues with a site developed locally.
My contact form only works using Gmail settings in Dashboard > SMTP method. My own domain name and SMTP details do not seem to work.
I'm not sure where the problem lies. Is the problem MAMP? Do I need to modify some PHP buried deep in my sites folder?
Below I've included a copy of the Log from the Dashboard, but it may swell be in Mandarin. If someone could translate, that would be great.
I've been through several posts on this forum and spent hours trying to figure it out on my own, but haven't found a definitive answer.
So why does Gmail work and not my other email settings?
Any help would be very much appreciated.
Many thanks!!!!
Logs:
Mail Exception Occurred. Unable to send mail: Incorrect authentication data #0 /Volumes/Pete's Backup/Documents/localhost/stuartlighting2/concrete5.6.1.2/concrete/libraries/3rdparty/Zend/Mail/Protocol/Smtp/Auth/Login.php(95): Zend_Mail_Protocol_Abstract->_expect(235) #1 /Volumes/Pete's Backup/Documents/localhost/stuartlighting2/concrete5.6.1.2/concrete/libraries/3rdparty/Zend/Mail/Protocol/Smtp.php(217): Zend_Mail_Protocol_Smtp_Auth_Login->auth() #2 /Volumes/Pete's Backup/Documents/localhost/stuartlighting2/concrete5.6.1.2/concrete/libraries/3rdparty/Zend/Mail/Transport/Smtp.php(200): Zend_Mail_Protocol_Smtp->helo('localhost') #3 /Volumes/Pete's Backup/Documents/localhost/stuartlighting2/concrete5.6.1.2/concrete/libraries/3rdparty/Zend/Mail/Transport/Abstract.php(348): Zend_Mail_Transport_Smtp->_sendMail() #4 /Volumes/Pete's Backup/Documents/localhost/stuartlighting2/concrete5.6.1.2/concrete/libraries/3rdparty/Zend/Mail.php(1194): Zend_Mail_Transport_Abstract->send(Object(Zend_Mail)) #5 /Volumes/Pete's Backup/Documents/localhost/stuartlighting2/concrete5.6.1.2/concrete/core/helpers/mail.php(349): Zend_Mail->send(Object(Zend_Mail_Transport_Smtp)) #6 /Volumes/Pete's Backup/Documents/localhost/stuartlighting2/concrete5.6.1.2/concrete/core/controllers/blocks/form.php(454): Concrete5_Helper_Mail->sendMail() #7 /Volumes/Pete's Backup/Documents/localhost/stuartlighting2/concrete5.6.1.2/concrete/core/models/block.php(411): Concrete5_Controller_Block_Form->action_submit_form() #8 /Volumes/Pete's Backup/Documents/localhost/stuartlighting2/concrete5.6.1.2/concrete/startup/process.php(283): Concrete5_Model_Block->passThruBlock('submit_form') #9 /Volumes/Pete's Backup/Documents/localhost/stuartlighting2/concrete5.6.1.2/concrete/dispatcher.php(244): require('/Volumes/Pete's...') #10 /Volumes/Pete's Backup/Documents/localhost/stuartlighting2/concrete5.6.1.2/index.php(2): require('/Volumes/Pete's...') #11 {main}
Thanks for the reply,
So I need not worry about testing emails locally?
Just curious to know how to set up local email testing.
I was sure my own smtp details worked fine, but there is a vague possibility I had this problem before and moved my site to a live server to test emails.
My first C5 site went live recently and the contact form works perfectly using the PHP method, so maybe I need not worry to much.
Would it be anything to do with settings in MAMP?
So I need not worry about testing emails locally?
Just curious to know how to set up local email testing.
I was sure my own smtp details worked fine, but there is a vague possibility I had this problem before and moved my site to a live server to test emails.
My first C5 site went live recently and the contact form works perfectly using the PHP method, so maybe I need not worry to much.
Would it be anything to do with settings in MAMP?
Sending mails from a local server is possible with 'postfix'.
I've done it a long time ago, but the installation was a pain in the...
MAMP pro has it build in.
see:http://blog-en.mamp.info/2009/09/how-to-sending-emails-with-mamp-pr...
config:http://documentation.mamp.info/en/mamp-pro/server/postfix...
*** edit: appearantly you have already set up postfix. I'll leave my answer for future generations ***
I've done it a long time ago, but the installation was a pain in the...
MAMP pro has it build in.
see:http://blog-en.mamp.info/2009/09/how-to-sending-emails-with-mamp-pr...
config:http://documentation.mamp.info/en/mamp-pro/server/postfix...
*** edit: appearantly you have already set up postfix. I'll leave my answer for future generations ***
From the articles I've read it sounds like headache.
I have just tested MAMP on an old standalone contact form. With Gmail in the postfix it works using my icloud email in contact forms AddRecipient PHP....weird!
So both my C5 site and example contact form work locally with Gmail but not my domain name or iCloud settings.
I have read that the php.ini file needs to be modified, but I'm not sure what that even does.
I have just tested MAMP on an old standalone contact form. With Gmail in the postfix it works using my icloud email in contact forms AddRecipient PHP....weird!
So both my C5 site and example contact form work locally with Gmail but not my domain name or iCloud settings.
I have read that the php.ini file needs to be modified, but I'm not sure what that even does.
Pretty sure it will work once you upload the site.
As for why your own domain doesn't work, it may have to do with its settings or the settings you are using ... it probably blocks relaying on port 25 so you'd need to use an authenticated method and usually a different port like 465. If relaying is not turned off that is.