Topic: [Extension Release] Newsletter for 1.3

Only works with the Portal right now!!!!!

not very fast right now...

Project Page at PunRes

FluxBB - v1.4.8

2

Re: [Extension Release] Newsletter for 1.3

I've got portal extension installed but it shows me notice about not installed portal extension.

        if (!$db->table_exists('panels') || !$db->table_exists('pages'))

It should be:

        if (!$db->table_exists($db->prefix.'panels') || !$db->table_exists($db->prefix.'pages'))

Re: [Extension Release] Newsletter for 1.3

oops, you're right.
thanks...

FluxBB - v1.4.8

4

Re: [Extension Release] Newsletter for 1.3

You're using $db_prefix but it should be $db->prefix

Re: [Extension Release] Newsletter for 1.3

Why that? It is both right. $db_prefix is defined in config.php, $db->prefix when the db class is created...

FluxBB - v1.4.8

Re: [Extension Release] Newsletter for 1.3

Yes, but you're supposed to use $db->prefix because that's the prefix associated with the database object. It means you only have to globalize one variable ($db).

http://fluxbb.org

Free PunBB Hosting - lots of mods, easy to customize

Re: [Extension Release] Newsletter for 1.3

Oh, I see now what you mean. Will change that.

Just posted release 1.0.1b though...

FluxBB - v1.4.8

8 (edited by daris 2008-04-05 17:18)

Re: [Extension Release] Newsletter for 1.3

also can you update newsletter panel for work with 2.1 version of portal extension (i removed classes from it)?

Just remove from newsletter panel file this:

class panel_newsletter {
function display() {
global ...;

at start and this:

}
};

at end

Re: [Extension Release] Newsletter for 1.3

Right now I am using a huge Bcc header for the mails. I read somewhere in this forum that that causes alarm in spam filters, so what should I do? I know that using the mail function a lot is not very good, either...

FluxBB - v1.4.8

Re: [Extension Release] Newsletter for 1.3

Use it a lot tongue
It's better than doing BCC, to be honest. Just try to offer some rate-limiting options (eg: x second(s) between emails (allow decimals), x emails max, what user ID to start from, etc).

http://fluxbb.org

Free PunBB Hosting - lots of mods, easy to customize

Re: [Extension Release] Newsletter for 1.3

Smartys wrote:

x second(s) between emails (allow decimals)

What exactly do you mean?

Smartys wrote:

what user ID to start from, etc).

Well, it's not only allowed for users right now. I might want to add that as an option, don't I?

I should also display the number of emails that will receive the newsletter...

Right now I am using a db table with one column. I could also just use a textfile. What is better?

FluxBB - v1.4.8

Re: [Extension Release] Newsletter for 1.3

I haven't ever looked at the code, I was going based on my understanding from the topic, which was that you were sending out emails to every member of the site. If that's not what's going on here, feel free to ignore me. smile

What exactly do you mean?

I mean what I said tongue
If you're sending out large numbers of emails to various domains outside of your control, putting a couple seconds between each email helps to keep you from being deemed spammy (I mean, who else would send hundreds of emails over the course of 10 seconds?): plus, it's just nicer to the SMTP servers.

http://fluxbb.org

Free PunBB Hosting - lots of mods, easy to customize

Re: [Extension Release] Newsletter for 1.3

Ok and how do I do that with PHP? Srry

FluxBB - v1.4.8

Re: [Extension Release] Newsletter for 1.3

sleep?

http://fluxbb.org

Free PunBB Hosting - lots of mods, easy to customize

Re: [Extension Release] Newsletter for 1.3

This is something i've been very curios about for very long.
A lot of other software comes with a newsletter feature, i think that should be officiall supporteb by punbb, a suported extension maybe.
Does anybody has knowledge of how this is done in other software?
If so, a couple of links to phpxref.com would come in hand. I suspect most of the scripts don't wait between emails, but i would like to look at their code anyway.

Re: [Extension Release] Newsletter for 1.3

yes the gap of seconds will be great if there is an option in the admin area for how much seconds gap ...

and here are some suggestions for the next release

mall newslatter style issue ...

it currently like this

subscribe o
unsubscribe o

could you move the button to the left to make it more like this:

o subscribe
o unsubscribe

and could you make an option in the admin area to write small description so it says to what you are subscribing for ...

i mean look at punbb.org home page newslatter:

Newsletter
Subscribe to the PunBB Newsletter to receive notification of updates and other important events regarding PunBB. Your e-mail address will be kept private and will not be shared with any third party.

--------Subscribe / unsubscribe------

E-mail address

o  Subscribe
o  Unsubscribe

--------------------------------------

THanks for the great extension

MyFootballCafe.com  is Now Online!

17

Re: [Extension Release] Newsletter for 1.3

If you're going to use sleep to pause it, it might be worthwhile chunking them then pausing, i.e: sending 25 then pausing, sending another 25 and pausing, etc. If not, it'll take a coons age on a large userbase, and most likely get timed out.

18 (edited by MattF 2008-04-19 15:24)

Re: [Extension Release] Newsletter for 1.3

pedrotuga wrote:

This is something i've been very curios about for very long.
A lot of other software comes with a newsletter feature, i think that should be officiall supporteb by punbb, a suported extension maybe.
Does anybody has knowledge of how this is done in other software?

There's the broadcast e-mail plugin for 1.2*. Same as.

19

Re: [Extension Release] Newsletter for 1.3

it currently like this

subscribe o
unsubscribe o

On higher resolution (1400x1050) it looks like this:
subscribe o unsubscribe o

Re: [Extension Release] Newsletter for 1.3

Thanks, guys. I will look at all of that...
I am also planning on making this extension independent from the portal extension...

FluxBB - v1.4.8

Re: [Extension Release] Newsletter for 1.3

I will release a new version in a few seconds... This is basically just fixing a few things and adapting to changeset 1610 (changing $db to $pun_db)

FluxBB - v1.4.8

22 (edited by Vovochka 2008-04-25 17:39)

Re: [Extension Release] Newsletter for 1.3

lie2815, you still didn't fix the bug daris had reported http://punbb.org/forums/viewtopic.php?p … 78#p112378


I think that your mailing algoritm contains mistakes. Mail headers are:

To: Webmaster My PunBB forum<aa@aa.aa>
Subject: My PunBB forum NEWSLETTER:
From: Webmaster My PunBB forum<aa@aa.aa>
Bcc: a1@aa.aa
,Bcc: a2@aa.aa
,Bcc: a3@aa.aa

Bcc should be used like this:
Bcc: a1@aa.aa,a2@aa.aa,a3@aa.aa
I think you should look at send_subscriptions() punbb function.

Re: [Extension Release] Newsletter for 1.3

I will. Thanks...

FluxBB - v1.4.8

Re: [Extension Release] Newsletter for 1.3

Vovochka wrote:

lie2815, you still didn't fix the bug daris had reported http://punbb.org/forums/viewtopic.php?p … 78#p112378

I already fixed it in the new version which will be released next (whenever that may be...)

FluxBB - v1.4.8

Re: [Extension Release] Newsletter for 1.3

lie2815 wrote:

I already fixed it in the new version which will be released next (whenever that may be...)

Thanks