Origin topic: http://www.simplemachines.org/community/index.php?topic=512386
After implementing this code, what would be the settings in the admin panel to get this code to work?
When using this code snippet, there are literally no admin settings to set to make this code work. In this code snippet, all settings must be hardcoded into Subs-Post.php. It works only if the Elastic EMail username and API key are set.
Thanks Douggie fresh. I implemented the code as suggested and it isn't working, so I wanted to make sure I wasn't missing something on that side.
I'm on 2.0xx. Any suggestions on how to debug this to see why it wouldn't be working? It looks like Elastic may have updated their API, so I'm wondering if that's the issue.
Please, for future situations, avoid bumping up such an old topic... It's just better to open a new one. Topic splitted.
Regards :)
Quote from: d3vcho on January 08, 2017, 11:29:52 AM
Please, for future situations, avoid bumping up such an old topic... It's just better to open a new one. Topic splitted.
Regards :)
Sorry, with all the information on the old thread I figured it whould be easier to get for people help without jumping between threads.
The API URL has changed to https://api.elasticemail.com/v2/email/send. Changing it to that may assist it in working. I'm going to assume that you did get an API key and username from the Elastic EMail site, right? And that you inserted said stuff into the code, correct?
Hmmmm..... I can't get the code to work, either..... Looking into it.
EDIT: Calling API directly works, but not in the code. WTF?!
Okay, I had to enable SSL support on my localhost PHP service. I found the information here (http://www.codecheese.com/2012/09/unable-to-find-the-socket-transport-ssl-did-you-forget-to-enable-it-when-you-configured-php/), and once I enabled the SSL support, the code sent the emails just fine....
UPDATE: I've decided to publish the mod, despite the fact the person who said they would pay me $100 for the job hasn't paid, nor has any claim over the mod....
Here it is: Elastic EMail for SMF (http://www.xptsp.com/board/index.php?topic=1604.0).