[ABD] newpost2mail: Send new posts as email to admin

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
henmedia
Registered User
Posts: 140
Joined: Wed Dec 19, 2007 9:31 am
Location: Germany
Contact:

Re: [BETA] newpost2mail: Send new posts as email to admin

Post by henmedia » Wed May 20, 2009 9:14 pm

I'm sorry, but I've no idea what's going wrong there. It's also the first time that I hear of such problems.

Stefan
Get the latest version of newpost2mail for phpBB3 at http://henmedia.de | [donate USD] [donate EUR]

ricktan150
Registered User
Posts: 97
Joined: Tue May 05, 2009 4:46 am
Location: Chicago
Contact:

Re: [BETA] newpost2mail: Send new posts as email to admin

Post by ricktan150 » Wed May 20, 2009 9:34 pm

Stefan:
No worries. I will try and figure it out. Thanks!

saguado
Registered User
Posts: 2
Joined: Tue May 19, 2009 11:28 am

Re: [BETA] newpost2mail: Send new posts as email to admin

Post by saguado » Sun May 24, 2009 1:08 am

Hi all,

I'm trying to modify this mod to use it for registered users notification so I'm having problems with mass email notifications. I would like to include all my registered users to bcc recipient and then send the email. The code below is what I'm trying to modify:

Code: Select all

      
       foreach ($n2m_MAILTO as $mailto) {
        if ($config['smtp_delivery']) { // SMTP?
          $tempto[to][email] = $mailto;
          $to[to] = $tempto;
          $result = smtpmail($to, $subject, str_replace("\n.", "\n..", $message), $err_msg, $headers);
          reset($to);
          reset($tempto);
        } else { // or PHP mail?
          $result = $config['email_function_name']($mailto, $subject, $message, $headers);
        }
      }
Here my code not working:

Code: Select all

      foreach ($n2m_MAILTO as $key => $value) {
          $to[to][email][$key] = $value;
      }
      $result = smtpmail($to, $subject, str_replace("\n.", "\n..", $message), $err_msg, $headers);
Thanks in advance for any help.

Santi.

henmedia
Registered User
Posts: 140
Joined: Wed Dec 19, 2007 9:31 am
Location: Germany
Contact:

Re: [BETA] newpost2mail: Send new posts as email to admin

Post by henmedia » Mon Jul 06, 2009 3:28 pm

Hi Guys,

I just posted a bugfix release for those of you who might have problems with broken subject lines (this means also broken mail headers) in some cases:

beta 19

Bugfix: In some cases the subject line of the mail header was broken (happens only since phpBB v3.0.5)


If your don't have any problems like this, there is no need to update your installation.

Stefan
Get the latest version of newpost2mail for phpBB3 at http://henmedia.de | [donate USD] [donate EUR]

nathanh
Registered User
Posts: 33
Joined: Mon Apr 06, 2009 10:52 am

Re: [BETA] newpost2mail: Send new posts as email to admin

Post by nathanh » Wed Sep 16, 2009 3:50 pm

Great idea for a MOD.

I've set it up to only send an email on one forum

Code: Select all

$n2m_MAILTO_BOARDCONTACT = 0;
$n2m_MAILTO[] = "";
$n2m_MAILTO_GROUP[] = "";
$n2m_MONITOR_FORUM[6][] = "XXXXXXXXX@orc.co.uk";
Obvoiusly I'm using a name instead of XXXXXXXX

Unfortunately I keep getting this error message

Code: Select all

include($phpbb_root_path . 'newpost2mail.php'); on line 306: mail() [function.mail]: SMTP server response: 501 5.5.4 Invalid Address
I've tried sending an email to the address through the board, so I wonder what I'm doing wrong????

babyface1980
Registered User
Posts: 63
Joined: Tue Aug 18, 2009 7:59 pm

Re: [BETA] newpost2mail: Send new posts as email to admin

Post by babyface1980 » Sat Oct 24, 2009 11:34 pm

Does anyone know of a mod like this one that when a member posts a new topic it is also emailed to them?

User avatar
zake black
Registered User
Posts: 694
Joined: Fri Jan 23, 2009 8:34 am
Location: Milton Keynes (UK)
Contact:

Re: [BETA] newpost2mail: Send new posts as email to admin

Post by zake black » Sat Oct 24, 2009 11:51 pm

This mod will email on new topic creation.. and then further posts.. it emails on all..

cheers

babyface1980
Registered User
Posts: 63
Joined: Tue Aug 18, 2009 7:59 pm

Re: [BETA] newpost2mail: Send new posts as email to admin

Post by babyface1980 » Mon Oct 26, 2009 1:49 am

zake black wrote:This mod will email on new topic creation.. and then further posts.. it emails on all..

cheers
Thanks. I am aware of how this mod works. I'm sorry I didn't explain myself correctly. I would like something exactly like this. The difference being that I when a member posts a new topic that it emails it to them as well.

Example:

I post a new topic. The topic I post gets emailed to me.

Not as per this mod where all or certain selected topics gets emailed to a specific email address.

User avatar
WizardOfZo
Registered User
Posts: 14
Joined: Wed Oct 08, 2008 5:12 pm

Re: [BETA] newpost2mail: Send new posts as email to admin

Post by WizardOfZo » Wed Nov 11, 2009 8:38 pm

Darn It :!:
I just did a manual mod from phpBB 3.0.4 to 3.0.5 and something broke the newpost2mail email output
I just got a email that show all the HTML code instead of the formatted message:

Code: Select all

=?UTF-8?B?bmVs?=" <xxx@xxx.xxx>
X-Mailer: newpost2mail beta 19 for phpBB3
MIME-Version: 1.0
Content-type: text/html; charset=UTF-8

<HTML>
<HEAD>
......and so on
I did do a update for the latest beta (19)
Is there something I am missing?

Also, sidetracking a bit:
Is there a easy mod to send out messages to everyone in groups as a "BCC" (except the board admin) instead of individual emails to all in the group receiving the email? I think that may speed up the process returning from this code?
Thanks
WayneG

henmedia
Registered User
Posts: 140
Joined: Wed Dec 19, 2007 9:31 am
Location: Germany
Contact:

Re: [BETA] newpost2mail: Send new posts as email to admin

Post by henmedia » Wed Nov 11, 2009 10:19 pm

This bug* is v3.0.5 related and there should be a workaround in beta19

Be sure to find the following lines in newpost2mail.php:

Code: Select all

// fix for phpBB 3.05 !
      $subject = str_replace("\r", "", $subject);
      $subject = str_replace("\n", "", $subject);
This fix worked for my installation.

*) http://www.phpbb.com/bugs/phpbb3/ticket ... t_id=46725

If it does not work for you, try to change it to

Code: Select all

// fix for phpBB 3.05 !
      $subject = str_replace("\r\n", "\n", $subject);
However, this should be fixed finally in phbBB 3.0.6
Get the latest version of newpost2mail for phpBB3 at http://henmedia.de | [donate USD] [donate EUR]

User avatar
WizardOfZo
Registered User
Posts: 14
Joined: Wed Oct 08, 2008 5:12 pm

Re: [BETA] newpost2mail: Send new posts as email to admin

Post by WizardOfZo » Thu Nov 12, 2009 1:13 pm

I tried each of the things you mentioned and it still has the HTML all messed up.
To get it to work, I replace functions_messenger.php from 3.0.5 with the old one from 3.0.4 and that seems to be OK for now.
Hopefully 3.0.6 is coming soon and really does repair the problem

Fossil Rock
Registered User
Posts: 22
Joined: Tue Apr 11, 2006 10:45 pm

Re: [BETA] newpost2mail: Send new posts as email to admin

Post by Fossil Rock » Tue Dec 22, 2009 8:13 pm

The current version is 3.06.

The installation instructions need to be updated to reflect the section below as the new search criteria (on line 1108).

Code: Select all

$redirect_url = submit_post($mode, $post_data['post_subject'], $post_data['username'], $post_data['topic_type'], $poll, $data, $update_message, ($update_message || $update_subject) ? true : false);

User avatar
jcncom
Registered User
Posts: 11
Joined: Fri Nov 13, 2009 5:22 pm
Location: Arizona
Contact:

Re: [BETA] newpost2mail: Send new posts as email to admin

Post by jcncom » Tue Dec 22, 2009 8:36 pm

Stefan,

Thanks, you saved me a ton of work and made me some money by helping secure a client. Donation forthcoming.

Not a big deal but I'm having the same issue that ricktan150 is/was having: the image attachment in the notification email doesn't make it to the addressee. I've used 2 clients that do receive inline graphics from other sources.

Regards,
Whit... JCN
Image

henmedia
Registered User
Posts: 140
Joined: Wed Dec 19, 2007 9:31 am
Location: Germany
Contact:

Re: [BETA] newpost2mail: Send new posts as email to admin

Post by henmedia » Tue Dec 22, 2009 9:02 pm

There might a problem if the forum the inline image belongs to is protected so that only registered users can see the posts (and the images of this protected forum). But this is by phpBB design, I can't override this.
If we have such a forum and you are using Thunderbird, the images cannot be displayed, because Thunderbird cannot login into the forum to get access to the images. On the other hand, if you are using Outlook Express AND Internet Explorer AND you have logged in into the forum before in IE AND you checked "remember my login" (or whatever it's called in english, I'm using the german language files) in IE, then you might see the images inside OE. I know this because I just switched from OE/IE to Thunderbird and Firefox.

hth ... Stefan
Get the latest version of newpost2mail for phpBB3 at http://henmedia.de | [donate USD] [donate EUR]

henmedia
Registered User
Posts: 140
Joined: Wed Dec 19, 2007 9:31 am
Location: Germany
Contact:

Re: [BETA] newpost2mail: Send new posts as email to admin

Post by henmedia » Tue Dec 22, 2009 9:08 pm

Fossil Rock wrote:The current version is 3.06.

The installation instructions need to be updated to reflect the section below as the new search criteria (on line 1108).
ooops ... totally forgot about that ... I just updated the instructions to reflect v3.0.6

Stefan
Get the latest version of newpost2mail for phpBB3 at http://henmedia.de | [donate USD] [donate EUR]

Locked

Return to “[3.0.x] Abandoned MODs”