| View previous topic :: View next topic |
| Author |
Message |
sam2kb da ruski mafia
Joined: 02 Dec 2007 Posts: 2927
   votes: 53
|
Posted: Fri Aug 22, 2008 21:58 Post subject: [Plugin] Mail Sender |
|
|
This plugin allows you to send emails to registered users.
You can exclude users and groups, specify message encoding, send as text or/and HTML, attach files and receive detailed reports on selected email.
Advanced users can use external emails table.
Download v0.6
If you can't send emails or your users don't receive them, set the $debug value either to 1, 2 or 3 on line 61 and post the output in this thread. _________________ Russian b2evolution | Download
Last edited by sam2kb on Sat Jun 05, 2010 15:35; edited 11 times in total |
|
| Back to top |
|
 |
tilqicom Guru

Joined: 14 Nov 2007 Posts: 1624
       votes: 20
|
Posted: Sat Aug 23, 2008 7:54 Post subject: Re: [Plugin] Mail Sender |
|
|
| sam2kb wrote: |
This plugin allows you to send emails to registered users.
You can exclude users and groups, specify message encoding, send as text or/and HTML, and receive detailed reports on selected email.
Things to do: attachments, run as scheduled task, save reports in database. |
Thank you very much on this sam2kb, very useful when used with good intentions ( . just to mention, can a checkbox be added in the registration form whether user wants to receive this kind of mail ? _________________
.: linkback ≠ spam, yes to linkback, no to spam  |
|
| Back to top |
|
 |
sam2kb da ruski mafia
Joined: 02 Dec 2007 Posts: 2927
   votes: 53
|
Posted: Sat Aug 23, 2008 9:14 Post subject: |
|
|
| Quote: |
| can a checkbox be added in the registration form whether user wants to receive this kind of mail |
In todo list, thanks. _________________ Russian b2evolution | Download |
|
| Back to top |
|
 |
adriscoll Seasoned Poster

 Joined: 31 May 2007 Posts: 75
  
|
Posted: Mon Sep 01, 2008 23:31 Post subject: execution |
|
|
sam,
this is great. I have a question on the plugin settings vs the script. If i want to contact user_level (i have too many users to contact by unique id, and no real groups established), then I:
1. assume i can change user id to user_leve in the hackfile
Also, I wanted to find out how the hack interprets the settings on the plugin. If I have the plugin set to exclude a group per the field, but want to contact them later, do i have to change that or does the file supercede the settings?
basically, I am not so bright, and just want to know how to best run this thing. and where from. |
|
| Back to top |
|
 |
sam2kb da ruski mafia
Joined: 02 Dec 2007 Posts: 2927
   votes: 53
|
Posted: Tue Sep 02, 2008 10:23 Post subject: |
|
|
Hi adriscoll
You should use the plugin, it's much better than mail sender hack. By default the plugin sends emails to all users, there's no need to list user IDs. _________________ Russian b2evolution | Download |
|
| Back to top |
|
 |
adriscoll Seasoned Poster

 Joined: 31 May 2007 Posts: 75
  
|
Posted: Tue Sep 02, 2008 23:28 Post subject: mailto |
|
|
Sam,
this is an awesome thing. used it recently, so i have some feedback for you:
1. when i send, it sends double emails to each user. not a disaster, but annoying in the long run
2. on the plugin settings, it mentions i can exclude users, but they still got the email
Other than that, I am excited to see it's further development. As b2evo becomes more popular and in more sites, especially large networks like mine, communication is key.
thanks again |
|
| Back to top |
|
 |
mochababy Hooked :)

Joined: 07 Mar 2008 Posts: 170
       votes: 3
|
Posted: Thu Sep 11, 2008 1:38 Post subject: |
|
|
| i don't know what i might be doing wrong but it's sending the e-mails that i try to send out with no html formatting. I know i have the html box clicked but it has no formatting not even breaks. Is there something that forgot to change along the way? |
|
| Back to top |
|
 |
sam2kb da ruski mafia
Joined: 02 Dec 2007 Posts: 2927
   votes: 53
|
Posted: Thu Sep 11, 2008 22:04 Post subject: |
|
|
Thank you all for feedbacks. I'll try to fix the plugin in next few days. _________________ Russian b2evolution | Download |
|
| Back to top |
|
 |
mochababy Hooked :)

Joined: 07 Mar 2008 Posts: 170
       votes: 3
|
Posted: Thu Sep 18, 2008 23:00 Post subject: |
|
|
| nothing's happened? I was hoping you would have time to work on it...but i'll see if i can try a couple of things myself and see if i can fix the issues i'm having and if i'm lucky i will keep you posted and show the code adjustments here. |
|
| Back to top |
|
 |
sam2kb da ruski mafia
Joined: 02 Dec 2007 Posts: 2927
   votes: 53
|
Posted: Fri Sep 19, 2008 11:19 Post subject: |
|
|
Actually the new version with reports and attachments is done, but I've no time to upload it  _________________ Russian b2evolution | Download |
|
| Back to top |
|
 |
sam2kb da ruski mafia
Joined: 02 Dec 2007 Posts: 2927
   votes: 53
|
Posted: Fri Sep 19, 2008 21:27 Post subject: |
|
|
Plugin updated.
The main new feature is file attachments, but there are some bug fixes also  _________________ Russian b2evolution | Download |
|
| Back to top |
|
 |
fugfuggy New Poster

Joined: 18 Nov 2008 Posts: 27
  
|
Posted: Tue Nov 18, 2008 12:12 Post subject: mail sender attachment error |
|
|
Hi Sam,
First, this is a great little plugin. It all works well except for the attachment upload.
Here is the error message:
Total attachments size should not exceed 0Mb!
Which I assume is triggered by
load_funcs( 'tools/model/_system.funcs.php' );
if( ($this->get_total_size() + $_FILES['uploadfile']['size']) > (system_check_memory_limit()*1024) )
{ // PHP may run out of memory if attachments size >= PHP memory_limit
$Messages->add( sprintf( $this->T_('Total attachments size should not exceed %sMb!'), number_format( system_check_memory_limit()/1024, 0 ) ), 'error' );
return false;
}
in _mail_sender.plugin.php
This is from the system tab
PHP upload_max_filesize
48M
PHP post_max_size
48M
post_max_size should be larger than upload_max_filesize
PHP memory_limit
n.a.
PHP mbstring extension
Loaded
PHP XML extension
Loaded
I have tried with different file types, none larger than 20kb. It fails when hitting "attach plugin" or if I just browse for the file and then hit "send"
What could be causing this?
Also, a couple of suggestions for the next update
1) Need more than one global send mail setting i.e. Admin's can mail to any group while others can mail to limited groups.
2) Check boxes showing groups rather than having to exclude group and user ids. |
|
| Back to top |
|
 |
sam2kb da ruski mafia
Joined: 02 Dec 2007 Posts: 2927
   votes: 53
|
Posted: Wed Nov 19, 2008 0:38 Post subject: |
|
|
Welcome to the forums.
The error comes from PHP memory_limit n.a.. For some reason the plugin can't check the memory limit and "think" that it's 0.
You can safely change that line from
| PHP: |
|
if( ($this->get_total_size() + $_FILES['uploadfile']['size']) > (system_check_memory_limit()*1024) )
|
to
| Quote: |
| 1) Need more than one global send mail setting i.e. Admin's can mail to any group while others can mail to limited groups. |
This is a good idea. I'll add this in new release.
| Quote: |
| 2) Check boxes showing groups rather than having to exclude group and user ids. |
What if you have 50 groups and 10000 users? _________________ Russian b2evolution | Download |
|
| Back to top |
|
 |
fugfuggy New Poster

Joined: 18 Nov 2008 Posts: 27
  
|
Posted: Wed Nov 19, 2008 3:02 Post subject: |
|
|
| sam2kb wrote: |
Welcome to the forums.
The error comes from PHP memory_limit n.a.. For some reason the plugin can't check the memory limit and "think" that it's 0.
You can safely change that line from
| PHP: |
|
if( ($this->get_total_size() + $_FILES['uploadfile']['size']) > (system_check_memory_limit()*1024) )
|
to
| Quote: |
| 1) Need more than one global send mail setting i.e. Admin's can mail to any group while others can mail to limited groups. |
This is a good idea. I'll add this in new release.
| Quote: |
| 2) Check boxes showing groups rather than having to exclude group and user ids. |
What if you have 50 groups and 10000 users? |
Awesome Sam! Works like a charm!
I would love to see the first addition! It would really be helpful and provide more control and options.
As far as groups and users, 50 and 1000 are extreme examples I assume. I would think that it would not be on a per user basis so no need to show them cause they will most likely be part of a group. 50 Groups in a drop down rather than a check box does not seem unreasonable to me. Would you not be able to select a group and exclude a user ID from that group? And if you need multiple group selection could you not use a cntrl+select type function?
Just my thoughts but thank you for the quick reply and the easy fix! |
|
| Back to top |
|
 |
activator New Poster

Joined: 22 Mar 2008 Posts: 15
         
|
Posted: Sun Nov 30, 2008 17:03 Post subject: Hi guys ... it did NOT work for me....any help |
|
|
Hi guys,
I have installed the plugin but it didn't work for me. I don't know why!
my b2evo is 2.4.5 at: www.shafey.net
it gives me a message saying 0 successful. can u help me out??? |
|
| Back to top |
|
 |
|