Post by psytanium » Fri Jul 25, 2025 9:19 pm

Hi,

I’m trying to send notification emails using an Office 365 SMTP account, but I keep getting an error every time I confirm a purchase on the checkout page. Please see the attached screenshot of the error message.

I’ve also attached a screenshot of my OpenCart mail settings configuration.

I’ve double-checked that the username and password are correct by logging in directly at outlook.com, so the credentials work. Also I tried port 465 and SSL://

Has anyone faced this before? Any ideas what I might be missing?

Im using OC3.0.3.8

Thank you!

Attachments

???
smtp-settings.png
???
smpt-error.png
Last edited by psytanium on Sat Jul 26, 2025 12:08 am, edited 1 time in total.

Active Member

Posts

Joined
Fri Nov 27, 2015 2:07 am

Post by khnaz35 » Fri Jul 25, 2025 10:16 pm

What is your opencart version?

btw you can do something like this to get more details on Exception
system/library/mail/smtp.php

Code: Select all

throw new \Exception('Error: EHLO not accepted from server'."\n".'['.$reply.']');

Got an urgent question that’s keeping you up at night? There might just be a magical inbox ready to help: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by psytanium » Sat Jul 26, 2025 2:53 pm

I want to know if my SMTP configuration is correct or missing something. Thanks

Active Member

Posts

Joined
Fri Nov 27, 2015 2:07 am

Post by psytanium » Sat Jul 26, 2025 3:10 pm

khnaz35 wrote:
Fri Jul 25, 2025 10:16 pm
What is your opencart version?

btw you can do something like this to get more details on Exception
system/library/mail/smtp.php

Code: Select all

throw new \Exception('Error: EHLO not accepted from server'."\n".'['.$reply.']');
Where do i add / replace this line of code ? Im using Opencart 3.0.8.0

Active Member

Posts

Joined
Fri Nov 27, 2015 2:07 am

Post by paulfeakins » Mon Jul 28, 2025 9:29 pm

psytanium wrote:
Sat Jul 26, 2025 3:10 pm
Im using Opencart 3.0.8.0
There is no such version?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by psytanium » Tue Jul 29, 2025 8:49 pm

paulfeakins wrote:
Mon Jul 28, 2025 9:29 pm
psytanium wrote:
Sat Jul 26, 2025 3:10 pm
Im using Opencart 3.0.8.0
There is no such version?
Sorry, this :
Version 3.0.3.8

Active Member

Posts

Joined
Fri Nov 27, 2015 2:07 am

Post by paulfeakins » Wed Jul 30, 2025 5:48 pm

psytanium wrote:
Sat Jul 26, 2025 3:10 pm

Code: Select all

throw new \Exception('Error: EHLO not accepted from server'."\n".'['.$reply.']');
This has been answered many times before: viewtopic.php?t=231301

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: Baidu [Spider] and 22 guests