From what I've read online, I should use PHPMailer(). I'm not sure how to test/modify OC to use PHPMailer.
Does anyone know how I can do this?
And we here shall assume what kind of problems you have?oursupersoftware wrote: ↑Fri Apr 11, 2025 2:39 pmI can't seem to find what mailer OC uses? I've been having issues with OC sending emails with my VPS and email server.
From what I've read online, I should use PHPMailer(). I'm not sure how to test/modify OC to use PHPMailer.
Does anyone know how I can do this?
More information is needed if you really what to get help - unless you provide more details, nobody will be able to help you here.
Please read the Forum Rules before proceeding.
And who is writing where you should use PHPMailer?
And why?
OpenCart has it's own independant mail class.
Reading you other post here, you should know that already: viewtopic.php?t=235471
So why are you posting here again while the other thread is still open?
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
I have the same issue still (Original Thread).
I have a VPS and then also a separate mail server at the same host (I moved from Shared Hosting). They say my SMTP details are correct and that OC is the problem with sending emails, on the above thread I was told that it's a Email Server issue. I'm at my wits end with this, I have google for the past week for a solution and have come up short since.
I did a bit more research and now I see PHP Mailer is if you don't already have a mail server.
My main problem I'm trying to solve is this error when OC send a email (all emails OC sends):
Code: Select all
PHP Fatal error: Uncaught Exception: Error: EHLO not accepted from server! 550 Bad HELO - Host impersonating domain name [domainname.com]
Currently my setup is mydomain.com points to my VPS server (where OC is hosted), and then mail.mydomain.com points to my mail server.
It makes no sense to open 2 different with the same!
Anyway, the message tell you the problem already:
You did not post since yet which server administration tool you are using (Plesk, cPanel, etc.), but I assume you are using cPanel.550 Bad HELO - Host impersonating domain name
Then you are the one who is responsible for all settings there, especially DNS, MX and other records/settings.
Maybe you search by yourself and read all the answers: https://www.google.com/search?q=550+Bad ... omain+name
So either you are able to solve that problem by yourself, ask your provider or hire a technician you can do it for you.
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
False!oursupersoftware wrote: ↑Fri Apr 11, 2025 5:15 pmI did a bit more research and now I see PHP Mailer is if you don't already have a mail server.
Why?
PHPMailer has nothing todo with your mailserver.
You're mixing apples with pears.
And - as already said! - OpenCart use it's own mail class, you don't need any other (like PHPMailer).
Better to learn how servers are working, and what a mailserver in comparison to other types (like database) is - and what not.
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Did you check what your servername is set to? as in getenv('SERVER_NAME')?oursupersoftware wrote: ↑Fri Apr 11, 2025 5:15 pmSorry about the new thread, I wasn't getting any help there.
I have the same issue still (Original Thread).
I have a VPS and then also a separate mail server at the same host (I moved from Shared Hosting). They say my SMTP details are correct and that OC is the problem with sending emails, on the above thread I was told that it's a Email Server issue. I'm at my wits end with this, I have google for the past week for a solution and have come up short since.
I did a bit more research and now I see PHP Mailer is if you don't already have a mail server.
My main problem I'm trying to solve is this error when OC send a email (all emails OC sends):I would really appreciate any help/guidance with this issue, do I need to install/configure specific software for OC to send email's with SMTP using credentials from my separate email server/host.Code: Select all
PHP Fatal error: Uncaught Exception: Error: EHLO not accepted from server! 550 Bad HELO - Host impersonating domain name [domainname.com]
Currently my setup is mydomain.com points to my VPS server (where OC is hosted), and then mail.mydomain.com points to my mail server.
if the reverse dns ip does not match that host name, it will bounce.
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
I tried setting up Postfix but no success. I'm deploying on Ubuntu. My mail server is completely separate from my web server (Ubuntu VPS), my email are hosted by my host in a shared hosting server.khnaz35 wrote: ↑Fri Apr 11, 2025 10:34 pmWhich MTA are you running on your VPS? Are you using Postfix, Exim, or something more custom? Also, what distro are you deploying it on — Debian-based, RHEL, or something minimal like Alpine? Curious how you've structured your mail stack — especially around security (SPF, DKIM, DMARC), spam filtering, and user auth.
My server name is mydomain.com, I assume that might be my problem even though the emails are sent with SMPT using mail.mydomain.com which is a different server.nonnedelectari wrote: ↑Fri Apr 11, 2025 7:57 pmDid you check what your servername is set to? as in getenv('SERVER_NAME')?oursupersoftware wrote: ↑Fri Apr 11, 2025 5:15 pmSorry about the new thread, I wasn't getting any help there.
I have the same issue still (Original Thread).
I have a VPS and then also a separate mail server at the same host (I moved from Shared Hosting). They say my SMTP details are correct and that OC is the problem with sending emails, on the above thread I was told that it's a Email Server issue. I'm at my wits end with this, I have google for the past week for a solution and have come up short since.
I did a bit more research and now I see PHP Mailer is if you don't already have a mail server.
My main problem I'm trying to solve is this error when OC send a email (all emails OC sends):I would really appreciate any help/guidance with this issue, do I need to install/configure specific software for OC to send email's with SMTP using credentials from my separate email server/host.Code: Select all
PHP Fatal error: Uncaught Exception: Error: EHLO not accepted from server! 550 Bad HELO - Host impersonating domain name [domainname.com]
Currently my setup is mydomain.com points to my VPS server (where OC is hosted), and then mail.mydomain.com points to my mail server.
if the reverse dns ip does not match that host name, it will bounce.
Thanks for clarifying. I do understand the different types of servers, I just don't know how/what I need to set up to make the Ubuntu VPS web server (with OC) send emails with the shared email hosting.OSWorX wrote: ↑Fri Apr 11, 2025 6:02 pmFalse!oursupersoftware wrote: ↑Fri Apr 11, 2025 5:15 pmI did a bit more research and now I see PHP Mailer is if you don't already have a mail server.
Why?
PHPMailer has nothing todo with your mailserver.
You're mixing apples with pears.
And - as already said! - OpenCart use it's own mail class, you don't need any other (like PHPMailer).
Better to learn how servers are working, and what a mailserver in comparison to other types (like database) is - and what not.
I feel like I'm missing an important part of the puzzle but I don't know what.
So I did some digging and found that my domain points to the right IP address e.g:ADD Creative wrote: ↑Mon Apr 14, 2025 6:25 pmAs already pointed out, it could be an issue with your SERVER_NAME server setting, so check that first. Could be an issue with the reverse DNS lookup of your domain. Could be a issue in that your mail server is set as being your domain, so is rejection a remote connection from something claiming to be that domain.
mydomain.com points to xxx.xxx.xxx.xxx (this is my VPS IP address)
then I checked my mail server:
mail.mydomain.com points to xxx.yyy.yyy.yyy
I also checked what my SERVER_NAME is, and it's mydomain.com
Unfortunately I'm not able to check what SERVER_NAME is on my mail server.
Is it possible for me to PM you my DNS records so you can check if you see something wrong?
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
The mail server won't have SERVER_NAME as that's just for web servers. It will just be the mail server configuration. Have you asked whoever hosts you mail server?oursupersoftware wrote: ↑Tue Apr 15, 2025 2:46 pmI also checked what my SERVER_NAME is, and it's mydomain.com
Unfortunately I'm not able to check what SERVER_NAME is on my mail server.
I have asked my Host of the VPS and Mail Server, and they say it's OpenCart that is not working.ADD Creative wrote: ↑Tue Apr 15, 2025 4:28 pmThe mail server won't have SERVER_NAME as that's just for web servers. It will just be the mail server configuration. Have you asked whoever hosts you mail server?oursupersoftware wrote: ↑Tue Apr 15, 2025 2:46 pmI also checked what my SERVER_NAME is, and it's mydomain.com
Unfortunately I'm not able to check what SERVER_NAME is on my mail server.
smtp does a HELO server_nameoursupersoftware wrote: ↑Wed Apr 16, 2025 2:10 pmI have asked my Host of the VPS and Mail Server, and they say it's OpenCart that is not working.ADD Creative wrote: ↑Tue Apr 15, 2025 4:28 pmThe mail server won't have SERVER_NAME as that's just for web servers. It will just be the mail server configuration. Have you asked whoever hosts you mail server?oursupersoftware wrote: ↑Tue Apr 15, 2025 2:46 pmI also checked what my SERVER_NAME is, and it's mydomain.com
Unfortunately I'm not able to check what SERVER_NAME is on my mail server.
That mail server you are connecting to may check if your ip address is linked to that server name (domain name)
I am assuming that your server's ip address is not linked to domain "mydomain.com".
So change your server name to what your actual domain is, you do that in https.conf globally with the servername directive or via the virtualhost directives.
In ssystem/library/mail/smtp.php chang.
Code: Select all
fputs($handle, 'EHLO ' . getenv('SERVER_NAME') . "\r\n");
Code: Select all
fputs($handle, 'EHLO [' . $_SERVER['SERVER_ADDR'] . "]\r\n");
Users browsing this forum: No registered users and 59 guests