Mail Send addon for Drupal and Simplenews Newsletter Module

More control on your newsletter mailings. Runs outside Drupal.

How it works
You only need the php file and a form that will initiate it plus a custom unsubscribe page. The script uses simplenews newsletter database tables, users, newsletter categories etc. The only thing you have to do is to disable the simplenews newsletter spool cron from Drupal cron in order to avoid having both this tool and Drupal cron sending mails or publish your newsletter but choose not to send them from Simplenews/Drupal interface. You can easily dissable simplenews cron with the Elysia Cron module for Drupal. Users will continue to subscribe/unsubscribe using simplenews newsletter module and you will create the newsletters the usual way. The script works with multiple newsletter categories and every time processes the latest newsletter that has not been sent. After you sent the newsletter, there is nothing else you need to do, spool tables are cleared and newsletter will be marked as sent in your Drupal site. When you are ready to send just call this php file with form submission (see form_example.html). This form will post a username and password (for extra security) to the php file and the process will start.
The custom unsubscribe page
Since we are sending e-mail oustide Drupal and Simple news framework we create a new unsubscribe link that is sent to all users. You can use the unsubscribe.php as example or as is. Simplenews unsubscribe functions still work as well but we need this file/url since we create a new type of unsubscribe URL that is send with mails. You have to declare the path for your new unsubscribe page ine the main php file and also set some settings in unsubscribe.php or how you will name it. You can even copy the php code to a Drupal page -you have to enable php in text editor from Drupal modules/settings- in order to have site-wide look and feel.
When sending mails you should not close the sending browser window. The page refresh it’s self in order to send the number of mails every some seconds based on your settings. After every iteration you will see the results (number of iterations, remaining e-mails), countdown to next iteration and any mail errors at the end. If you close the window before the process ends and resubmit the initiation form the script will resume sending.
Settings - Instalation
In the main php file you will have to set a few things, like the database connection details for your Drupal installation and username and password to run the script plus the stepping for mailing (how many mails every how many seconds will be sending) and the unsubscribe URL.
In your unsubscribe page you just have to set database connection details.
In your form (the php script should be called from a form) set the form action URL to mach your renamed php file and submit the username and password you have set in php file. There is a footer text field in the form. You can add there the urls for online view of message. You can use the drupal node URL of the newsletter you will send.
This form can be added as a Drupal page that only admins have access (enable full HTML at Drupal text editor) so you can send your e-mails from your Drupal admin site.
After you do your settings put you form somewhere (even in your computer, or as a secured Drupal page -unpublished, available only to admins-), upload the php file set the unsubscribe page and you are done.
To test the script, the simplest way is, to create a test newsletter category add a few e-mail addresses as subscribers, create a newsletter in this category, all with simplenews newsletter module and Drupal. Then send your newsletter with the initiation form and this php script.
Securtiy Tips
You should have no security issues with this sript as it runs outside Drupal, but here are some thing you should do.
-Rename the php file and do not add a public link to it
-Set script username and password in php file
-Add the initiation form to a Drupal page available only to admins, it can be an unpublished page.
Even if someone runs the script, will just sent an unsent newsletter. If all your newsletters have been sent nothing will happen (probably) :-)
For support visit our software forums at http://softwareforums.tecorange.com/
Thank you :-)
This is a free script from TECOrange.com provided “as is” without any kind of warranty. If you think this is good, share it, subscribe to newsletter or follow at twitter to find a lot of useful things around Web and Mobile Development, Project Management, SEO, SEM and more :-)
Mail Send for Drupal Newsletters

All we have...

Agile Feature Cards
Planning Poker Cards (Estimation Game)
Mobile Applications
Effort /Cost Estimation Mobile Application
Sharing - Social
Open an open-works.org profile, let people looking for your profession and skills find you
my share bar facebook, twitter, google +1, mail, print and more buttons for web
JIRA Extension Tool
Any Stock REST Service PHP Script
Countries and Cities for the world REST service.
Free Open Source Software
Skills Evaluator - Online Testing and Evaluation Tool
Orange Effort Estimation Tool
Team evaluation and appraisal tool
Simple e-document, free open source document and paper management web software (php, mysql)
Orange Project Management Free Online Tool (Free, OpenSource, PHP, MySQL)
Events Attendance Tool | Remove Ads Service | No end time Service
ecorCRM free web CRM tool based on Drupal, open source, PHP, MySQL
OrangeDeals deal site software (Free, Open Source, PHP, MySQL)
earthlead free open source mmo game
Experimental Web Software as a Service
Riverteams Deal Site and Teams Software as a Service (SaaS)
Dratoria MMO Game Software as a Service (SaaS)
Online Calculators
Website Valuation (how much your site worth)
Business Valuation (Calculate the Value/Worth of Your Business)
Other Tools and Works
Site Uptime Monitor
Claroline LMS Certificate Print Mod
Mail Send addon for Drupal
World Countries and Cities REST/JSON Service 1 Year Subscription

We support Volunteering

We support open-works.org


Spyros TasosWelcome to our "personal mostly" page. For us, this is a part-time personal project that we develop during our free time and maintain with few friends with expertise in various fields. We gather here most of our personal work and knowledge. So you will find... open source software, training courses, blog articles and a lot more. Some things are free and some are available with cost, since they require some person time to be delivered to each person interested. We are happy because our free software has been downloaded about times until now, and this page has been visited by about people since 01-01-2012.
You can contact us using the contact form. We will respond in less than 24 hours.
Enjoy your staying! :)

We think this is interesting...

FREE Project Management Community Certifications and Training
Join the bigest PM Community
"Presentations, Articles, Awards, Forum, Chat, PM Search and many more..."

Get the Effort Estimation Mobile Tool
for web and mobile projects effort estimating
"Effort Estimation Mobile Application can be used by sales people, developers, designers, project managers and actually anyone that can capture basic requirements. It is a tool that everyone should have."

Get the JIRA Extension Tool
extend project management with off-line data, extra information, alerts and reporting
"JIRA extension tool provides advance reporting and intelligent information by connecting to any JIRA Installation. Data are stored in local databases in order to be much faster and in order to reduce the load on your production project management tool (i.e. JIRA) installation. JIRA Extension Tool is an essential add on to the JIRA project management tool for those that need advanced reporting, more project information and a central management point (i.e. PMOs, Project Directors, Project Managers e.t.c.)."

Whatever... :-)

Go to Top | TECOrange