[Plugin] Mail Sender
Goto page 1, 2, 3, 4, 5, 6  Next
 
Post new topic   Reply to topic   printer-friendly view    b2evolution Forum Index -> Plugins & Extensions
View previous topic :: View next topic  
Author Message
sam2kb
da ruski mafia

Joined: 02 Dec 2007
Posts: 2927
Reputation: 162.4Reputation: 162.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 53

PostPosted: Fri Aug 22, 2008 21:58    Post subject: [Plugin] Mail Sender Reply with quote

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
View user's profile Send private message Visit poster's website
tilqicom
Guru
Guru

Joined: 14 Nov 2007
Posts: 1624
Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 20

PostPosted: Sat Aug 23, 2008 7:54    Post subject: Re: [Plugin] Mail Sender Reply with quote

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 (Shy. 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 Shy
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sam2kb
da ruski mafia

Joined: 02 Dec 2007
Posts: 2927
Reputation: 162.4Reputation: 162.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 53

PostPosted: Sat Aug 23, 2008 9:14    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
adriscoll
Seasoned Poster
Seasoned Poster

Joined: 31 May 2007
Posts: 75
Reputation: 18.5Reputation: 18.5 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Mon Sep 01, 2008 23:31    Post subject: execution Reply with quote

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
View user's profile Send private message
sam2kb
da ruski mafia

Joined: 02 Dec 2007
Posts: 2927
Reputation: 162.4Reputation: 162.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 53

PostPosted: Tue Sep 02, 2008 10:23    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
adriscoll
Seasoned Poster
Seasoned Poster

Joined: 31 May 2007
Posts: 75
Reputation: 18.5Reputation: 18.5 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Tue Sep 02, 2008 23:28    Post subject: mailto Reply with quote

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
View user's profile Send private message
mochababy
Hooked :)
Hooked :)

Joined: 07 Mar 2008
Posts: 170
Reputation: 59.2Reputation: 59.2Reputation: 59.2Reputation: 59.2Reputation: 59.2Reputation: 59.2 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 3

PostPosted: Thu Sep 11, 2008 1:38    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
sam2kb
da ruski mafia

Joined: 02 Dec 2007
Posts: 2927
Reputation: 162.4Reputation: 162.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 53

PostPosted: Thu Sep 11, 2008 22:04    Post subject: Reply with quote

Thank you all for feedbacks. I'll try to fix the plugin in next few days.
_________________
Russian b2evolution | Download
Back to top
View user's profile Send private message Visit poster's website
mochababy
Hooked :)
Hooked :)

Joined: 07 Mar 2008
Posts: 170
Reputation: 59.2Reputation: 59.2Reputation: 59.2Reputation: 59.2Reputation: 59.2Reputation: 59.2 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 3

PostPosted: Thu Sep 18, 2008 23:00    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
sam2kb
da ruski mafia

Joined: 02 Dec 2007
Posts: 2927
Reputation: 162.4Reputation: 162.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 53

PostPosted: Fri Sep 19, 2008 11:19    Post subject: Reply with quote

Actually the new version with reports and attachments is done, but I've no time to upload it Smile
_________________
Russian b2evolution | Download
Back to top
View user's profile Send private message Visit poster's website
sam2kb
da ruski mafia

Joined: 02 Dec 2007
Posts: 2927
Reputation: 162.4Reputation: 162.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 53

PostPosted: Fri Sep 19, 2008 21:27    Post subject: Reply with quote

Plugin updated.
The main new feature is file attachments, but there are some bug fixes also Wink

_________________
Russian b2evolution | Download
Back to top
View user's profile Send private message Visit poster's website
fugfuggy
New Poster
New Poster

Joined: 18 Nov 2008
Posts: 27
Reputation: 2.4Reputation: 2.4 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Tue Nov 18, 2008 12:12    Post subject: mail sender attachment error Reply with quote

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
View user's profile Send private message
sam2kb
da ruski mafia

Joined: 02 Dec 2007
Posts: 2927
Reputation: 162.4Reputation: 162.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 53

PostPosted: Wed Nov 19, 2008 0:38    Post subject: Reply with quote

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
PHP:
if( false 


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
View user's profile Send private message Visit poster's website
fugfuggy
New Poster
New Poster

Joined: 18 Nov 2008
Posts: 27
Reputation: 2.4Reputation: 2.4 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Wed Nov 19, 2008 3:02    Post subject: Reply with quote

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
PHP:
if( false 


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
View user's profile Send private message
activator
New Poster
New Poster

Joined: 22 Mar 2008
Posts: 15
Reputation: 9.7Reputation: 9.7Reputation: 9.7Reputation: 9.7Reputation: 9.7Reputation: 9.7Reputation: 9.7Reputation: 9.7Reputation: 9.7 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Sun Nov 30, 2008 17:03    Post subject: Hi guys ... it did NOT work for me....any help Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    b2evolution Forum Index -> Plugins & Extensions All times are GMT - 5 Hours
Goto page 1, 2, 3, 4, 5, 6  Next
Page 1 of 6


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
b2evolution Support Forum RSS Feed Forums powered by php Bulletin Board