Advertisement:

Author Topic: Elastic EMail for SMF  (Read 3252 times)

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,499
    • XPtsp.com Community
Elastic EMail for SMF
« on: September 14, 2017, 02:44:17 PM »
Link to Mod


ELASTIC EMAIL MOD v1.4
By Dougiefresh -> Link to Mod


Introduction
Some webhost providers, such as GoDaddy, limit the number of emails that a website can send to some dreadfully low number, like 250 per day.  This is fine for extremely small forums, but can quickly be exhausted with even a small amount of email sending by the forum.

This mod adds code to allow the SMF forum to send email via the ElasticEMail.com REST API, which can support up to 150,000 (150 thousand) emails per month for free (roughly 5,000 per day, if the emails are spread evenly over a month).

If sending the email through the Elastic EMail server fails for some reason, then the email will take it's usual route through the SMF code to be sent.

Mod Requirements
It should go without saying that you need to sign up for a ElasticEMail.com account.  There you will be able to get the username and API key that this mod requires.

You also must be able to modify your domain's DNS records in order to maximize the number of emails your forum can send.  If you fail to do so, you will be limited to 500 emails per day.  Further instructions can be found at the Elastic EMail's Settings: Using Your Domain page.

BE FOREWARNED: I WILL NOT ASSIST WITH DOMAIN DNS RECORD CHANGES!!!  You have been warned!  If you are (1) uncomfortable with, or (2) unable to make these changes, this mod is NOT FOR YOU!

Admin Settings
There is a new section under Admin -> Maintenance -> Mail -> Elastic EMail.

Compatibility Notes
This mod was tested on SMF 2.0.13 and SMF 2.1 Beta 3, but should work on SMF 2.0 and up.  SMF 1.x is not and will not be supported. 

Related Discussions
o Add REST API
o Add REST API (split from first topic)

Changelog
The changelog has been removed and can be seen at XPtsp.com.

License
Quote
Copyright (c) 2017, Douglas Orend
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
NOTICE:  My website is back up!

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Online vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,456
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Elastic EMail for SMF
« Reply #1 on: September 14, 2017, 04:25:45 PM »
Elasticmail does require you to have an address/name/company name. So make sure if you use. Put your company/or po box address in the settings.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Stanyy

  • Jr. Member
  • **
  • Posts: 264
Re: Elastic EMail for SMF
« Reply #2 on: October 14, 2017, 01:10:10 PM »
Hello,

This is a lovely idea, but for some reason it doesn't seem to work on my forum (smf 2.0.9).

There's an empty red alert box on the settings page. Also I don't see the "Domain Configuration Results" block shown in the mod screenshot.

I took a screenshot of my settings page (see attachment).

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,499
    • XPtsp.com Community
Re: Elastic EMail for SMF
« Reply #3 on: October 17, 2017, 01:05:09 PM »
Uploaded v1.1 - October 17th, 2017
o Fixed misspelling of text strings used by the mod.
o Fixed domain-inclusion issue of the "no domain found" error message.



@Stanyy:  Hopefully, this update fixes the issue you reported.
NOTICE:  My website is back up!

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Offline Juan Carlos

  • Jr. Member
  • **
  • Posts: 158
  • Gender: Male
Re: Elastic EMail for SMF
« Reply #4 on: December 23, 2017, 07:53:21 PM »
Hi

I am testng this mod and I installe in a SMF 2.1 Beta 4.

The instalattion was ok (Emulating 2.0) but now I have this error in the log:
Quote
Type of error: General
 Unable to load the 'ElasticEmail.english' language file.
 http://www.260mirod.com/forum/index.php?action=admin;area=mailqueue;sa=elastic;bcd94620f=517ed0948359fc8edf5b54fa5671bb6e
and in the config area I have this:
Quote
WARNING: No domain status found for domain "www.mydomain.com". This does not mean that this mod will not function, though.

Thank you
Juan Carlos

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,499
    • XPtsp.com Community
Re: Elastic EMail for SMF
« Reply #5 on: December 25, 2017, 08:49:23 PM »
Uploaded v1.2 - December 25th, 2017
o Added SMF 2.1 Beta 3 support with minor change to package-info.xml.
o Fixed LoadLanguage statement in Subs-ElasticEMail.php.
o Added code to attempt to discover status of OpenSSL support and set HTTPS option automatically.
o Added check to make sure API key is entered before testing API key...



@Juan Carlos:  This version fixes the bug you reported.  Thank you for reporting it!
NOTICE:  My website is back up!

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Offline Juan Carlos

  • Jr. Member
  • **
  • Posts: 158
  • Gender: Male
Re: Elastic EMail for SMF
« Reply #6 on: December 26, 2017, 11:00:03 AM »
Thank you dougiefresh

I update to this version and the error in loadlanguage is fixed but the:
 
Quote
WARNING: No domain status found for domain "www.*****.com". This does not mean that this mod will not function, though.
is steel there.
Juan Carlos

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,499
    • XPtsp.com Community
Re: Elastic EMail for SMF
« Reply #7 on: December 29, 2017, 10:47:52 PM »
Thank you dougiefresh

I update to this version and the error in loadlanguage is fixed but the:
 
Quote
WARNING: No domain status found for domain "www.*****.com". This does not mean that this mod will not function, though.
is steel there.
PM sent....
NOTICE:  My website is back up!

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,499
    • XPtsp.com Community
Re: Elastic EMail for SMF
« Reply #8 on: December 30, 2017, 11:29:43 AM »
Uploaded v1.3 - December 30th, 2017
o Added code to properly determine domain name from URL.
o Fixed issue where forum domain wasn't found in domain list from ElasticEMail.com.
o Moved code that included the template to after the domain searching code.



@Juan Carlos:  Thank you for your assistance!  The issue/bug you reported should be fixed with this version!
NOTICE:  My website is back up!

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Offline Juan Carlos

  • Jr. Member
  • **
  • Posts: 158
  • Gender: Male
Re: Elastic EMail for SMF
« Reply #9 on: December 30, 2017, 01:26:48 PM »
Thanks dougiefresh

Great work

I am sending attached the language "spanish_es" if it is of interest.
Juan Carlos

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,499
    • XPtsp.com Community
Re: Elastic EMail for SMF
« Reply #10 on: December 31, 2017, 07:19:47 AM »
Uploaded v1.4 - December 30th, 2017
o SMF 2.1: Fixed template function to use SMF 2.1 method for built-in icons.
o Added Spanish translation, courtsey of Juan Carlos!



@Juan Carlos:  Thank you for the translation!  It's been included in this version!
NOTICE:  My website is back up!

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!