Email Digests

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
48
59%
Very Good
17
21%
Good
9
11%
Fair
2
2%
Poor
6
7%
 
Total votes: 82

User avatar
MarkDHamill
Registered User
Posts: 3930
Joined: Fri Aug 02, 2002 12:36 am
Location: Florence, MA USA
Contact:

Re: Email Digests

Post by MarkDHamill » Mon Dec 17, 2007 6:03 pm

Dan,

If the SMTP mod modifies emailer.php you may have to make similar changes to my version which is digest_emailer.php. They are essentially the same except emailer.php is not HTML friendly, so I had to make a version to carry over relevant information needed to send HTML. Hope this helps.
Get the latest versions of my Digests and Smartfeed extensions.
Need phpBB services or a phpBB consultant? I offer most phpBB services.

danmaiz
Registered User
Posts: 4
Joined: Mon Dec 17, 2007 7:47 am

Re: Email Digests

Post by danmaiz » Mon Dec 17, 2007 6:46 pm

Mark:

That did it. Thank you so much for the quick reply and direction. I knew it was something relatively simple but I couldn't see what was right in front of me until you pointed out the file name. For those who experience the same issue with the BetterSMTP mod for phpbb2, here is the code to get this amazing feature to function with smtp.gmail.com and the like:

Code: Select all

## Files To Edit: 
##		  includes/digest_emailer.php
# 
#-----[ OPEN ]------------------------------------------ 
# 

includes/digest_emailer.php

# 
#-----[ FIND ]------------------------------------------ 
# 

class emailer
{

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 

require("smtp_squirrelmail/smtp_squirrelmail.php");

# 
#-----[ FIND ]------------------------------------------ 
# 

$result = smtpmail($to, $this->subject, $this->msg, $this->extra_headers);

# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 

$result = smtpsquirrelmail($to, $this->subject, $this->msg, $this->extra_headers);

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM

User avatar
MarkDHamill
Registered User
Posts: 3930
Joined: Fri Aug 02, 2002 12:36 am
Location: Florence, MA USA
Contact:

Re: Email Digests

Post by MarkDHamill » Mon Dec 17, 2007 7:07 pm

Dan, this is a good note to add to my list of issues. GMail is a big consumer of email so this is something that is likely to be a problem again for some in the future.
Get the latest versions of my Digests and Smartfeed extensions.
Need phpBB services or a phpBB consultant? I offer most phpBB services.

cburton666
Registered User
Posts: 1
Joined: Wed Dec 26, 2007 10:04 pm

Re: Email Digests

Post by cburton666 » Wed Dec 26, 2007 10:12 pm

Sorry if this has been dealt with before, but I have found no solutions through "search".

The digest mailing worked for about a year, then stopped working and sends this error message :

"Fatal error: Maximum execution time of 30 seconds exceeded in /home/adamslei/public_html/foroparapente/language/lang_spanish/lang_main.php on line 656"

Is there a way to fix this?

Saludos,

Tony

User avatar
MarkDHamill
Registered User
Posts: 3930
Joined: Fri Aug 02, 2002 12:36 am
Location: Florence, MA USA
Contact:

Re: Email Digests

Post by MarkDHamill » Wed Dec 26, 2007 11:41 pm

I am guessing that your web server is throwing up this error message. It may be because for a particular hour you are creating and sending a lot of digests and it is using a lot of server CPU. Going over the threshold probably caused the error.

If you are virtually hosted you probably cannot increase this setting. You might find out what hour this is occurring and use the Administrator Control Panel to even out the load by moving the cluster of users around a particular hour to send their digests at another time of day.

It sounds like your board is pretty busy.
Get the latest versions of my Digests and Smartfeed extensions.
Need phpBB services or a phpBB consultant? I offer most phpBB services.

IgnorantNewGuy
Registered User
Posts: 452
Joined: Thu Jul 14, 2005 9:27 pm

Re: Email Digests

Post by IgnorantNewGuy » Mon Jan 21, 2008 5:48 pm

Mark,

I am also taking this question over to the Categories Hierarchy forum to request adaptation to CH, but I thought I'd ask you as well.

I'm using v. 1.2.5 that has Indemnity83 involved in the development.

There are two issues that arise when using CH:

1. All Categories in CH are actually just forums and I would like to limit those that can be selected to be just the forums and not categories. That is a lower priority issue than #2.
2. In CH we have Private forums. These are showing up as forums that can be selected and that is obviously not going to work. This is an authorizations issue.

Do you have any thoughts on these matters?

Thx a bunch!

User avatar
MarkDHamill
Registered User
Posts: 3930
Joined: Fri Aug 02, 2002 12:36 am
Location: Florence, MA USA
Contact:

Re: Email Digests

Post by MarkDHamill » Mon Jan 21, 2008 9:21 pm

Not much. As far as I am concerned except for critical bug fixes I don't plan to add any new functionality to the phpBB 2 version of EMail Digests. Once I have the Smartfeed Mod for phpBB 3 behind me I will begin work on a version of it for phpBB 3. phpBB 3 has nested forums and categories.
Get the latest versions of my Digests and Smartfeed extensions.
Need phpBB services or a phpBB consultant? I offer most phpBB services.

IgnorantNewGuy
Registered User
Posts: 452
Joined: Thu Jul 14, 2005 9:27 pm

Re: Email Digests

Post by IgnorantNewGuy » Tue Jan 29, 2008 3:58 am

UPDATE for Categories Hierarchy Users:

You can now get this terrific MOD at the CH board here:
http://www.ptifo.clanmckeen.com/viewtopic.php?t=8121

or directly from the developer who modified it to work with CH here:
http://chmods.weissfuechse.de/viewtopic.php?t=11

It appears to be a stand alone MOD so it will work with whatever version you are using - probably within reason. ;) I'm at 2.1.6 so it's all good there!

User avatar
MarkDHamill
Registered User
Posts: 3930
Joined: Fri Aug 02, 2002 12:36 am
Location: Florence, MA USA
Contact:

Minor Bug in 1.0.17 and 1.0.18

Post by MarkDHamill » Sun Mar 23, 2008 12:45 am

In the Administrator Control Panel, Digest Configuration, the version information will appear incorrect near the bottom of the page.

This is happening because I have moved the domain which hosts the current version number to phpbbservices.com. To fix change lines 63 and 67 and replace phpbb.potomactavern.org with phpbbservices.com. This bug effects version 1.0.17 and up.
Get the latest versions of my Digests and Smartfeed extensions.
Need phpBB services or a phpBB consultant? I offer most phpBB services.

LHG
Registered User
Posts: 39
Joined: Sun Nov 09, 2003 5:37 am
Contact:

Re: Email Digests

Post by LHG » Fri Apr 04, 2008 3:24 am

Is there a way to limit the photo size in the enhanced html digest?

User avatar
MarkDHamill
Registered User
Posts: 3930
Joined: Fri Aug 02, 2002 12:36 am
Location: Florence, MA USA
Contact:

Re: Email Digests

Post by MarkDHamill » Fri Apr 04, 2008 3:57 am

Sorry, not without hacking some code.
Get the latest versions of my Digests and Smartfeed extensions.
Need phpBB services or a phpBB consultant? I offer most phpBB services.

User avatar
johncox
Registered User
Posts: 1
Joined: Fri Apr 04, 2008 4:24 am

solution to "!" randomly appearing in digests

Post by johncox » Fri Apr 04, 2008 4:43 am

Hi All,

Some time ago I discovered that numerous digests had random "!" appearing in the body of the message. It didn't seem to have any reason, it just popped up.

I found an explanation of the problem here:
http://us2.php.net/manual/en/ref.mail.php#53231

After bit of fiddling and hacking with Mark's assitance we got nowhere :(

BUT! I have now got it sorted - by actually reading through the code :)

I am using 1.15 (bit old I know) but this is the fix

somwhere around line 201 in includes/digest_emailer is this line:

Code: Select all

$this->extra_headers = (($this->reply_to != '') ? "Reply-to: $this->reply_to\n" : '') . (($this->from != '') ? "From: $this->from\n" : "From: " . $board_config['board_email'] . "\n") . "Return-Path: " . $board_config['board_email'] . "\nMessage-ID: <" . md5(uniqid(time())) . "@" . $board_config['server_name'] . ">\nContent-transfer-encoding: 8bit\nDate: " . date('r', time()) . "\nX-Priority: 3\nX-MSMail-Priority: Normal\nX-Mailer: PHP\nX-MimeOLE: Produced By phpBB2\n" . $this->extra_headers . (($cc != '') ? "Cc: $cc\n" : '')  . (($bcc != '') ? "Bcc: $bcc\n" : '');
I changed the header to encode at base64:

Code: Select all

$this->extra_headers = (($this->reply_to != '') ? "Reply-to: $this->reply_to\n" : '') . (($this->from != '') ? "From: $this->from\n" : "From: " . $board_config['board_email'] . "\n") . "Return-Path: " . $board_config['board_email'] . "\nMessage-ID: <" . md5(uniqid(time())) . "@" . $board_config['server_name'] . ">\nContent-transfer-encoding: base64\nDate: " . date('r', time()) . "\nX-Priority: 3\nX-MSMail-Priority: Normal\nX-Mailer: PHP\nX-MimeOLE: Produced By phpBB2\n" . $this->extra_headers . (($cc != '') ? "Cc: $cc\n" : '')  . (($bcc != '') ? "Bcc: $bcc\n" : '');
Then encoded the $msg - immediately after it:

Code: Select all

$this->msg = rtrim(chunk_split(base64_encode($this->msg)));
Problem solverised - no more rogue "!" in the digests
Last edited by johncox on Sat Apr 05, 2008 5:41 am, edited 1 time in total.

User avatar
MarkDHamill
Registered User
Posts: 3930
Joined: Fri Aug 02, 2002 12:36 am
Location: Florence, MA USA
Contact:

Re: Email Digests

Post by MarkDHamill » Fri Apr 04, 2008 12:32 pm

Thanks John. That sure would have not occurred to me. I will post it to my bug log at some point.
Get the latest versions of my Digests and Smartfeed extensions.
Need phpBB services or a phpBB consultant? I offer most phpBB services.

LHG
Registered User
Posts: 39
Joined: Sun Nov 09, 2003 5:37 am
Contact:

Re: Email Digests

Post by LHG » Fri Apr 04, 2008 2:45 pm

Hi Mark,
Great mod by the way. Question: since it looks like each digest is generated for the individual user, how many digests can it create at once before server load becomes an issue? When we reach full subscription level we may have up to 1000 users subscribed. We are on a VPS machine.

User avatar
MarkDHamill
Registered User
Posts: 3930
Joined: Fri Aug 02, 2002 12:36 am
Location: Florence, MA USA
Contact:

Re: Email Digests

Post by MarkDHamill » Fri Apr 04, 2008 2:56 pm

LGH, I really cannot say. I do have an administrator control panel interface that allows an administrator to change the send times, which can help even out the load. In particular in the ACP interface there is this setting:

Default Time of day to send digest

It is set to random by default.
Get the latest versions of my Digests and Smartfeed extensions.
Need phpBB services or a phpBB consultant? I offer most phpBB services.

Post Reply

Return to “[2.0.x] MOD Database Releases”