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
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Order At Your Store Not arriving and SMTP issue
Author « Topic »  

AndyHarrison
Starting Member

United Kingdom
14 Posts

Pre-sales questions only
(More Details...)

Posted - 10/22/2022 :  06:42:57  
Hi,

We are having an issue with Order At Your Store emails not always arriving, sometimes I only know we have an order because Paypal email arrives. I've been in touch with your hosting provider to see if they can spot anything and they suggested I use SMTP rather than PHP mail to see if that helped.

So I configured the server as per their settings for the host, port as 25 and security as None.

However when I try to resend an email I get the following error, which looks to me as though the server is using TLS security rather than none?

This is with V7.5.2, can anyone help?

Regards,

Andy

2022-10-22 13:34:47 SERVER -> CLIENT: 220 smtp-out-sh.livemail.co.uk ESMTP Postfix
2022-10-22 13:34:47 CLIENT -> SERVER: EHLO www.kalypsoglass.co.uk
2022-10-22 13:34:47 SERVER -> CLIENT: 250-smtp-out-sh.livemail.co.uk250-PIPELINING250-SIZE 51200000250-VRFY250-ETRN250-STARTTLS250-ENHANCEDSTATUSCODES250-8BITMIME250 DSN
2022-10-22 13:34:47 CLIENT -> SERVER: STARTTLS
2022-10-22 13:34:47 SERVER -> CLIENT: 454 4.7.0 TLS not available due to local problem
2022-10-22 13:34:47 SMTP ERROR: STARTTLS command failed: 454 4.7.0 TLS not available due to local problem
SMTP Error: Could not connect to SMTP host. STARTTLS command failed TLS not available due to local problem
2022-10-22 13:34:47 CLIENT -> SERVER: QUIT
2022-10-22 13:34:47 SERVER -> CLIENT: 221 2.0.0 Bye
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Failed to send mail: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

Vince
Administrator

42874 Posts

Posted - 10/22/2022 :  12:40:56  

AndyHarrison
Starting Member

United Kingdom
14 Posts

Pre-sales questions only
(More Details...)

Posted - 10/23/2022 :  01:45:48  
Hi Vince,

Thanks for getting back to me.

I'm note really sure why it used to work and has stopped, but fasthosts are now stuck on the fact the SMTP is not working properly rather than working out why the original PHP mail() stopped working...

It seems I have to use their internal smtp server as thats the one that allows internal servers to send and doesn't use any account/password details other than you have to be sending from an email account that they host, so the settings I used are -

Email address: our email
Email "From" Name: Kalypso Glass
Email SMTP Service: Use PHP Mailer
SMTP Username: our email
SMTP Password: Not Set
SMTP Host: websmtp.livemail.co.uk
SMTP Port: 25
SMTP Secure: None

which gives the TLS error that looks as though the client it trying to use TLS even though it it not set?

Andy

Vince
Administrator

42874 Posts

Posted - 10/23/2022 :  02:36:25  
Hi Andy
Really all the cart is doing is provide an interface to PHP Mailer and that really does seem to be working ok. What we need to do in a case like this is get the hosts to put a test script on the server that will send a mail and then that will firstly, make sure that it really is possible to send a mail from the server and secondly, we can copy any configuration from that test script that might have been missed. Can you ask them to do that and then let me know the login details for the server and location of the script?

Vince

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

AndyHarrison
Starting Member

United Kingdom
14 Posts

Pre-sales questions only
(More Details...)

Posted - 10/23/2022 :  05:02:36  
Hi Vince,

I did a bit of digging and it looks like it is strange behaviour in their servers.

The internal SMTP servers don't have any security, they just only accept internal email and apply rules to when and how often you can send etc to stop spam.

But, it looks to me as though it advertises that it supports the STARTTLS command.

CLIENT -> SERVER: EHLO www.kalypsoglass.co.uk
SERVER -> CLIENT: 250-smtp-out-sh.livemail.co.uk250-PIPELINING250-SIZE 51200000250-VRFY250-ETRN250-STARTTLS250-ENHANCEDSTATUSCODES250-8BITMIME250 DSN

But then fails when you try to use it.

CLIENT -> SERVER: STARTTLS
SERVER -> CLIENT: 454 4.7.0 TLS not available due to local problem

I noticed that our Contact Us form also uses PHPMailer and the only real difference I could find between your code and theirs is that they turn off SMTPAutoTLS. So I temporarily edited PHPMailer.php and changed public $SMTPAutoTLS = true; to false and the SMTP server then accepts the emails.

They never arrive with me, which was the original problem when the site was set to use PHP mail(), but at least I can now prove to them that its their fault...

Regards,

Andy

Vince
Administrator

42874 Posts

Posted - 10/23/2022 :  14:10:45  
Hi Andy
Wow, well done for finding that out and I hope you get this sorted soon.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000