Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
Previous Page
Author « Topic »
Page: of 2

Tinsle
Advanced Member

United Kingdom
342 Posts

Posted - 02/26/2019 :  12:13:03  
Hello Vince,

You will be pleased to know that adding the below line of code into the new incfunctions.php page has resolved the issue:

curl_setopt($ch, CURLOPT_SSLVERSION, 6);

The only issue we have now is the problem with the PHPmailer. We are currently receiving no emails from the server when an order is placed or when we resend an email back through?

Please advise

Regards

Kevin

Vince
Administrator

42874 Posts

Posted - 02/26/2019 :  16:28:21  
Hi Kevin
If you set the following parameter in the includes.php file...
$debugmode=TRUE;
...and then perform an action that should send an email, then you should get a debug message with whatever problem there was. Can you try that and let me know what, if any, debug message you get? Then take the $debugmode parameter out of the includes file again or your customers will see debug messages.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Tinsle
Advanced Member

United Kingdom
342 Posts

Posted - 02/27/2019 :  01:23:52  
Hello Vince,

This is the debug message we receive when we try to resend an email back to store & customer:


2019-02-27 09:21:24 SERVER -> CLIENT: 220 mail142.extendcp.co.uk ESMTP Exim Wed, 27 Feb 2019 09:21:26 +0000
2019-02-27 09:21:24 CLIENT -> SERVER: EHLO www.##########.co.uk
2019-02-27 09:21:24 SERVER -> CLIENT: 250-mail142.extendcp.co.uk Hello 199734.######.com [212.67.220.105]250-SIZE 31457280250-8BITMIME250-PIPELINING250-AUTH PLAIN LOGIN CRAM-MD5250-CHUNKING250-STARTTLS250 HELP
2019-02-27 09:21:24 CLIENT -> SERVER: STARTTLS
2019-02-27 09:21:24 SERVER -> CLIENT: 220 TLS go ahead
SMTP Error: Could not connect to SMTP host.
2019-02-27 09:21:24 CLIENT -> SERVER: QUIT
2019-02-27 09:21:24 SERVER -> CLIENT: 221 mail142.extendcp.co.uk closing connection
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Failed to send mail: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting2019-02-27 09:21:24 SERVER -> CLIENT: 220 mail142.extendcp.co.uk ESMTP Exim Wed, 27 Feb 2019 09:21:26 +0000
2019-02-27 09:21:24 CLIENT -> SERVER: EHLO www.##########.co.uk
2019-02-27 09:21:24 SERVER -> CLIENT: 250-mail142.extendcp.co.uk Hello 199734.######.com [212.67.220.105]250-SIZE 31457280250-8BITMIME250-PIPELINING250-AUTH PLAIN LOGIN CRAM-MD5250-CHUNKING250-STARTTLS250 HELP
2019-02-27 09:21:24 CLIENT -> SERVER: STARTTLS
2019-02-27 09:21:24 SERVER -> CLIENT: 220 TLS go ahead
SMTP Error: Could not connect to SMTP host.
2019-02-27 09:21:24 CLIENT -> SERVER: QUIT
2019-02-27 09:21:24 SERVER -> CLIENT: 221 mail142.extendcp.co.uk closing connection
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Failed to send mail: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

Edited by - Tinsle on 02/27/2019 01:27:02

Andy
ECT Moderator

95440 Posts

Posted - 02/27/2019 :  01:52:18  
Hi Kevin

Can you ask your host what these details should be from the main admin settings page

SMTP Username:
SMTP Password:
SMTP Host:
SMTP Port:
SMTP Secure: TLS or SSL?

and compare with what you have?

Andy

Please feel free to review / rate our software

Tinsle
Advanced Member

United Kingdom
342 Posts

Posted - 02/27/2019 :  06:41:26  
Hello Andy,

Our host has checked all details that have been entered and they are correct.

The PHPmailer at moment doesn't use SSL or TLS it just uses SMTP authentication.

For some reason since the ECT template update the mailer has stopped working and is blocking any emails being sent from our domain, is it poss to revert back to old PHPmailer as this was functioning correctly? Based on the debug message provided previously it seems as though the new PHPmailer is forcing TLS connection to begin with?...correct me if i am wrong?

Regards

Kevin

Edited by - Tinsle on 02/27/2019 06:42:29

Vince
Administrator

42874 Posts

Posted - 02/27/2019 :  07:34:35  
Hi Kevin
Have you had a look on the admin main settings page? That's where you can set if PHPMailer uses SSL or TLS. Before this was set in the includes.php file.

Vince


Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Tinsle
Advanced Member

United Kingdom
342 Posts

Posted - 02/27/2019 :  07:44:40  
Hi Vince,

Yes admin main settings is where i have set all the details, however it is not functioning?

Vince
Administrator

42874 Posts

Posted - 02/27/2019 :  08:55:57  
Hi Kevin
quote:
2019-02-27 09:21:24 SERVER -> CLIENT: 220 TLS go ahead
It does seem to be trying to initiate a TLS connection here.
But what we normally do is get you to ask your host to pop a simple test script on your server to send a mail. Often this is available in the hosting help files or you can open a support ticket with them. This ensures that it is possible at least to send an email from your server and using that test script we can copy the settings to the admin. Can you do that and let us know when it's done?

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Tinsle
Advanced Member

United Kingdom
342 Posts

Posted - 02/28/2019 :  02:00:17  
Hi Vince,

I think the problem is because we have made our server PCI compliant it is automatically trying force a secure TLS / SSL connection on the mail sever now, even though we didnt have this issue on v6.9.3. Something in the new PHPmailer autoload / class scripts must be forcing the connection in some way. I think to resolve the issue would mean we will have to move our mailer sever to a more secure SSL / TLS connection however this will cost us more to do so.

Is there a way to connect to the mail server without the PHPmailer script?

Regards

Kevin

Andy
ECT Moderator

95440 Posts

Posted - 02/28/2019 :  03:18:31  
Did you try sending emails by selecting

Use default PHP mail() function

from the

Email SMTP Service

drop down?

Andy

Please feel free to review / rate our software

Tinsle
Advanced Member

United Kingdom
342 Posts

Posted - 02/28/2019 :  04:04:11  
Hi ANdy,

Yes i have tried the default PHP mail() function but does not work.

I presume when this default is selected it then pulls the credentials that are set in the includes.php file?

If we overwrite the class.phpmailer.php and class.smtp.php with the files that we have from v6.9.3 do you think this will correct the issue for now? Were any other PHPmailer files changed other than the above in the new v7.0.3 update?

Kevin

Andy
ECT Moderator

95440 Posts

Posted - 02/28/2019 :  04:22:44  
No, the details in includes.php would now be ignored and can be removed as they just apply to the PHPmailer settings from before they were moved to the admin.

Did your host get back to you with a working mail script as Vince mentioned in an earlier post?

Andy

Please feel free to review / rate our software

Tinsle
Advanced Member

United Kingdom
342 Posts

Posted - 02/28/2019 :  04:31:29  
Yes they tried our same PHPmailer script on another separate server and it functions correctly, however when tested on our own it fails, this might be down to the secure PCI protocols that are set in place that now require a TLS / SSL connection to the mail server. The new PHPmailer files must be trying to force the secure connection in some way but it is failing as we do not have a secure TLS / SSL mail server?

Kevin

Tinsle
Advanced Member

United Kingdom
342 Posts

Posted - 02/28/2019 :  09:08:23  
Hi Andy / Vince,

The current PHPMailerAutoload.php file we are using has not been updated since 13th Feb 2017, has there been a update to this file since then that we might need to update? Also the phpmailer.lang-en.php file has not been updated since 15th July 2018.

Look forward to hearing from you

Regards

Kevin

Tinsle
Advanced Member

United Kingdom
342 Posts

Posted - 02/28/2019 :  09:12:38  
Hi again,

I have just uploaded our old class.phpmailer.php and class.smtp.php to see what difference this would make and the mail server is working now!??

Very bizarre. Must be something in the new files that are preventing the mail sever to function correctly?

Tinsle
Advanced Member

United Kingdom
342 Posts

Posted - 02/28/2019 :  09:39:45  
Hello Vince / Andy,

Our host has looked into the new class.phpmailer.php file and has noticed where the problem is on line 260 of the code.

As per below shows the script was forcing TLS as it was set to "true". Now setting this to "false" it is no longer forcing a secure TLS connection.

I would make this a swift update for everyone as they might be experiencing the same issues that we have done.


Line 260:

/**
* Whether to enable TLS encryption automatically if a server supports it,
* even if `SMTPSecure` is not set to 'tls'.
* Be aware that in PHP >= 5.6 this requires that the server's certificates are valid.
* @var boolean
*/

public $SMTPAutoTLS = false;



Regards

Kevin

insight
ECT Moderator

USA
4479 Posts

Posted - 02/28/2019 :  10:31:31  
quote:
The current PHPMailerAutoload.php file we are using has not been updated since 13th Feb 2017, has there been a update to this file since then that we might need to update? Also the phpmailer.lang-en.php file has not been updated since 15th July 2018.

I have it on good authority that PHPMailerAutoload.php is no longer used and phpmailer.lang-en.php was definitely never needed, so you can safely get rid of both.

$SMTPAutoTLS doesn't 'force' TLS, it's just opportunistic and will use TLS only if it's available (which it is on your mail server, you can see that in the earlier transcript), whether or not you actually specified it elsewhere. Because TLS is good. But it surely doesn't need 'a swift update' as I don't think anyone else is having any trouble - it's just some other misconfiguration on your mail server that is causing TLS to fail once attempted. Note that your little hack will need to be reinstated after future ECT updates.

Peter

ServeLink
Professional ecommerce web hosting for ASP & PHP
https://servelink.com

Take a look at our image upload/resize tool for the ASP cart
https://servelink.com/clients/cart.php?gid=7
Page: of 2 « Topic »  
Previous Page
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000