Module: Group Auto-Email
Posted by Joe Curia
November 12, 2009 01:12AM |
Moderator Registered: 18 years ago Posts: 1,301 |
Ok, I have been watching Bob's ongoing conversation with himself :) and mila's comments. First, let me apologize for the confusion over the two groups with read access. That was a mistake on my part as v5.2.1.05 and earlier would automatically email both groups. I have since added the option to select groups which will not receive emails. So, without any further ado, let me introduce the changes found in v5.2.1.06 of this module:
- Enhancement: Added the option to only send emails of new topics, not replies. Thanks go to Phorum user Robert Angle for suggesting this feature.
- Enhancement: Added the ability for the admin to choose groups which will not receive emails through this module. This allows for two groups to be given access to a forum while only one group receives emails through this module. Thanks go to Phorum users Robert Angle and mila for pointing out the need for this feature.
- Bugfix: Added "Author: %author%" to the default email message. I have this in my own forum and was surprised to see that it was not in the default language file for this module. As always, the email message can be edited by changing the language file.
- Enhancement: Added the option for admin to allow users to choose to stop receiving group emails of their own posts. Thanks go to Phorum user snowcrash101 for suggesting this feature.
- Enhancement: Created template files for the control center option along with additional language fields for the template. Thanks go to Phorum user NeBuLuS for much of the code in this enhancement.
- Enhancement: Added the option to include signatures in the post bodies.
Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
- Enhancement: Added the option to only send emails of new topics, not replies. Thanks go to Phorum user Robert Angle for suggesting this feature.
- Enhancement: Added the ability for the admin to choose groups which will not receive emails through this module. This allows for two groups to be given access to a forum while only one group receives emails through this module. Thanks go to Phorum users Robert Angle and mila for pointing out the need for this feature.
- Bugfix: Added "Author: %author%" to the default email message. I have this in my own forum and was surprised to see that it was not in the default language file for this module. As always, the email message can be edited by changing the language file.
- Enhancement: Added the option for admin to allow users to choose to stop receiving group emails of their own posts. Thanks go to Phorum user snowcrash101 for suggesting this feature.
- Enhancement: Created template files for the control center option along with additional language fields for the template. Thanks go to Phorum user NeBuLuS for much of the code in this enhancement.
- Enhancement: Added the option to include signatures in the post bodies.
Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Re: Module: Group Auto-Email November 12, 2009 09:16AM |
Registered: 17 years ago Posts: 11 |
Joe,
Okay... The MIME message header is back. It seems to only appear when users reply to messages. I am using outlook to view my messages. Any ideas? I am using the group_autoemail module 5.2.1.05. I am also running the latest version of Phorum 5.2.13. This is what my message looks like...
*********************************** EMAIL MESSAGE *************************************
Content-Type: multipart/mixed;
boundary="gae_bndp_1171"
X-pstn-2strike: clear
X-pstn-neptune: 0/0/0.00/0
X-pstn-levels: (S: 0.06604/99.18919 CV:99.9000 FC:95.5390 LC:95.5390 R:95.9108 P:95.9108 M:97.0282 C:98.6951 )
X-pstn-settings: 5 (2.0000:2.0000) s cv gt3 gt2 gt1 r p m c
X-pstn-addresses: from <DONOTREPLY@domainhere.com> forward (user good) [3968/157]
X-ME-Bayesian: 0.000000
Return-Path: <anonymous@serverdomainhere.com>
MIME-Version: 1.0
This is a multi-part message in MIME format.
--gae_bndp_1171
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
*******************************************************************************
I thought I fixed this bug by modifying the original code in group_autoemail.php file. Apparently outlook needs to read the "MIME-Version: 1.0 header" as the last header. This seems to take care of the issue when a user first posts a message. Is there another area that the MIME header is used to send messages back out?
*********************************** CODE *************************************
$headers = "From: $sender_name <$sender_address>\r\n";
$headers .= "Message-ID: <".$messageid.">\r\n";
//$headers .= "MIME-Version: 1.0\r\n";
$bndp = "gae_bndp_".$data['message_id'];
if ($debug_i == 1) {
if (function_exists('event_logging_writelog')) {
event_logging_writelog(array(
"message" => "Boundary:\n\n".$bndp
));
}
}
$headers .= "Content-Type: multipart/mixed; \r\n boundary=\"".$bndp."\"\r\n\n";
$headers .= "MIME-Version: 1.0\r\n";
Okay... The MIME message header is back. It seems to only appear when users reply to messages. I am using outlook to view my messages. Any ideas? I am using the group_autoemail module 5.2.1.05. I am also running the latest version of Phorum 5.2.13. This is what my message looks like...
*********************************** EMAIL MESSAGE *************************************
Content-Type: multipart/mixed;
boundary="gae_bndp_1171"
X-pstn-2strike: clear
X-pstn-neptune: 0/0/0.00/0
X-pstn-levels: (S: 0.06604/99.18919 CV:99.9000 FC:95.5390 LC:95.5390 R:95.9108 P:95.9108 M:97.0282 C:98.6951 )
X-pstn-settings: 5 (2.0000:2.0000) s cv gt3 gt2 gt1 r p m c
X-pstn-addresses: from <DONOTREPLY@domainhere.com> forward (user good) [3968/157]
X-ME-Bayesian: 0.000000
Return-Path: <anonymous@serverdomainhere.com>
MIME-Version: 1.0
This is a multi-part message in MIME format.
--gae_bndp_1171
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
*******************************************************************************
I thought I fixed this bug by modifying the original code in group_autoemail.php file. Apparently outlook needs to read the "MIME-Version: 1.0 header" as the last header. This seems to take care of the issue when a user first posts a message. Is there another area that the MIME header is used to send messages back out?
*********************************** CODE *************************************
$headers = "From: $sender_name <$sender_address>\r\n";
$headers .= "Message-ID: <".$messageid.">\r\n";
//$headers .= "MIME-Version: 1.0\r\n";
$bndp = "gae_bndp_".$data['message_id'];
if ($debug_i == 1) {
if (function_exists('event_logging_writelog')) {
event_logging_writelog(array(
"message" => "Boundary:\n\n".$bndp
));
}
}
$headers .= "Content-Type: multipart/mixed; \r\n boundary=\"".$bndp."\"\r\n\n";
$headers .= "MIME-Version: 1.0\r\n";
November 12, 2009 11:19AM |
Moderator Registered: 18 years ago Posts: 1,301 |
Ryan, sorry I missed your other post. Some googling turned up this thread [forums.devshed.com] which seems to indicate (as I have found in the past with the \r\n issue) that some setups use \r\n properly, others only \n. In the interest of getting your particular server running, please try replacing:
$headers .= "MIME-Version: 1.0\r\n";
with:
$headers .= "MIME-Version: 1.0\n";
Let me know if that helps. If so, I will try to incorporate something like a "Use \r in headers:" setting. Actually, looking through that thread has reminded me that I want to get some HTML email going for this module as well. The joy of coding never ends ;-)
Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
$headers .= "MIME-Version: 1.0\r\n";
with:
$headers .= "MIME-Version: 1.0\n";
Let me know if that helps. If so, I will try to incorporate something like a "Use \r in headers:" setting. Actually, looking through that thread has reminded me that I want to get some HTML email going for this module as well. The joy of coding never ends ;-)
Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Re: Module: Group Auto-Email November 12, 2009 11:58AM |
Registered: 17 years ago Posts: 11 |
Hi Joe,
Thank you for your response. I replaced the code to...
$headers .= "MIME-Version: 1.0\n";
With the following result... Do I need to replace all of the "\r\n" with "\n" in the headers?
*********************************************************************
Content-Type: multipart/mixed; boundary="gae_bndp_9" X-pstn-neptune: 0/0/0.00/0
X-pstn-levels: (S: 0.15305/99.54359 CV:99.9000 FC:95.5390 LC:95.5390 R:95.9108 P:95.9108 M:97.0282 C:98.6951 )
X-ME-Bayesian: 0.000000
Return-Path: <anonymous@server1.com>
MIME-Version: 1.0
This is a multi-part message in MIME format.
--gae_bndp_9
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Thank you for your response. I replaced the code to...
$headers .= "MIME-Version: 1.0\n";
With the following result... Do I need to replace all of the "\r\n" with "\n" in the headers?
*********************************************************************
Content-Type: multipart/mixed; boundary="gae_bndp_9" X-pstn-neptune: 0/0/0.00/0
X-pstn-levels: (S: 0.15305/99.54359 CV:99.9000 FC:95.5390 LC:95.5390 R:95.9108 P:95.9108 M:97.0282 C:98.6951 )
X-ME-Bayesian: 0.000000
Return-Path: <anonymous@server1.com>
MIME-Version: 1.0
This is a multi-part message in MIME format.
--gae_bndp_9
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Re: Module: Group Auto-Email November 12, 2009 12:46PM |
Registered: 17 years ago Posts: 11 |
Re: Module: Group Auto-Email v5.2.1.06 - New options: Signatures, New topics only, No email to message author, Ignore selected groups November 12, 2009 07:11PM |
Registered: 15 years ago Posts: 9 |
Nice!
Just installed the _06 version. You really managed to rub my confusion away with it. :) I set the module to ignore group1 and gave group2 read access to a (new) "notifications" forum. I have moved relevant threads into the new forum so group2 users get email when new replies are posted.
As an improvement, especially when emailing only new topics, not replies: Is there maybe a hook you could use to generate mails on moving a topic (i.e. posting a message with attatched replies) into a forum set up with "forum email subscriptions"? (just emailing the first message of that thread may be enough)
Edited 1 time(s). Last edit at 11/12/2009 07:19PM by mila.
Just installed the _06 version. You really managed to rub my confusion away with it. :) I set the module to ignore group1 and gave group2 read access to a (new) "notifications" forum. I have moved relevant threads into the new forum so group2 users get email when new replies are posted.
As an improvement, especially when emailing only new topics, not replies: Is there maybe a hook you could use to generate mails on moving a topic (i.e. posting a message with attatched replies) into a forum set up with "forum email subscriptions"? (just emailing the first message of that thread may be enough)
Edited 1 time(s). Last edit at 11/12/2009 07:19PM by mila.
MIME-Version email header messes up Outlook (WebMail) November 04, 2009 11:11AM |
Registered: 17 years ago Posts: 11 |
Hi,
I'm using the group email notification module and everything works fine except... when users receive email through outlook / webmail it displays the MIME-Version header. The email displays fine in gmail, yahoo, hotmail, etc. Has anyone else seen this issue or has reported it? Thanks.
Ryan
I'm using the group email notification module and everything works fine except... when users receive email through outlook / webmail it displays the MIME-Version header. The email displays fine in gmail, yahoo, hotmail, etc. Has anyone else seen this issue or has reported it? Thanks.
Ryan
Re: MIME-Version email header messes up Outlook (WebMail) November 04, 2009 11:38AM |
Registered: 17 years ago Posts: 11 |
If anyone is interested I think I figured out the issue. I modified the group_autoemail.php file. Apparently outlook needs to read the "MIME-Version: 1.0 header" as the last header.
*********************************** CODE *************************************
$headers = "From: $sender_name <$sender_address>\r\n";
$headers .= "Message-ID: <".$messageid.">\r\n";
//$headers .= "MIME-Version: 1.0\r\n";
$bndp = "gae_bndp_".$data['message_id'];
if ($debug_i == 1) {
if (function_exists('event_logging_writelog')) {
event_logging_writelog(array(
"message" => "Boundary:\n\n".$bndp
));
}
}
$headers .= "Content-Type: multipart/mixed; \r\n boundary=\"".$bndp."\"\r\n\n";
$headers .= "MIME-Version: 1.0\r\n";
Edited 1 time(s). Last edit at 11/04/2009 11:38AM by rbfkak.
*********************************** CODE *************************************
$headers = "From: $sender_name <$sender_address>\r\n";
$headers .= "Message-ID: <".$messageid.">\r\n";
//$headers .= "MIME-Version: 1.0\r\n";
$bndp = "gae_bndp_".$data['message_id'];
if ($debug_i == 1) {
if (function_exists('event_logging_writelog')) {
event_logging_writelog(array(
"message" => "Boundary:\n\n".$bndp
));
}
}
$headers .= "Content-Type: multipart/mixed; \r\n boundary=\"".$bndp."\"\r\n\n";
$headers .= "MIME-Version: 1.0\r\n";
Edited 1 time(s). Last edit at 11/04/2009 11:38AM by rbfkak.
Re: MIME-Version email header messes up Outlook (WebMail) November 12, 2009 09:09AM |
Registered: 17 years ago Posts: 11 |
Okay... The MIME message header is back. It seems to only appear when users reply to messages. Any ideas? I am using the group_autoemail module. I am also running the latest version of Phorum 5.2.13. This is what my message looks like...
*********************************************************************************************************
Content-Type: multipart/mixed;
boundary="gae_bndp_1171"
X-pstn-2strike: clear
X-pstn-neptune: 0/0/0.00/0
X-pstn-levels: (S: 0.06604/99.18919 CV:99.9000 FC:95.5390 LC:95.5390 R:95.9108 P:95.9108 M:97.0282 C:98.6951 )
X-pstn-settings: 5 (2.0000:2.0000) s cv gt3 gt2 gt1 r p m c
X-pstn-addresses: from <DONOTREPLY@domainhere.com> forward (user good) [3968/157]
X-ME-Bayesian: 0.000000
Return-Path: <anonymous@serverdomainhere.com>
MIME-Version: 1.0
This is a multi-part message in MIME format.
--gae_bndp_1171
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
*********************************************************************************************************
Content-Type: multipart/mixed;
boundary="gae_bndp_1171"
X-pstn-2strike: clear
X-pstn-neptune: 0/0/0.00/0
X-pstn-levels: (S: 0.06604/99.18919 CV:99.9000 FC:95.5390 LC:95.5390 R:95.9108 P:95.9108 M:97.0282 C:98.6951 )
X-pstn-settings: 5 (2.0000:2.0000) s cv gt3 gt2 gt1 r p m c
X-pstn-addresses: from <DONOTREPLY@domainhere.com> forward (user good) [3968/157]
X-ME-Bayesian: 0.000000
Return-Path: <anonymous@serverdomainhere.com>
MIME-Version: 1.0
This is a multi-part message in MIME format.
--gae_bndp_1171
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Re: MIME-Version email header messes up Outlook (WebMail) November 12, 2009 12:51PM |
Registered: 17 years ago Posts: 11 |
It turns out that I have to remove the "\r" from the headers. Thanks Joe. See below for corrected version.
*********************************** CODE *************************************
$headers = "From: $sender_name <$sender_address>\n";
$headers .= "Message-ID: <".$messageid.">\n";
$bndp = "gae_bndp_".$data['message_id'];
if ($debug_i == 1) {
if (function_exists('event_logging_writelog')) {
event_logging_writelog(array(
"message" => "Boundary:\n\n".$bndp
));
}
}
$headers .= "Content-Type: multipart/mixed; \n boundary=\"".$bndp."\"\n\n";
$headers .= "MIME-Version: 1.0\n";
*********************************** CODE *************************************
$headers = "From: $sender_name <$sender_address>\n";
$headers .= "Message-ID: <".$messageid.">\n";
$bndp = "gae_bndp_".$data['message_id'];
if ($debug_i == 1) {
if (function_exists('event_logging_writelog')) {
event_logging_writelog(array(
"message" => "Boundary:\n\n".$bndp
));
}
}
$headers .= "Content-Type: multipart/mixed; \n boundary=\"".$bndp."\"\n\n";
$headers .= "MIME-Version: 1.0\n";
Sorry, only registered users may post in this forum.