Cannot send email from OpenCart

Asked by:
HubFans / n/a Points
Time:
2015-01-06 1:10 am EST
Category:
Opencart 15
Hits:
3,303
Initially I tried using the "Mail" protocol without specifying any other fields, but the emails never arrived their destination. I also tried using SMTP with an account I created in cPanel but I got the following error:

Notice: Error: EHLO not accepted from server! in /home/jofolh5/public_html/system/library/mail.php on line 198

Does anyone have I clue how I can investigate that? I am using OpenCart 2.0.1.1, no extensions besides language pack installed.

To ask this user for more information, please first login.

To submit an answer, please login.

ANSWERS

0

ScottM
Staff
16,266 Points
2015-01-06 1:20 am EST
Hello,

Thank you for your question. I believe I understand what you mean about the 'mail' protocol (settings in the mail tab, right?) but would need to understand what you are trying to do to have OpenCart send a mail. Also, what are the SMTP settings you are using? (servername and port is fine, assuming your username and password are correct). We would need to try and duplicate the issue to be able to correct it. Please let us know if you have any further questions.

Kindest Regards,
Scott M

To submit a comment on this answer, please first login.

You got it right about the mail tab. I tried using both the 'mail' protocol (assuming PHP mail would handle everything, as my other hosting provider does) and using the SMTP settings I got from cPanel (email accounts section).

The results I got are:
'mail': No error message, but the emails (new account confirmation for example) never arrive.
'smtp' with the cPanel settings (including tls://): "Notice: Error: EHLO not accepted from server"
rbaprado
6 Points

2015-01-06 1:27 am EST
Hello rbaprado,

I need a bit more information so I can do some testing. What is the server name and port number you are setting for SMTP? (I can delete them before hey go public) and what function are you performing in OpenCart to cause an email to be sent for testing?

Kindest Regards,
Scott M
ScottM
16,266 Points
Staff
2015-01-06 2:38 am EST
Server Name: {Removed}
Port Number: {Removed}

I tried creating a new customer (triggering a confirmation email) and sending a newsletter.
rbaprado
6 Points

2015-01-06 2:44 am EST
Hello rbaprado,

Thank you for the information. I will need to do some more testing on my own version of OpenCart 2.0.1.1 as well to see if I can duplicate the error and find a solution. Thank you for your patience.

Kindest Regards,
Scott M
ScottM
16,266 Points
Staff
2015-01-06 3:46 am EST
Want to share this Question?
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.
}