Page 1 of 1

1.5.4.1 SMTP not Working for SES

Posted: Mon Sep 28, 2015 1:56 am
by al3xandr1a
Im using OC 1.5.4.1 and having problem with emails not being sent when SMTP setting is used.

The SMTP transactional service Im using is Amazon's SES.

In the OC System Setting for Mail, I have the following field values:

Mail Protocol: SMTP
SMTP Host: email-smtp.us-east-1.amazonaws.com
SMTP Username: 50MECHARACT3R53
SMTP Password: aIMDHGFFJhsgdghysdfj!fgdg
SMTP Port: 587 (tried 25 and 467 as well)
SMTP Timeout: 5

Error Log shows:
PHP Warning: fsockopen(): unable to connect to email-smtp.us-east-1.amazonaws.com:587 (Connection refused) in /server/user/public_html/mydomain.com/system/library/phpmailer/class.smtp.php on line 135

How to fix this?

Re: 1.5.4.1 SMTP not Working for SES

Posted: Tue Sep 29, 2015 4:28 pm
by al3xandr1a
can someone please help...

Re: 1.5.4.1 SMTP not Working for SES

Posted: Tue Sep 29, 2015 6:11 pm
by artcore
try
ssl://email-smtp.us-east-1.amazonaws.com:465
or perhaps without the port :465

edit your post and replace your credentials by fake ones if those are real!

Re: 1.5.4.1 SMTP not Working for SES

Posted: Tue Sep 29, 2015 10:17 pm
by al3xandr1a
Hi artcore,

Did you mean adding the ssl:// like this...?

SMTP Host: ssl://email-smtp.us-east-1.amazonaws.com


(The credentials used above are fakes...thank you)

Re: 1.5.4.1 SMTP not Working for SES

Posted: Tue Sep 29, 2015 11:19 pm
by artcore
Yes ;D

Re: 1.5.4.1 SMTP not Working for SES

Posted: Tue Sep 29, 2015 11:33 pm
by al3xandr1a
I tried it but still the same error... :-(

Re: 1.5.4.1 SMTP not Working for SES

Posted: Wed Sep 30, 2015 1:46 am
by artcore
http://docs.aws.amazon.com/ses/latest/D ... ckage.html

It seems they use tls:// on port 465

Is your server IP blacklisted?
Do they offer support?

Otherwise did you try the regular MAIL function?

Re: 1.5.4.1 SMTP not Working for SES

Posted: Thu Mar 15, 2018 6:02 am
by Wellington Queiroz
I tested on Ubuntu 16.04 with Opencart 1.5.6.1, Amazon SES.

Get files on: http://www.mediafire.com/?h9oo072xbksx0 and save in folder /system/library/

Remember just of change the e-mail in line 120 and 122 in file mail.php