Module: Mailing List
Posted by Oliver Riesen-Mallmann
July 16, 2010 07:34AM |
Admin Registered: 17 years ago Posts: 744 |
Hi Robert,
Hoping that this solution get grace from the Phorum developers I prepared a BETA version of my Mailing List Module which supports attachments.
Please take care that you have apply the following patch:
Please feel free to test it.
Regards
Oliver
Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
Quote
Oliver Riesen
1. Phorum developers add attachment support to the send_mail hook (my preferred solution).
Hoping that this solution get grace from the Phorum developers I prepared a BETA version of my Mailing List Module which supports attachments.
Please take care that you have apply the following patch:
Patching Core Function: The core mail function doesn't support attachments. If you want to send attachments you have to patch include/email_functions.php: Open the file and search for (starting line 241): $hook_data = array( 'addresses' => $addresses, 'from' => $from_address, 'subject' => $mailsubject, 'body' => $mailmessage, 'bcc' => $PHORUM['use_bcc'], 'messageid' => $messageid ); Replace this block by: $hook_data = array( 'addresses' => $addresses, 'from' => $from_address, 'subject' => $mailsubject, 'body' => $mailmessage, 'bcc' => $PHORUM['use_bcc'], 'messageid' => $messageid, 'attachments' => $data['attachments'] );
Please feel free to test it.
Regards
Oliver
Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
Re: Module: Mailing List July 16, 2010 08:03AM |
Admin Registered: 20 years ago Posts: 9,240 |
July 24, 2010 12:08PM |
Admin Registered: 17 years ago Posts: 744 |
Hi Thomas,
Thanks! Please amend also the hook description.
Since it needs a lot of sensitiveness to know how your Phorum developers like to solve things (so my experience) I prefer to ask you first. My "patch" was just for Robert to give him the opportunity to test my besta version of the Mailing List Module.
@Robert: Test successful?
Regards
Oliver
Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
Quote
Thomas Seifert
Similar functionality was added in changeset 4854 now.
Thanks! Please amend also the hook description.
Quote
Thomas Seifert
Please post enhancement requests which include patches in our bug tracker, otherwise it will get lost as we don't read each and every message.
Since it needs a lot of sensitiveness to know how your Phorum developers like to solve things (so my experience) I prefer to ask you first. My "patch" was just for Robert to give him the opportunity to test my besta version of the Mailing List Module.
@Robert: Test successful?
Regards
Oliver
Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
August 02, 2010 02:00AM |
Registered: 16 years ago Posts: 533 |
Quote
Oliver Riesen
@Robert: Test successful?
I made the changes to email_functions.php around line 241 and installed the beta version of the module and did a test post with an uploaded picture, and it did not work.
I am wondering if it is because Embed Attachments is enabled, and a bbcode type tag gets inserted into the body of the message where you want the image or link to appear.
I'll test it out with something else again tomorrow. I am about to fall asleep.
Sorry it took so long to get back. I've been really busy at work.
Robert Angle
Phorum lover, nothing more.
Ruminations
August 02, 2010 02:25AM |
Admin Registered: 17 years ago Posts: 744 |
Hi Robert,
The Embed Attachments Module (version 1.0.1) is also enabled in my test environment.
Please enable the Event Logging Module too, my beta version writes some debugging information about attachments to the log. And have a look to Sanity Checks.
Regards
Oliver
Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
Quote
Robert Angle
I made the changes to email_functions.php around line 241 and installed the beta version of the module and did a test post with an uploaded picture, and it did not work.
I am wondering if it is because Embed Attachments is enabled, and a bbcode type tag gets inserted into the body of the message where you want the image or link to appear.
The Embed Attachments Module (version 1.0.1) is also enabled in my test environment.
Please enable the Event Logging Module too, my beta version writes some debugging information about attachments to the log. And have a look to Sanity Checks.
Regards
Oliver
Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
Re: Module: Mailing List August 05, 2010 04:34PM |
Registered: 13 years ago Posts: 2 |
Hi Thomas,
thanks for this awesome looking module. It looks very promising, but I look for a specific functionality:
I have an mbox from mailman and want to import it, I saw only pop functionality, is there a way to feed an mbox file to your module? Or mail by mail manually, but not through pop?
Thanks,
Ulrich
thanks for this awesome looking module. It looks very promising, but I look for a specific functionality:
I have an mbox from mailman and want to import it, I saw only pop functionality, is there a way to feed an mbox file to your module? Or mail by mail manually, but not through pop?
Thanks,
Ulrich
Re: Module: Mailing List August 05, 2010 06:01PM |
Admin Registered: 20 years ago Posts: 9,240 |
Re: Module: Mailing List September 06, 2010 08:54AM |
Registered: 13 years ago Posts: 11 |
September 06, 2010 09:26AM |
Admin Registered: 17 years ago Posts: 744 |
Hola Lord_ZealoN,
Claro que sí.
I'm using my Mailing List Module with a german forum, so we have a lot of german Umlauts. No problem.
Perhaps it's a problem with your character set in your language file. I think you have to use utf-8.
Saludos desde Alemania
Oliver
Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
Quote
Lord_ZealoN
Can't I use tildes? Simulación de envío appears as: Simluación de envÃo
Claro que sí.
I'm using my Mailing List Module with a german forum, so we have a lot of german Umlauts. No problem.
Perhaps it's a problem with your character set in your language file. I think you have to use utf-8.
Saludos desde Alemania
Oliver
Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
Re: Module: Mailing List September 06, 2010 09:35AM |
Registered: 13 years ago Posts: 11 |
Sorry, only registered users may post in this forum.