Advertisement:

Author Topic: SMF Mailing List Mod  (Read 25095 times)

Offline pftq

  • Jr. Member
  • **
  • Posts: 212
  • a pftq production!
    • < - - ( pq - a pftq production! ) - - - >
SMF Mailing List Mod
« on: June 24, 2011, 04:01:47 PM »
     This modification sets up your board to basically behave as a list serve or mailing list.  The best example to think of is "Google Groups", in that the discussion board still exists while any emails sent to the site are automatically posted or added as replies to existing topics.  The SMF Mailing List mod works best together with the SMF Notify Group mod, which allows you to subscribe multiple groups/members to a thread.  The mod now also handles attachments and routes email replies to different boards depending on the address it is sent to; in addition it allows for non-members to start one-to-one threads w/ staff like a support ticket system if wanted.
      
     Credits for the original mod "Post By Email" go to Matthew Wolf (a.k.a Grudge).  The mod I've created based off of the original differs in that it actually simulates a mailing list or listserv, rather than just handle emails that might be sent to the board in error.  Much more time and code has also been put into the reply extraction to handle different email encoding formats as well as HTML.  It is also capable of accepting web hooks, or HTTP POST data, for servers that may not have email piping enabled.  The listed differences are:
Quote
      - Complete revamp of the reply extraction process to work with many email clients; tested with Gmail, Yahoo, Hotmail, Comcast, and numerous others.  HTML emails can be accepted and formatting preserved.  Multiple email encodings supported, including quoted-printable, 7-bit, and 64bit.
      - Works with webhooks / mailhooks / HTTP POST data (enabled via options) for servers without email piping.  Tested with mailhooks.com.  Currently looking to test on more providers - if you know any more, please contact me.
      - Allows replies to any post email (announcements and notifications) by the board.  Notifications and announcements are also formatted like an email thread (previous replies quoted beneath).
      - Sending emails with new subjects (or without the re: prefix) creates a new topic to a default board of your choosing (under Features/Options).
      - New topics started by email are automatically announced (emailed) to members who can see that board, just as a real mailing list would do.  If the number of members able to see the board is large, this might cause a lot of server load by announcing to everyone. Then you might want to either pick a different board to start topics (with fewer members able to access) or disable this entirely (again, under Features/Options).
      - For all announcements (posted by email or board), members are automatically subscribed so they receive replies through email and can reply back through email (can be disabled if you only want topics created by email to function as mailing lists).
      - All posts created through email show the original poster as the sender, rather than the board.
      - Posts announced via the forum can also show the poster as the sender (option in Features).
      - Attachments are supported from incoming emails and automatically attached to outgoing emails.
      - New topics via email can be routed to different boards (and therefore membergroups) depending on the address sent (setup in Features/Options).
      - Optional Support Ticket System; those who cannot access the default board can email the forum to start a thread between themselves and those who can access the board, simulating a ticket system (where those w/ access are the staff).  Non-members and guests can also do the same if the board allows for guest posting.
   




FAQ / Common Questions

Why am I getting Failed Delivery bouncebacks with messages like "<b>Notice</b>:  Undefined index:..."?
- This is from the mod's text strings not being loaded.  If you are using a custom theme, remember to copy the changes to your language files as explained in the readme (or install page).

Why are there options in Features with no text descriptions?
- This is the same issue as the text strings mentioned above.  If you think you installed it correctly, you may also want to check that you copied the changes to the correct language files.  Even if you think you are using English, it could be that you are using english-utf8, for example.

I keep getting Mail delivery failed with "Error in argument 1, char 3: option not found <"
- Please unzip the download package before uploading to your server and installing.  Sometimes the unzipping function on the server does not preserve linebreaks properly, if for example you are uploading from Windows to Linux.  If the mod is already installed, unzip the package on your computer and reupload emailpost.php to your forum directory (replacing the corrupt one).

Replies aren't going to the board.  There are no errors or if debug is enabled in emailpost.php, only 2 lines show up.
- Some users have reported that disabling guest browsing is the cause.  It might be the case that SMF rejects the mod (initiated from an email reply and "technically" a guest) if guest are not allowed to view the board, so try enabling guest browsing and just disallowing guests on a board-by-board basis.

------------------
      
Original "Post By Email" mod written By Matthew Wolf (a.k.a Grudge) - me@mattwolf.co.uk
      Porting to SMF Forums 1.1.x (later versions) and recoding to simulate mailing lists by pftq - www.pftq.com
      Some code to close HTML tags in badly formatted emails by Milian Wolff
« Last Edit: August 11, 2012, 12:53:48 AM by pftq »

Offline pftq

  • Jr. Member
  • **
  • Posts: 212
  • a pftq production!
    • < - - ( pq - a pftq production! ) - - - >
Re: SMF Mailing List Mod
« Reply #1 on: July 09, 2011, 09:49:08 PM »
The mod has been updated to 1.03:

Main focus of the update is to also affect board notifications for new topics and to respect the profile option to auto-enable notifications for topics you post to.  For consistency, I've formatted the board notifications to look like the announcements and for the announcements to not send to those who already receive the board notifications.

Total changes:
Quote
- Extended mailing list functions to include board notifications, previously overlooked.  Special thanks to OldShatterhand for pointing this out.
- Reworded descriptions of settings a bit to group "announcements" and "board notifications" together.
- Fixed SMF bug where announcements are sent even if members already receive a board notification with the topic.
- Fixed to respect member profile settings for auto-enable notifications if they post via email.
« Last Edit: July 10, 2011, 01:48:57 AM by pftq »

Offline pftq

  • Jr. Member
  • **
  • Posts: 212
  • a pftq production!
    • < - - ( pq - a pftq production! ) - - - >
Re: SMF Mailing List Mod
« Reply #2 on: July 13, 2011, 06:39:12 PM »
Couple of bug fixes - 1.05 is the stable version now:
Quote
      20110713 1.05:
      - Updated duplicate announcements fix, which prevents announcements being sent to already notified members, to also include groups from the Notify Group plugin.
      - Fixed announcements not being sent and errors being generated if topic is emailed in (broken by 1.04).
      
      20110710 1.04:
      - Updated to accomodate the Notify Group mod's group notifications (emailing to entire groups instead of members).

 Sorry for all the changes the last few days. :P

Offline igirisjin

  • Jr. Member
  • **
  • Posts: 383
  • Gender: Male
    • Outdoor Club Japan
Re: SMF Mailing List Mod
« Reply #3 on: July 13, 2011, 11:49:40 PM »
Any chance of this mod working on SMF 2.0 in the future?

Would be a great addition.

Offline pftq

  • Jr. Member
  • **
  • Posts: 212
  • a pftq production!
    • < - - ( pq - a pftq production! ) - - - >
Re: SMF Mailing List Mod
« Reply #4 on: July 14, 2011, 12:14:45 AM »
Not in the near future - but I do want to port it over to SMF2 eventually.

Offline pftq

  • Jr. Member
  • **
  • Posts: 212
  • a pftq production!
    • < - - ( pq - a pftq production! ) - - - >
Re: SMF Mailing List Mod
« Reply #5 on: August 14, 2011, 12:50:30 AM »
1.06:
Fixed special characters in email subjects not going through properly.

Just replace emailpost.php in the main forum directory to update (no reinstall needed).

Offline luuuciano

  • SMF Hero
  • ******
  • Posts: 2,882
    • http://cbasites.net/
Re: SMF Mailing List Mod
« Reply #6 on: August 14, 2011, 04:04:48 AM »
Very interesting mod!
Thanks a lot for making and sharing it...

(Ill give it a try when it works on 2.0... and my forum not in a shared account, lol... 500 emails/hour limit is not too much I guess)
No me agradan los foros que no te dejan borrar TU PROPIO usuario, como por ejemplo smfsimple.com.
E incluso te mandan emails no solicitados, de los cuales, quizá, no puedas escapar porque NO te dejan posibilidad a deshabilitarlos (a menos que NO te tengan en su lista negra).

Offline Yiorgos

  • Semi-Newbie
  • *
  • Posts: 93
  • Gender: Male
    • Δορυφορικά Νέα
Re: SMF Mailing List Mod
« Reply #7 on: August 14, 2011, 05:41:56 AM »
That seems to be a very interesting mod.
Is there a precaution taken to avoid mass email sending out ?
I mean... is it possible to define how many emails to send out per hour and what will be the time interval between sending emails ?
Otherwise host providers will not be in favor of sending mass emails.

www.sdtv.gr


Abandoned modifications that I corrected to apply on SMF 2.0 Gold
Simple Awards System  To award good members
Limit Posts Per Day  for over-posting members

Offline luuuciano

  • SMF Hero
  • ******
  • Posts: 2,882
    • http://cbasites.net/
Re: SMF Mailing List Mod
« Reply #8 on: August 14, 2011, 01:50:20 PM »
I mean... is it possible to define how many emails to send out per hour and what will be the time interval between sending emails ?
Otherwise host providers will not be in favor of sending mass emails.

Yeps, that would be great... like working with the smf queue email sending feature...

It would be interesting/useful to have some statistics about email being sent also... like peaks emailsent/hour, daily email sent, etc...
« Last Edit: August 14, 2011, 01:54:32 PM by luuuciano »
No me agradan los foros que no te dejan borrar TU PROPIO usuario, como por ejemplo smfsimple.com.
E incluso te mandan emails no solicitados, de los cuales, quizá, no puedas escapar porque NO te dejan posibilidad a deshabilitarlos (a menos que NO te tengan en su lista negra).

Offline pftq

  • Jr. Member
  • **
  • Posts: 212
  • a pftq production!
    • < - - ( pq - a pftq production! ) - - - >
Re: SMF Mailing List Mod
« Reply #9 on: August 14, 2011, 05:55:17 PM »
It directly uses the SMF announce topic and notification functions, so for SMF1, no (unless you count the few sec delay in announcements).  I'm not sure whether SMF2 has queue, but I will use it if it does.

The boards I use this with are small though, so I haven't run into sending too many emails.

Offline Lucutious

  • Semi-Newbie
  • *
  • Posts: 16
  • Gender: Male
Re: SMF Mailing List Mod
« Reply #10 on: September 01, 2011, 11:20:49 PM »
I would 100% use this if it worked in 2.0.

Offline igirisjin

  • Jr. Member
  • **
  • Posts: 383
  • Gender: Male
    • Outdoor Club Japan
Re: SMF Mailing List Mod
« Reply #11 on: September 02, 2011, 07:55:14 AM »
Quote
I would 100% use this if it worked in 2.0.
Same here .... waiting for this. I guess SMF 1 support will be discontinued at some time in the future anyway.

Offline opheliagrimm

  • Semi-Newbie
  • *
  • Posts: 21
Re: SMF Mailing List Mod
« Reply #12 on: September 11, 2011, 06:29:28 AM »
would love this on smf 2.0 as well.

same goes for your other mod: http://www.simplemachines.org/community/index.php?topic=438470.0

smf mail read tracker.

Great stuff

Offline nolageek

  • Semi-Newbie
  • *
  • Posts: 80
    • nolageek.com
Re: SMF Mailing List Mod
« Reply #13 on: September 23, 2011, 05:22:09 PM »
Ugh. Need both Twitter Integration and this mod and neither work on the same version. Shoot me. :)

Offline pftq

  • Jr. Member
  • **
  • Posts: 212
  • a pftq production!
    • < - - ( pq - a pftq production! ) - - - >
Re: SMF Mailing List Mod
« Reply #14 on: January 04, 2012, 08:58:58 PM »
This is probably one of the biggest updates I've done in a while on any mod.  It took the longest here (several days straight of doing nothing but coding >.< ) but nonetheless very fulfilling now that the functionality is all there.

This is still SMF1.1.x - sorry.  I wanted to get all the features in first before the port but it's done now. :) Just need a break before tackling the huge port job, though if anyone wants to help, I definitely wouldn't be opposed to it. :P

Pretty much all the gaps have been filled on the SMF Mailing List mod, functionality wise.  It basically transforms SMF into a variation of Googlegroups. :P
- It allows attachments, automatically includes them with your posts and emails them out also.
- If you want to set up a sort of ticketing system, you can allow guests to email in questions and start threads that only they can see and respond to (speaking w/ the forum staff of course, not just themselves).
- You can forward multiple email addresses to the mod and it'll route the posts to the proper boards depending on what you set in the options.
- All settings are now on a separate Mailing List Settings page; small detail but it's nice nonetheless. :D

The complete changes from the original "Post By Email" mod are now:
Quote
      - Complete revamp of the reply extraction process to work with many email clients; tested with Gmail, Yahoo, Hotmail, Comcast, and numerous others.  HTML emails can be accepted and formatting preserved.  Multiple email encodings supported, including quoted-printable, 7-bit, and 64bit.
       - Works with webhooks / mailhooks / HTTP POST data (enabled via options) for servers without email piping.  Tested with mailhooks.com.  Currently looking to test on more providers - if you know any more, please contact me.
       - Allows replies to any post email (announcements and notifications) by the board.  Notifications and announcements are also formatted like an email thread (previous replies quoted beneath).
       - Sending emails with new subjects (or without the re: prefix) creates a new topic to a default board of your choosing (under Features/Options).
       - New topics started by email are automatically announced (emailed) to members who can see that board, just as a real mailing list would do.  If the number of members able to see the board is large, this might cause a lot of server load by announcing to everyone. Then you might want to either pick a different board to start topics (with fewer members able to access) or disable this entirely (again, under Features/Options).
       - For all announcements (posted by email or board), members are automatically subscribed so they receive replies through email and can reply back through email (can be disabled if you only want topics created by email to function as mailing lists).
       - All posts created through email show the original poster as the sender, rather than the board.
       - Posts announced via the forum can also show the poster as the sender (option in Features).
       - Attachments are supported from incoming emails and automatically attached to outgoing emails.
       - New topics via email can be routed to different boards (and therefore membergroups) depending on the address sent (setup in Features/Options).
       - Optional Support Ticket System; those who cannot access the default board can email the forum to start a thread between themselves and those who can access the board, simulating a ticket system (where those w/ access are the staff).  Non-members and guests can also do the same if the board allows for guest posting.

You can download the mod here:  SMF Mailing List

Have to thank the SMF team for finally letting the mod go through about year ago and helping make suggestions on the code as well, otherwise we wouldn't have such an awesome piece of work here. :D

Offline pftq

  • Jr. Member
  • **
  • Posts: 212
  • a pftq production!
    • < - - ( pq - a pftq production! ) - - - >
Re: SMF Mailing List Mod
« Reply #15 on: January 09, 2012, 02:17:32 PM »
Some additional changes:
20120109 1.08:
- Fixed issue w/ bouncing emails ending in a loop again if emails from non-members permitted. **Fairly critical, recommend update if you accept non-member posts*
- Added option to insert a prefix to all topic subjects created via email, such as "[Forum Board] Subject"
- Added one more blank row to board selection on options, was off by one on the number of blanks needed so that if the board id is larger than the number of boards, it is still selectable (SMF bug? not sure).

Hope to start on a SMF2 version soon but these last updates took more time than I expected. >.<

Offline pftq

  • Jr. Member
  • **
  • Posts: 212
  • a pftq production!
    • < - - ( pq - a pftq production! ) - - - >
Re: SMF Mailing List Mod
« Reply #16 on: January 22, 2012, 05:03:11 AM »
Finally available for SMF2: SMF Mailing Mod :D
I expect there will be bugs inevitably, simply from being the first version of the port, so please report any you find.

The SMF2 Mailing List so far should be equivalent to the SMF1 version, with features being and again transforming SMF to a variation of Googlegroups:
- It allows attachments, automatically includes them with your posts and emails them out also.
- If you want to set up a sort of ticketing system, you can allow guests to email in questions and start threads that only they can see and respond to (speaking w/ the forum staff of course, not just themselves).
- You can forward multiple email addresses to the mod and it'll route the posts to the proper boards depending on what you set in the options.
- All settings are now on a separate Mailing List Settings page; small detail but it's nice nonetheless. :D

The complete changes from the original "Post By Email" mod as before:
      - Complete revamp of the reply extraction process to work with many email clients; tested with Gmail, Yahoo, Hotmail, Comcast, and numerous others.  HTML emails can be accepted and formatting preserved.  Multiple email encodings supported, including quoted-printable, 7-bit, and 64bit.
       - Works with webhooks / mailhooks / HTTP POST data (enabled via options) for servers without email piping.  Tested with mailhooks.com.  Currently looking to test on more providers - if you know any more, please contact me.
       - Allows replies to any post email (announcements and notifications) by the board.  Notifications and announcements are also formatted like an email thread (previous replies quoted beneath).
       - Sending emails with new subjects (or without the re: prefix) creates a new topic to a default board of your choosing (under Features/Options).
       - New topics started by email are automatically announced (emailed) to members who can see that board, just as a real mailing list would do.  If the number of members able to see the board is large, this might cause a lot of server load by announcing to everyone. Then you might want to either pick a different board to start topics (with fewer members able to access) or disable this entirely (again, under Features/Options).
       - For all announcements (posted by email or board), members are automatically subscribed so they receive replies through email and can reply back through email (can be disabled if you only want topics created by email to function as mailing lists).
       - All posts created through email show the original poster as the sender, rather than the board.
       - Posts announced via the forum can also show the poster as the sender (option in Features).
       - Attachments are supported from incoming emails and automatically attached to outgoing emails.
       - New topics via email can be routed to different boards (and therefore membergroups) depending on the address sent (setup in Features/Options).
       - Optional Support Ticket System; those who cannot access the default board can email the forum to start a thread between themselves and those who can access the board, simulating a ticket system (where those w/ access are the staff).  Non-members and guests can also do the same if the board allows for guest posting.


You can download the mod here:  SMF Mailing List

Offline asfg812

  • Newbie
  • *
  • Posts: 5
Re: SMF Mailing List Mod
« Reply #17 on: January 22, 2012, 11:25:59 AM »
THANK YOU for your efforts! I never said anything here but was also patiently waiting to add it to 2.0.

You rock!
Bugs will get worked through.

Steve

Offline drroot

  • Jr. Member
  • **
  • Posts: 108
Re: SMF Mailing List Mod
« Reply #18 on: February 14, 2012, 01:03:00 PM »
Nice.

Is there any way to integrate Google Group to the entire forum?
If that is possible, then we would have free mailing list function with no sever overload.

That would be great if one can make it.
« Last Edit: February 14, 2012, 01:08:59 PM by drroot »

Offline Wilo

  • Jr. Member
  • **
  • Posts: 104
Re: SMF Mailing List Mod
« Reply #19 on: February 20, 2012, 09:57:19 AM »
Hi,

I think thisis the Mod i've been searching for however i'm struggling to find out much information on setting up piping.

Before I can test this on our live server I need to get it running on our dev system internally which means i cannlt use Mail hooks, and we're not using cPanel.

Could anyone please point towards a decent piping configuration info source, or offer me any advise on setting it up.

My forum's running on a OpenSuse 11.3, SMF 2.0.2.

Many thanks,

W.