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
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Can't send confirmation emails - outlook 365
Author « Topic »  

kpfund
Starting Member

20 Posts

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

Posted - 01/16/2020 :  07:37:07  
We moved out php system from a windows server to a linux server, and we are now no longer able to send confimration emails (or any emails) from eCommerce Templates.
We are using smtp.office365.com to send mail from this server.
We are not having this issue with other software on the site (which is using swiftmailer, if that is any help).

The error is silent - the process does not error out or anything, no email is sent on completion of a purchase, no email is sent when trying to resend receipt. A success message shows on the screen, but no message is sent.

We have tried to a few different email accounts, none receive anything, no mails are in spam.

We have configured Store Admin -> Main /settings smtp service to use PHP Mailer, and all the setting appear to be correct, TLS, 587, smtp.office365.com, username, password.

We tried the fix shown here:https://www.ecommercetemplates.com/help/email-help.asp, but this did not do anything.
We are running v7.0.4
Thank you for any assistance!

Vince
Administrator

42466 Posts

Posted - 01/17/2020 :  09:09:38  
Hi Kpfund
I think the best thing to do would be to set this parameter in your vsadmin/include.php file...
$debugmode=TRUE;
Then try sending an email. (The emailfriend is good for testing email. If you test with a purchase, remember emails are only sent once. If you refresh the page another email is not sent.)
What this will do is print debug information on the page about what caused any problems. Then copy and paste that information here.
Then take $debugmode out of your includes.php file or your customers may see debug.

Vince

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

EllenD
Advanced Member

United Kingdom
424 Posts

Posted - 02/10/2020 :  09:56:43  
Hi,

I hope it is OK to jump on this thread as I have exactly the same problem, and have run the debug as suggested. I have verified the smtp details by setting up in Thunderbird and they work fine, have copy/pasted to ECT so am sure no errors. Here is the debug stuff, I have removed personal info. This test is from email friend but also not getting any order emails. I find email friend is a bit misleading as a test tool as it says 'Thank you, your recommendation has been sent.' whether it is sent or if there is an error (this can be easily reproduced by putting a wrong pw in the admin). We have ECT version 7.1.8.

Any suggestions please?

Thanks
Ellen

2020-02-10 17:46:04 SERVER -> CLIENT: 220 LO2P265CA0216.outlook.office365.com Microsoft ESMTP MAIL Service ready at Mon, 10 Feb 2020 17:46:03 +0000
2020-02-10 17:46:04 CLIENT -> SERVER: EHLO www.mydomain.com.gridhosted.co.uk
2020-02-10 17:46:04 SERVER -> CLIENT: 250-LO2P265CA0216.outlook.office365.com Hello [91.208.99.2]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-STARTTLS250-8BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8
2020-02-10 17:46:04 CLIENT -> SERVER: STARTTLS
2020-02-10 17:46:04 SERVER -> CLIENT: 220 2.0.0 SMTP server ready
2020-02-10 17:46:04 CLIENT -> SERVER: EHLO www.mydomain.com.gridhosted.co.uk
2020-02-10 17:46:04 SERVER -> CLIENT: 250-LO2P265CA0216.outlook.office365.com Hello [91.208.99.2]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-AUTH LOGIN XOAUTH2250-8BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8
2020-02-10 17:46:04 CLIENT -> SERVER: AUTH LOGIN
2020-02-10 17:46:04 SERVER -> CLIENT: 334 VXNlcm5hbWU6
2020-02-10 17:46:04 CLIENT -> SERVER: ZGVsaWFAY2FtcGVydmFuY29va2llcy5jb20=
2020-02-10 17:46:04 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
2020-02-10 17:46:04 CLIENT -> SERVER: OWtVSmlHKjA=
2020-02-10 17:46:04 SERVER -> CLIENT: 235 2.7.0 Authentication successful
2020-02-10 17:46:04 CLIENT -> SERVER: MAIL FROM:<jack@anotherdomain.co.uk>
2020-02-10 17:46:04 SERVER -> CLIENT: 250 2.1.0 Sender OK
2020-02-10 17:46:04 CLIENT -> SERVER: RCPT TO:<jack@anotherdomain.co.uk>
2020-02-10 17:46:04 SERVER -> CLIENT: 250 2.1.5 Recipient OK
2020-02-10 17:46:04 CLIENT -> SERVER: DATA
2020-02-10 17:46:04 SERVER -> CLIENT: 354 Start mail input; end with <CRLF>.<CRLF>
2020-02-10 17:46:04 CLIENT -> SERVER: Date: Mon, 10 Feb 2020 17:46:04 +0000
2020-02-10 17:46:04 CLIENT -> SERVER: To: jack@anotherdomain.co.uk
2020-02-10 17:46:04 CLIENT -> SERVER: From: My Store <jack@anotherdomain.co.uk>
2020-02-10 17:46:04 CLIENT -> SERVER: Reply-To: me@xxx.co.uk
2020-02-10 17:46:04 CLIENT -> SERVER: Subject: Jo Bloggs recommends this site
2020-02-10 17:46:04 CLIENT -> SERVER: Message-ID: <28d7e128ba0c996c51de7b49af4b0a08@www.mydomain.com.gridhosted.co.uk>
2020-02-10 17:46:04 CLIENT -> SERVER: X-Mailer: PHPMailer 5.2.27 (https://github.com/PHPMailer/PHPMailer)
2020-02-10 17:46:04 CLIENT -> SERVER: MIME-Version: 1.0
2020-02-10 17:46:04 CLIENT -> SERVER: Content-Type: text/html; charset=iso-8859-1
2020-02-10 17:46:04 CLIENT -> SERVER:
2020-02-10 17:46:04 CLIENT -> SERVER: Your friend Jo Bloggs (me@xxx.co.uk) has recommended this site to you, and sends you the following message:<br />Test email friend<br /><br /><a href="http://www.mydomain.com.gridhosted.co.uk/My-Prod">http://www.mydomain.com.gridhosted.co.uk/Type-2-Bay-Easter-Cookie-Card</a><br />
2020-02-10 17:46:04 CLIENT -> SERVER:
2020-02-10 17:46:04 CLIENT -> SERVER: .
2020-02-10 17:46:05 SERVER -> CLIENT: 554 5.2.0 STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message Cannot submit message. 0.35250:CF050000, 1.36674:0A000000, 1.61250:00000000, 1.45378:02000000, 1.44866:B4220000, 1.36674:0E000000, 1.61250:00000000, 1.45378:B9220000, 1.44866:76010000, 16.55847:6B100000, 17.43559:0000000004020000000000000000000000000000, 20.52176:140F938A1800000000000000, 20.50032:140F938A881770200A00358A, 0.35180:140F938A, 255.23226:ED05
2020-02-10 17:46:05 SMTP ERROR: DATA END command failed: 554 5.2.0 STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message Cannot submit message. 0.35250:CF050000, 1.36674:0A000000, 1.61250:00000000, 1.45378:02000000, 1.44866:B4220000, 1.36674:0E000000, 1.61250:00000000, 1.45378:B9220000, 1.44866:76010000, 16.55847:6B100000, 17.43559:0000000004020000000000000000000000000000, 20.52176:140F938A1800000000000000, 20.50032:140F938A881770200A00358A, 0.35180:140F938A, 255.23226:ED05
SMTP Error: data not accepted.
Failed to send mail: SMTP Error: data not accepted.SMTP server error: DATA END command failed Detail: STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message Cannot submit message. 0.35250:CF050000, 1.36674:0A000000, 1.61250:00000000, 1.45378:02000000, 1.44866:B4220000, 1.36674:0E000000, 1.61250:00000000, 1.45378:B9220000, 1.44866:76010000, 16.55847:6B100000, 17.43559:0000000004020000000000000000000000000000, 20.52176:140F938A1800000000000000, 20.50032:140F938A881770200A00358A, 0.35180:140F938A, 255.23226:ED05 SMTP code: 554 Additional SMTP info: 5.2.02020-02-10 17:46:05 CLIENT -> SERVER: QUIT
2020-02-10 17:46:05 SERVER -> CLIENT: 0000, 255.27962:0A000000, 255.27962:0E000000, 255.31418:F2050000, 0.35250:0A000000, 1.36674:0A000000, 1.61250:00000000, 1.45378:02000000, 1.44866:52000000, 1.36674:32000000, 1.61250:00000000, 1.45378:57000000, 1.44866:01000000, 16.55847:BE000000, 17.43559:0000000000030000000000000100000000000000, 20.52176:140F938A180010100B060000, 20.50032:140F938A8817000003000136, 0.35180:10060000, 255.23226:0A00858A, 255.27962:0A000000, 255.27962:32000000, 255.17082:DC040000, 0.27745:4800D13D, 4.21921:DC040000, 255.27962:FA000000, 255.1494:0A002F3D, 0.38698:77090000, 0.37692:02000003, 0.37948:3C76778D, 5.33852:00000000534D545000000100, 7.36354:0100000000000109302E3237, 4.56248:DC040000, 7.40748:010000000000010B3A633365, 7.57132:00000000000000006334652D, 1.63016:32000000, 4.39640:DC040000, 8.45434:8094E4CA89BDCC4C87FA2E23CC72BB5E00000000, 5.10786:0000000031352E32302E323730372E3031373A564931505230324D42343232343A63336562636661302D336364642D346334652D626138612D36373831393837306437643100201000000000, 7.51330:4B8E151A51AED70800000000, 255.1750:03001736, 255.31418:51060000, 0.22753:0A001612, 255.21817:DC040000, 4.60547:DC040000, 0.21966:0A002012, 4.30158:DC040000 [Hostname=VI1PR02MB4224.eurprd02.prod.outlook.com]221 2.0.0 Service closing transmission channel
2020-02-10 17:46:05 SMTP ERROR: QUIT command failed: 0000, 255.27962:0A000000, 255.27962:0E000000, 255.31418:F2050000, 0.35250:0A000000, 1.36674:0A000000, 1.61250:00000000, 1.45378:02000000, 1.44866:52000000, 1.36674:32000000, 1.61250:00000000, 1.45378:57000000, 1.44866:01000000, 16.55847:BE000000, 17.43559:0000000000030000000000000100000000000000, 20.52176:140F938A180010100B060000, 20.50032:140F938A8817000003000136, 0.35180:10060000, 255.23226:0A00858A, 255.27962:0A000000, 255.27962:32000000, 255.17082:DC040000, 0.27745:4800D13D, 4.21921:DC040000, 255.27962:FA000000, 255.1494:0A002F3D, 0.38698:77090000, 0.37692:02000003, 0.37948:3C76778D, 5.33852:00000000534D545000000100, 7.36354:0100000000000109302E3237, 4.56248:DC040000, 7.40748:010000000000010B3A633365, 7.57132:00000000000000006334652D, 1.63016:32000000, 4.39640:DC040000, 8.45434:8094E4CA89BDCC4C87FA2E23CC72BB5E00000000, 5.10786:0000000031352E32302E323730372E3031373A564931505230324D42343232343A63336562636661302D336364642D346334652D626138612D36373831393837306437643100201000000000, 7.51330:4B8E151A51AED70800000000, 255.1750:03001736, 255.31418:51060000, 0.22753:0A001612, 255.21817:DC040000, 4.60547:DC040000, 0.21966:0A002012, 4.30158:DC040000 [Hostname=VI1PR02MB4224.eurprd02.prod.outlook.com]221 2.0.0 Service closing transmission channel

EllenD
Advanced Member

United Kingdom
424 Posts

Posted - 02/10/2020 :  10:04:21  
Ah. Having done the debug I think I figured it out.... it looks like in the main settings page, the 'email address' (receiving the email) and the 'smtp username' email address have to be the same. Tried that and it worked.
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000