PDA

View Full Version : Can't Get Amazon SES working with vBulletin


pjkcards
12-03-2015, 02:59 AM
I'm trying to use Amazon SES for vBulletin after having some complaints about users not getting activation emails, notifications, etc.. In Email Options, I filled in these options:
https://www.dropbox.com/s/hs43eze1vxe7rpz/Screenshot%202015-12-03%2011.59.36.png?dl=0

Using Port 425. I tried both SSL and TLS, and when I do an email diagnostic I get the following message:
"The mailing function returned an error while trying to send the mail."

What else do I need to do to get this working? -f parameter isn't enabled, I've left it as no. Could that cause any issues?

Any help would be greatly appreciated. Thanks.

Paul M
12-04-2015, 08:02 PM
Prior to 4.2.3 you cannot do it, SES requires you to use the 'tls://' stream rather than 'tcp://' but this isnt available in older vbulletin versions.

In 4.2.3 a hook (mail_smtp_send_before) was added - which you can set [& use] to update the value

$stream = ($this->secure == 'tls' ? 'tls://' : $stream);



In 4.2.4 the code has been updated slightly again to provide a new 'TLS Native' option that will use the tls stream value.

4.2.4 (Beta 1) is due out before the end of the year.

pjkcards
12-05-2015, 08:20 AM
Thanks for your reply.

I'm using 4.2.2 now. If I upgrade to 4.2.3, and I update the hook using the code you provided, will it then work?