ShaunD Posted November 3, 2010 Share Posted November 3, 2010 Hi,I have created a new install on a machine running localhost - Prestashop Version 1.3.2.3 - 0.108s and I am evaluating prestashop as my online store solution.I appear to be having the same problems as lots of others have stated.Emails will not work, when sending a message to a customer I receive the error message "No iso code for email" when using PHP mail() function. using orders->Select a cart and the message optionWhen using smtp I receive the error "an error occurred while sending e-mail to the customer"SMTP settings =smtp server = smtp.gmail.comsmtp user = usernamePassword = populatedEncryption = TLSPort = 587I can telnet into my gmail account and send mail from outlook using these smtp details.I have applied the fixes as stated in http://www.presto-changeo.com/content/9-fix-email-problems but this has not corrected the problem.Any help would be appreciated.Are there any Log files generated that may point to the errorShaunDUpdate: found this in the Apache Error Log[Wed Nov 03 18:53:56 2010] [error] [client 127.0.0.1] PHP Fatal error: Uncaught exception 'Swift_ConnectionException' with message 'The SMTP connection failed to start [tls://smtp.gmail.com:587]: fsockopen returned Error Number 0 and Error String ''' in C:\\wamp\\www\\Prestashop\\tools\\swift\\Swift\\Connection\\SMTP.php:309\nStack trace:\n#0 C:\\wamp\\www\\Prestashop\\tools\\swift\\Swift.php(216): Swift_Connection_SMTP->start()\n#1 C:\\wamp\\www\\Prestashop\\tools\\swift\\Swift.php(101): Swift->connect()\n#2 C:\\wamp\\www\\Prestashop\\classes\\Mail.php(127): Swift->__construct(Object(Swift_Connection_SMTP))\n#3 C:\\wamp\\www\\Prestashop\\UKPetStoreAdmin2708\\ajax_send_mail_test.php(20): Mail::sendMailTest('1', 'smtp.gmail.com', 'This is a test ...', 'Test message - ...', 'text/html', 'shaundonoher@gm...', 'shaundonoher@gm...', 'shaundonoher', '', '587', 'tls')\n#4 {main}\n thrown in C:\\wamp\\www\\Prestashop\\tools\\swift\\Swift\\Connection\\SMTP.php on line 309, referer: http://localhost/prestashop/UKPetStoreAdmin2708/index.php?tab=AdminEmails&conf=6&token=9f73aa21150f1de400815da3408cae71 Link to comment Share on other sites More sharing options...
ShaunD Posted November 3, 2010 Author Share Posted November 3, 2010 Changed Encryption to SSL and the port to 465. Doing this alone did not correct the problem. I enabled the php_openssl extension in my php.ini file and all OK. I have only tested using SMTP mail not php mail.I expect that to more experienced php users this was obvious, however to newbies like me it may help adding the solution.RegardsShaunD Link to comment Share on other sites More sharing options...
dodin Posted December 12, 2010 Share Posted December 12, 2010 Changed Encryption to SSL and the port to 465. Doing this alone did not correct the problem. I enabled the php_openssl extension in my php.ini file and all OK. I have only tested using SMTP mail not php mail.I expect that to more experienced php users this was obvious, however to newbies like me it may help adding the solution.RegardsShaunD I experienced the same problem, and I have no idea to fix it. I just php kiddies.hi, ShaunD. My site hosted on share hosting. Can u tell me how could I enabled php_openssl?sorri for my bad english.thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now