Not logged in. · Lost password · Register
Forum: Customising UNB Modifications and plug-ins Plug-in gallery RSS
Mass-Mailer, Massenmail-Funktion
Page:  1  2  next 
Rumbelstilzchen #1
Member since Sep 2005 · 137 posts
Group memberships: Members
Show profile · Link to this post
Subject: Mass-Mailer, Massenmail-Funktion
With this plugin it is possible for admins to send a message to the groups they have selected. If some members are in more than one group they only will get it once.

ToDo:
Some Error-Handling (Message could be sent without recipients or message)


This plugin is tested - but there still could be some errors.

EDIT: second version 20070117 includes error-Handling
EDIT: version20070304 wrong character-encoding is fixed
Jugendkreis
petrosilius.de
The author has attached one file to this post:
massmail20070304.zip 2.7 kBytes
You have no permission to open this file.
This post was edited 3 times, last on 2007-03-04, 14:14 by Rumbelstilzchen.
Avatar
andré #2
User title: ratsuchender
Member since Mar 2005 · 124 posts · Location: Erfurt / Germany
Group memberships: Members
Show profile · Link to this post
vielen dank fuer das plug-in.
Rumbelstilzchen #3
Member since Sep 2005 · 137 posts
Group memberships: Members
Show profile · Link to this post
uploaded new version:
version20070304 wrong character-encoding is fixed

As the main site is using Utf-8 the mail is now encoded the same way
Jugendkreis
petrosilius.de
nicoduck #4
Member since May 2007 · 9 posts
Group memberships: Members
Show profile · Link to this post
hi,
i have added the function to send html emails:
- added checkbox to avtivate html in messages
- added $UNB_T['_massmail.html'] for languages
this change does not add any html tags, it is necessary to type in html by hand -  like
hi,<br />
this is an message
to have wellformed emails
it simply changes the type of the sent email from text/plain to text/html

nico
The author has attached one file to this post:
massmail.zip 3.6 kBytes
You have no permission to open this file.
codethief #5
Member since Jan 2007 · 5 posts · Location: Berlin
Group memberships: Members
Show profile · Link to this post
Although this thread is quite old, I'd like to know what I have to do to get this plugin running. I just copied all three files into my extra/plugins directory but nothing changed (= it isn't displayed on the plugins page). I'm using v1.6.4 and I also tried adding a line to massmail.php to enable it for this version, too, but it this didn't do the trick, either.
I appreciate your help.
Avatar
NFG #6
Member since Sep 2006 · 125 posts
Group memberships: Members
Show profile · Link to this post
You've put it in the wrong folder, codethief.  Active plugins should go into unb_lib/plugins.  Optional, uninstalled plugins go in extra/plugins.

You should not need to modify the files to make them work, I just tried and it appeared at the bottom of the settings menu immediately.
codethief #7
Member since Jan 2007 · 5 posts · Location: Berlin
Group memberships: Members
Show profile · Link to this post
Oh I see, thank you very much. :)
Avatar
NFG #8
Member since Sep 2006 · 125 posts
Group memberships: Members
Show profile · Link to this post
I was trying to use this plugin last night and it completely freaks out my mailserver...  The formating of the headers seems to be a bit off, and I was getting a VISIBLE BCC field (everyone saw everyone's address, even though it was in BCC!) and all the TO and FROM addresses had double brackets:

<"forumname" <forum@forum.com>>

Which of course bounced from every proper mailserver in the world.  =(

You have any better luck, codethief?
codethief #9
Member since Jan 2007 · 5 posts · Location: Berlin
Group memberships: Members
Show profile · Link to this post
So far, I haven't had the chance to try it out as my mailserver isn't working. So I've got to take care of that, first. Anyway, I'll let you know. :)
This post was edited on 2008-08-29, 15:46 by codethief.
Rumbelstilzchen #10
Member since Sep 2005 · 137 posts
Group memberships: Members
Show profile · Link to this post
this plugin doesn't use the forum's mail functions and settings (I didn't know how to access them).
It just sends a mail via the php's mail-function.
Jugendkreis
petrosilius.de
Avatar
NFG #11
Member since Sep 2006 · 125 posts
Group memberships: Members
Show profile · Link to this post
Using the PHP mail function would be fine, but it's totally non-standard.

Two things go wrong:

  • the <brackets> are doubled, so  "Dave" <dave@dave.com> becomes <"Dave" <dave@dave.com>>
  • the Bcc field is broken, so the mail goes to everyone in the BCC list, AND they can all see the BCC list

I think what's happnening is there's a syntax error somewhere and my mailserver (Mercury) is trying to create good mail headers from bad ones, and everything breaks in strange ways.
Rumbelstilzchen #12
Member since Sep 2005 · 137 posts
Group memberships: Members
Show profile · Link to this post
I just reviewed this plugin and for now I would assume, that something on your server is broken.
At my hoster it works perfectly
Jugendkreis
petrosilius.de
Avatar
NFG #13
Member since Sep 2006 · 125 posts
Group memberships: Members
Show profile · Link to this post
I imagine it's a combination of problems.  Your plugin is doing something wrong and my server's not dealing with it as gracefully as it should.  UNB's mail function works fine, as do all my other PHP apps, so my server itself is not completely at fault (and in fact it's worked without trouble for about 6 years)...

If I get time I might try to force it to output to the screen so I can see the problem more clearly.
Rumbelstilzchen #14
Member since Sep 2005 · 137 posts
Group memberships: Members
Show profile · Link to this post
could you provide me an excerpt of your php-error-log, maybe we find the reason in it,
as for now I've no idea what causes this.
Jugendkreis
petrosilius.de
Avatar
NFG #15
Member since Sep 2006 · 125 posts
Group memberships: Members
Show profile · Link to this post
Alas, I just noticed my PHP wasn't logging errors.

THen I restored an old backup instead of backing up the current forum, so I've just lost two weeks work.

But before I did that, I found your plugin creates this output:

"NFGworld!" <NFGworldForum@email.com>
NFGworld!: text text text From: NFGworld! <NFGworldForum@email.com>
Reply-To: NFGworld! <NFGworldForum@email.com>
X-Mailer: PHP-FormMailer
Content-Type: text/plain; charset="utf-8"
BCC: "NFG" <NFGworld@email.com>

I notice two things: There's no TO: field, and there's no carriage-return after the message text, the FROM: field doesn't start on a new line.

All I did was change your final IF (mail(big list of strings)) { line to be an ECHO instead of IF/MAIL and copied the output.

Dunno if that helps.  I'm off to rebuild everything.  =(
[Edit: Everything's cool, fixed all the things I broke, yay!]
This post was edited 2 times, last on 2008-09-07, 12:57 by NFG.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Page:  1  2  next 
Go to forum
This board is powered by the Unclassified NewsBoard software, 20120620-dev, © 2003-2011 by Yves Goergen
Page created in 311.6 ms (224.8 ms) · 144 database queries in 221.4 ms
Current time: 2013-05-23, 19:42:52 (UTC +02:00)