Error when emailing from 5.4.2.2 system
Permalink
I have a client site running 5.4.2.2 and about a month ago the system stopped sending mail. It dumps an error message for ecommerce emails. I have included the error below...
Does anyone know why this might be happening? I updated the ecommerce package but the problem is still there.
Thanks to all,
Frank
Mail Exception Occurred. Unable to send mail: File "Zend/Validate/Hostname/Com.php" does not exist or class "Zend_Validate_Hostname_Com" was not found in the file #0 /var/www/concrete/libraries/3rdparty/Zend/Validate/Hostname.php(331): Zend_Loader::loadClass('Zend_Validate_H...') #1 /var/www/concrete/libraries/3rdparty/Zend/Validate.php(94): Zend_Validate_Hostname->isValid('mail.triadcompu...') #2 /var/www/concrete/libraries/3rdparty/Zend/Mail/Protocol/Abstract.php(133): Zend_Validate->isValid('mail.triadcompu...') #3 /var/www/concrete/libraries/3rdparty/Zend/Mail/Protocol/Smtp.php(156): Zend_Mail_Protocol_Abstract->__construct('mail.triadcompu...', '26') #4 /var/www/concrete/libraries/3rdparty/Zend/Mail/Protocol/Smtp/Auth/Login.php(76): Zend_Mail_Protocol_Smtp->__construct('mail.triadcompu...', '26', Array) #5 /var/www/concrete/libraries/3rdparty/Zend/Mail/Transport/Smtp.php(194): Zend_Mail_Protocol_Smtp_Auth_Login->__construct('mail.triadcompu...', '26', Array) #6 /var/www/concrete/libraries/3rdparty/Zend/Mail/Transport/Abstract.php(348): Zend_Mail_Transport_Smtp->_sendMail() #7 /var/www/concrete/libraries/3rdparty/Zend/Mail.php(973): Zend_Mail_Transport_Abstract->send(Object(Zend_Mail)) #8 /var/www/concrete/helpers/mail.php(227): Zend_Mail->send(Object(Zend_Mail_Transport_Smtp)) #9 /var/www/packages/core_commerce/libraries/payment/controller.php(143): MailHelper->sendMail() #10 /var/www/packages/core_commerce/libraries/payment/controller.php(86): CoreCommercePaymentController->sendReceiptEmail(Object(CoreCommerceCurrentOrder), NULL) #11 /var/www/packages/core_commerce/models/payment/methods/default/controller.php(58): CoreCommercePaymentController->finishOrder(Object(CoreCommerceCurrentOrder), 'Default Gateway') #12 [internal function]: CoreCommerceDefaultPaymentMethodController->action_submit() #13 /var/www/packages/core_commerce/tools/payment_method_action.php(10): call_user_func_array(Array, Array)
Viewing 15 lines of 25 lines. View entire code block.
Does anyone know why this might be happening? I updated the ecommerce package but the problem is still there.
Thanks to all,
Frank
Do you only get this error from eCommerce, or is it the same when sending any mail (like forgotten password, signup)?
At first it was all email but after upgrading to 5.4.2.2 (from 5.4.1.1) and upgrading the ecommerce package, the system started sending mail from the response form again. It still does not send from ecommerce. I will have to try the lost password email... I'm not sure about that one. However, the problem was originally with all emails.
Frank
Frank
Hi Frank,
I have just had a look at the Zend library and the difference between v5.4.1.1 and v5.4.2.2 and among other things, the Com.php file has been added.
You should have a look inside 'root/concrete/libraries/3rdparty/Zend/Validate/Hostname/' and see if the file Com.php has been added in the upgrade. If not you can reapply the core by copy the concrete folder into your root (from the downloaded zip package) and rerun the upgrade script from 'www.yourdomain.com/index.php/tools/upgrade'.
You could also use an external SMTP server to handle your outgoing mail instead of relying on Zend. I use the following on two of my sites:
External SMTP server checked (in 'www.yourdomain.com/index.php/dashboard/system/mail/method/')
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):
I have just had a look at the Zend library and the difference between v5.4.1.1 and v5.4.2.2 and among other things, the Com.php file has been added.
You should have a look inside 'root/concrete/libraries/3rdparty/Zend/Validate/Hostname/' and see if the file Com.php has been added in the upgrade. If not you can reapply the core by copy the concrete folder into your root (from the downloaded zip package) and rerun the upgrade script from 'www.yourdomain.com/index.php/tools/upgrade'.
You could also use an external SMTP server to handle your outgoing mail instead of relying on Zend. I use the following on two of my sites:
External SMTP server checked (in 'www.yourdomain.com/index.php/dashboard/system/mail/method/')
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@your_domain.com');
Hi,
I am sing external mail server settings which were working previously. The information works in Outlook so my email settings are correct.
I now have this exact same problem with a new 5.6.02 setup using either PHP or external mail. Acts the same way and this server does not have ecom on it. For some reason, the server will not send mail from PHP or External.
I really need to solve both of these issues... surely I'm not the lucky and only one this has happened to :-)
The server running 5.6.02 is on a Network Solutions site. The 5.4 server is running on a private, dedicated server using Ubuntu 12.04 64-bit server.
Same problem, two different servers, two different versions of C5!
Ideas?
Thanks
I am sing external mail server settings which were working previously. The information works in Outlook so my email settings are correct.
I now have this exact same problem with a new 5.6.02 setup using either PHP or external mail. Acts the same way and this server does not have ecom on it. For some reason, the server will not send mail from PHP or External.
I really need to solve both of these issues... surely I'm not the lucky and only one this has happened to :-)
The server running 5.6.02 is on a Network Solutions site. The 5.4 server is running on a private, dedicated server using Ubuntu 12.04 64-bit server.
Same problem, two different servers, two different versions of C5!
Ideas?
Thanks
I should have posted this problem resolved a while back.
It seems that even though the Form Block says you can send to multiple emails... it doesn't mean it. If I put one email address in the field it works. If I put two emails, separated by delimeter of course, the system fails to send any email.
I'm sure the core guys are aware of the bug and it's most important issue they are addressing right now. :-) Anyway, send to one email address. This will solve this issue if you are having it.
Frank
It seems that even though the Form Block says you can send to multiple emails... it doesn't mean it. If I put one email address in the field it works. If I put two emails, separated by delimeter of course, the system fails to send any email.
I'm sure the core guys are aware of the bug and it's most important issue they are addressing right now. :-) Anyway, send to one email address. This will solve this issue if you are having it.
Frank