WordPress Plugin – SMTP Cycle Email

  By:   Date: October 17, 2012

The SMTP Cycle Email plugin will give you the option to send email to different users, using various SMTP servers and these SMTP servers will be used as in a cycle basis. Also to generate content for email body using the spinning text feature, so you can generate dynamic text for email body content.

Main key features of this plugin are

  • SMTP servers to send email
  • Use SMTP servers’ cycle wise
  • Spinning text to generate dynamic content
  • Set cron job to send schedule email

You can download the plugins from here.

Plugins admin UI area:

  • Sub-Menu 1: “SMTP Servers”. This does the entry of the following fields: Server Address, Port, Username, Password, Active/Inactive, Number of times used, and Date last used.
  • Sub-Menu 2: “View/Add Messages” – This shows existing messages. Also, it has an “Add Message” link which then will have a textbox for Title, Subject, Body, and a checkbox for “Spin Text” (which is pre-checked).
  • Sub-Menu 3: Schedule Message – This brings up a “To:” input box, and also a drop-down set of the messages from #4 above. Once SUBMIT is entered three things happened:

- First, an email will be created for each email address placed in the “To” field. This should be semi-colon separated.

- Second, if the checkbox “Spin Text” is checked, then the Body and Subject text should be processed through a “spinner cycle”.

- Third, each new email placed in a new table with an extra field called status. Status can be “sent”, “scheduled”, or “pause”

  • Sub-Menu 4: – “Processed Messages” – A table (display 50 at a time) of unsent messages. Create a drop down to view those that have been sent, scheduled, and paused.

There is a publicly accessible web page file which triggers the cron script every 5 minutes. You can use or cpanel to set cron job to simply load the page. The page, when loaded, just grabs the “scheduled” email that is to be sent out and send it out using the next-available SMTP server.

Each time the SMTP servers cycled. For example, after server 1 is used, then the next server attempted. Only used servers marked as active. If the outbound message is not successful, then mark the SMTP server as INACTIVE and reset the message to “scheduled”. If the message is successful, mark the message as sent (insert the date-time) and also mark the SMTP server’s `date last used` so that the next time the script runs, it knows to use the OLDEST use SMTP server and can keep cycling through them.

When sending messages, the script NOT allow emails to go out at a rate faster than one every 5 minutes. So no matter how many times the cron-php-page is refreshed, the script will check the last email sent and ensure that a minimum of 5 minutes has elapsed. This will allow a measure of security and also allow the flexibility of scheduling cron based on loading pages instead of working on the server itself.

Hope you might find this plugin helpful, please use it and post your feedback and comments. Thank you !

Most Related Posts

Tags: , , , , , , , , ,

Comments are closed.


About CyberNetikz

  • Developing Web sites that engage people and turn them into loyal customers is how we’ve built CyberNetikz into a fast-growing Web development and marketing studio.

    We’ll help you build a top-of-mind brand that communicates your company’s unique identity and value proposition. We’ll develop a brand personality that stands.

PayPal Logo  

Latest Blog Post

WebGL is the web implementation of OpenGL ES2 (Embedded System 2). WebGL allows us to create real 3D content and render it in a web browser that supports it and the graphics capabi...
  • Contact Us

    35-06 72nd Street, Suite # D5
    Jackson Heights, NY-11372
    Call: +1-347-261-2888