Page 1 of 1

Can anyone get SMTP to work?

Posted: Sun Nov 05, 2017 5:28 am
by pom
Been trying to get SMTP to work for the last 3 days and I'm about to burst.

I've tried every combination of settings in system/settings/mail but nothing works.

I'm using Centos7, postfix, dovecot, roundcube. All works well there and I can send and receive via SMTP all day long. MX lookup is all fine.
I just can't implement SMTP in opencart.

Sending test newsletters just gives an "internal server error" with no error code to give my any clues.
Customers registering or using the contact form get a blank screen, again no error code.

Using "mail" instead of SMTP works but it's not ideal.

I've searched the forums and googled for ever but I'm at a loss.

Any ideas?

Re: Can anyone get SMTP to work?

Posted: Sun Nov 05, 2017 5:29 am
by straightlight
Try SMTP with Gmail configurations. Most merchants uses this option as it does return positive results.

Re: Can anyone get SMTP to work?

Posted: Sun Nov 05, 2017 5:49 am
by pom
Thanks, that seems to work and will do me in the meantime.

I'm guessing the problem is getting my server config to work with opencart.
Could it be because I'm using virtual email accounts?

Re: Can anyone get SMTP to work?

Posted: Sun Nov 05, 2017 5:52 am
by straightlight
Without providing the access logs, since you can't seem to find any email error results according to your first post, it would be harden to track the source of the issue. Email error activities can often be tracked in the server logs by opening the access logs either from your FTP root folder or from your host console.

Re: Can anyone get SMTP to work?

Posted: Mon Nov 06, 2017 9:30 am
by Kiwisouvenirs
Once it is up and running I would advise you to confirm that the contact page also works with the emails

Re: Can anyone get SMTP to work?

Posted: Mon Nov 06, 2017 10:32 am
by straightlight
If the email configuration has been properly configured from the Opencart admin and the event database table have the enabled settings from the route you are using on your store, the emails should be sent as expected.

Re: Can anyone get SMTP to work?

Posted: Tue Nov 07, 2017 3:57 am
by pom
Yeah all works well with the gmail settings; admin and customers receive all the notifications they should.

Clearly there's nothing wrong with my opencart if gmail works, but there doesn't seem to be anything wrong with my email server either. Nothing in the server logs to report.

I guess my server config is outside the scope of this forum.
It'd be nice to have documentation on exactly how the opencart email works, if there's any required TLS settings for example, or what not to have enabled.

If I figure it out I'll report back. Email configurations are the devils work tho :D