annoying

Author Topic: Elastic EMail for SMF v1.6  (Read 1204 times)

dougiefresh

  • Adminstrator
  • Expert Member
  • *****
  • Posts: 261
Elastic EMail for SMF v1.6
« on: Aug 02, 2017, 08:30:08 PM »

ELASTIC EMAIL MOD v1.6
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.

Translators
o Spanish: Juan Carlos
o Spanish Latin: Rock Lee

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.
« Last Edit: Nov 17, 2017, 11:23:09 AM by dougiefresh »

dougiefresh

  • Adminstrator
  • Expert Member
  • *****
  • Posts: 261
Re: Elastic EMail for SMF v1.0
« Reply #1 on: Aug 02, 2017, 08:31:12 PM »

Below are some preview images of what the mod looks like when being used

Download Mod


FileName: ElasticEMail_For_SMF_v1.6.zip
Size: 14 kb (14,194 bytes)
MD5: b0033e66760b1542bd3b8494e1ed69a5
Built: Feb 28, 2018, 09:30:21 AM
Downloaded 49 times

Changelog

Uploaded v1.6 - Februray 20th, 2018
o Added Spanish Latin translation, courtsey of Rock Lee.

Uploaded v1.5 - February 17th, 2018
o Removed "Verification is available?" line from ElasticEMail settings page.

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!

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.

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...

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.

Uploaded v1.0.4 - August 28th, 2017
o Fixed undefined variable error found in Subs-ElasticEmail.php.
o Modified code to allow enabling mod even if no domain information found.
o Added message to warn user if no domain information was found.

Uploaded v1.0.3 - August 23rd, 2017
o Fixed several undefined variable errors.
o Fixed ElasticEMail URL so that mod works properly.

Uploaded v1.0.2 - August 16th, 2017
o Removed message about 50 email limit.
o Changed code so that API is properly checked in PHP code.
o Added option to use HTTP instead of HTTPS for ElasticEmail calls.
o Domain configuration results now show only if domain is linked to account.

Uploaded v1.0.1 - August 4th, 2017
o Removed line forcing a particular board URL.
o Fixed template code involving image locations.

Uploaded v1.0 - August 2nd, 2017
o Initial release

dougiefresh

  • Adminstrator
  • Expert Member
  • *****
  • Posts: 261
Re: Elastic EMail for SMF v1.0
« Reply #2 on: Aug 04, 2017, 03:25:51 PM »
Everyone who downloaded version 1.0:  Please update to version 1.0.1.  I left a debugging statement in the code, which effects the control panel applet.  I apologize for any inconvenience this caused anyone....