Angel Gabriel's plugins:
This is an adaptation to elgg 1.8 of the plugin PHP Mailer by Cash (http://community.elgg.org/pg/plugins/project/384769/developer/costelloc/phpmailer). Because i need a smtp plugin for elgg 1.8 i couldn't wait for an upgrade of this plugin and i've made the upgrade by myself ;).
So the credits for this plugin are intact, all the credits are to Cash for make this. I've just only upgraded it.
Description taked from the original plugin:
Summary: This plugin has the option to override the default elgg email notification handler and email sending code with PHPMailer. It currently provides support for using the php mail function or a smtp server. See the included readme.txt for more information.
Description: This plugin provides a wrapper to the PHPMailer class. PHPMailer is used by many open source projects including Wordpress and Joomla. The class provides the abaility to send mail through php's mail function, sendmail, qmail, and smtp. It supports html email, file attachments, and embedding images. See http://phpmailer.codeworxtech.com/ for more details. This plugin provides a simple wrapper around the PHPMailer class.
Installation: Unzip and place in mod directory. Activate through Tools Administration. There are admin settings for smtp and non-standard MTAs. There are further instructions in the readme.txt file.
SMTP: SMTP can be setup in the admin settings of the plugin.
Notes:Other plugins may have their own email sending code and will not use this plugin therefore.
Bug Reports: Please post them in the comments along with any related error message in your server error log. If you did not read the readme file or check your error log, I am much less likely to spend time giving you support.
Tested on elgg 1.8b2
There are *two "cron" situations :-
However -- why on earth do you want this PlugIn to be "cron-trigerred" ? What is your intent ? whatcha wanna accomplish ?
@ Angel Gabriel instead of sending immediately it should push the message in tail and cron send the message. this will reduce the server load.
@ DhrupDeScoop Also if the site has more than 2000 members in a group and all members have chosen notify by email, then posting a comment for a discussion will appear only after sending 2000 mail notification.
if server limit for sending emails is 1000 /hr then rest 1000 will be returned.
Thats y I asked is it possible to make it cron triggered.
But wouldn't the server load be the same regardless if the messages are sent immediately or collected via cron. If the sending is delayed via cron you might even make matters worse because if your server is not capable to send the amount of messages at once it surely will get complete overloaded if the message sending of ALL messages is triggered at once.
Also, the restriction of number of messages could result in an ever-increasing number of un-sent messages. Let's take your example with a 1000 messages/hour restriction: 2000 messages need to be sent. 1000 are sent at the next cron job execution and 1000 are hold back. What happens if yet another posting is made in the meantime and yet another 2000 messages need to be sent? Now already 3000 messages would be in queue. Then the next posting...
Which CRON ?
Other Factors -- Hosting Type :- Shared, VPS, Dedicated ?
One cannot discuss very much - without the prerequisite choice - those technologies are a couple of galaxies apart ;)
Did you ever look at Kevin Jardine's ? :=
by Kevin Jardine
First uploaded 18 June 2010 @ 8:03am
Uses cron to send background mail jobs
This plugin requires a properly set up Elgg cron system. It does nothing by itself. It provides a mechanism which allows other plugins to schedule background mail jobs.
If you did not.. you missed the boat (queue? lolz) because Kevin removed that PlugIn due to an utterly pathetic and dismal lack of interest shown by the general Elgg community in returning any feedback what-so-ever !!!
I installed PHP Mailer 1.8 and I have no problem ... or maybe the problem is that I see no difference! I appropriately configured the plugin, but the messages are sent as previously. Everything is working as previously. I can't understand the functional advantanges of this plugin. Thanks.
I've released a 1.8 version of my plugin. It includes the updated PHPMailer lib. http://community.elgg.org/pg/plugins/project/384769/developer/costelloc/phpmailer