Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: pftq on June 24, 2011, 04:01:47 PM

Title: SMF Mailing List Mod
Post by: pftq on June 24, 2011, 04:01:47 PM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=2843)

Latest Update: 2020/08/07: Fixed email not sending from poster's name in SMF2 version (missed a line converting from SMF1).

Interactive Demo: http://www.pftq.com/forums/index.php?board=59.0

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 (http://www.pftq.com/smf-notifygroup/) 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.


     DISCLAIMERS:
      ** This mod does not check for email spoofing when matching addresses to existing members.  It is designed for smaller forum communities where this is less likely to be an issue.


Credits for the original mod "Post from 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:


      - 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, cloudmailin.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.

------------------

Original "Post from Email" mod written By Matthew Wolf (a.k.a Grudge) - [email protected]
Porting to SMF 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
Title: Re: SMF Mailing List Mod
Post by: pftq 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.
Title: Re: SMF Mailing List Mod
Post by: pftq on July 13, 2011, 06:39:12 PM
Couple of bug fixes - 1.05 is the stable version now:
Quote20110713 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
Title: Re: SMF Mailing List Mod
Post by: OCJ 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.
Title: Re: SMF Mailing List Mod
Post by: pftq on July 14, 2011, 12:14:45 AM
Not in the near future - but I do want to port it over to SMF2 eventually.
Title: Re: SMF Mailing List Mod
Post by: pftq 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).
Title: Re: SMF Mailing List Mod
Post by: luuuciano 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)
Title: Re: SMF Mailing List Mod
Post by: Yiorgos 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.
Title: Re: SMF Mailing List Mod
Post by: luuuciano on August 14, 2011, 01:50:20 PM
Quote from: Yiorgos on August 14, 2011, 05:41:56 AM
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...
Title: Re: SMF Mailing List Mod
Post by: pftq 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.
Title: Re: SMF Mailing List Mod
Post by: Lucutious on September 01, 2011, 11:20:49 PM
I would 100% use this if it worked in 2.0.
Title: Re: SMF Mailing List Mod
Post by: OCJ on September 02, 2011, 07:55:14 AM
QuoteI 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.
Title: Re: SMF Mailing List Mod
Post by: opheliagrimm 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
Title: Re: SMF Mailing List Mod
Post by: nolageek 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. :)
Title: Re: SMF Mailing List Mod
Post by: pftq 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 (http://custom.simplemachines.org/mods/index.php?mod=2843) 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 (http://custom.simplemachines.org/mods/index.php?mod=2843)

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
Title: Re: SMF Mailing List Mod
Post by: pftq 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. >.<
Title: Re: SMF Mailing List Mod
Post by: pftq on January 22, 2012, 05:03:11 AM
Finally available for SMF2: SMF Mailing Mod (http://custom.simplemachines.org/mods/index.php?mod=2843) :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 (http://custom.simplemachines.org/mods/index.php?mod=2843)
Title: Re: SMF Mailing List Mod
Post by: asfg812 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
Title: Re: SMF Mailing List Mod
Post by: drroot 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.
Title: Re: SMF Mailing List Mod
Post by: Wilo 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.
Title: Re: SMF Mailing List Mod
Post by: Djehuti on March 22, 2012, 06:12:31 AM
Hi and thanks for a great mod.

I'm trying to get this to work, but to no avail up to now...

I've asked my host if they can pipe the email...until then I'm testing it with HTTP post (so that's checked)

To actually get it to work I first tried the service from mailhooks.com.
They give you an emailadress, but anything sent to that adress is not posted on the board I configured in your mod.
(above emailadress linked to a board in the config of this mod)

Because mailhooks.com has no info or docs whatsoever, I went on to test it with smtp2web.com
So I changed the adress in the config based on what they gave me... still nothing.

In trying to find a method of testing whether the mails actually reached the HTTP services, I ran into https://cloudmailin.com/
They seem to have better info about what's going on in the background.
So again, I changed the adress in the config based on what they gave me... still nothing.
According to cloudmailin the mails were however forwarded (and I could see the contents there)

They have a small window that shows the (script?) response, which says:
QuoteThe response is not available for this message. This may be because a successful response was found or we no longer have the response stored.

So I'm starting to conclude there's something wrong on the mod side.
I've checked the rights for the script, emailpost.php, but it was set to 755, so this is all ok.

One thing I'm not sure of though (still waiting for a response from my host) is whether php is installed in /usr/bin/php
Is there any way I can test this?

Also, is there anything I should see when i browse to /.../path/to/SMF/emailpost.php (changed to my webpage of course)?
Right now, the screen is blank only showing the following in the upper left corner.
Quote#!/usr/bin/php -q

Does that mean it can't find php?

Any help on this is really appreciated!  ;D

Title: Re: SMF Mailing List Mod
Post by: pftq on March 22, 2012, 10:42:57 AM
Yeah, mailhooks.com seems to be down and their lack of documentation makes it difficult to know if it'll be fixed or not.

Cloudmailin sounds like an interesting service; I haven't heard of it but will check it out this weekend myself (been looking to replace the mailhooks reference in the readme for a while). :)

You will not see anything by browsing to emailpost.  You can however turn on the debugger by opening the file and changing the $debug=false; line to $debug=true; .

Then look for "test.txt" when you send an email to it.  If no test.txt is generated, the email isn't reaching the script (so check chmod, php installation line, pipe forwarding, etc).  If it is generated, take a look at where it's failing (the test.txt file is readable).
Title: Re: SMF Mailing List Mod
Post by: Wilo on March 23, 2012, 07:16:26 AM
Hi,

Can anyoine advise on how to setup the Milaing LIst Mod in Windows server 2008? 

I cannot find out how to setup email piping in IIS?  I have managed to get incoming forum emails to the Drop box but I cannot get them forwarded to the script.

Many thanks for yor help.

W.
Title: Re: SMF Mailing List Mod
Post by: Djehuti on March 23, 2012, 07:55:32 AM
Thanks for the info..

I've changed the setting to true, but no test.txt

Changed the chmod from 755 to 777, but still nothing.
(the mails are received by cloudmailin though)

I received a reply from my host stating they do not support email piping.
Also, concerning php they said that the location of PHP on their server is not relevant, since it's already active and your reference would only make sense if it had to be started from a command line.

Does that make sense to you, and if not, could you please tell me what I should tell them? :D

Thanks again...!
Title: Re: SMF Mailing List Mod
Post by: pftq on March 23, 2012, 11:00:38 AM
@Wilo: Sorry, I have no experience with Windows 2008.  Hoping someone else can chip in here?

@Djehuti: It probably is the case if you are not using email piping.  I would stick to 755.  We know now though that the email isn't getting to the file to be processed in the first place.  One thing though - did you turn on HTTP POST in the Features and Settings?
Title: Re: SMF Mailing List Mod
Post by: Wilo on March 27, 2012, 12:44:38 PM
Djehuti, I believe I'm in the same situation as you are.  Everything seems setup correctly, I'm using Cloudmailin but I cannot get the mod to work.  Have you made any progress?

Thanks,

W.
Title: Re: SMF Mailing List Mod
Post by: pftq on March 27, 2012, 03:55:49 PM
I've added support for cloudmailin.  The variable names they used were different than what was being looked for in the mod.  It's difficult to come up with a "support-all" solution since there doesn't seem to be a standard approach to mail/webhooks, but please keep them coming.  It's great to be able to recommend something other than mailhooks.com now since that service hasn't always been reliable. :)

You can redownload and just replace the emailpost.php file.  You should still have gotten debug info though; if you didn't, make sure to turn on HTTP POST under Features and Options.
Title: Re: SMF Mailing List Mod
Post by: alanbrit on March 30, 2012, 04:07:26 PM
Quote from: pftq on March 27, 2012, 03:55:49 PM
I've added support for cloudmailin.  The variable names they used were different than what was being looked for in the mod.  It's difficult to come up with a "support-all" solution since there doesn't seem to be a standard approach to mail/webhooks, but please keep them coming.  It's great to be able to recommend something other than mailhooks.com now since that service hasn't always been reliable. :)

You can redownload and just replace the emailpost.php file.  You should still have gotten debug info though; if you didn't, make sure to turn on HTTP POST under Features and Options.

Hey pfqt -- first of all. Thanks a bunch for taking the time out to make this fantastic mod. I *think* it's what I need. Let me explain what I am trying to do:

1.) I have a wordpress contact form where people could submit messages
2.) I want these messages to be routed to an EXISTING topic and posted as a regular POST under a certain pre-existing robot-user
3.) I would like to have multiple versions of this in the future. Meaning, multiple contact form submissions (different sites) being routed to pre-existing  threads and posted as POSTS

Currently, I am testing it out with mailhooks.com without much luck. Basically, it's supposed to post when an email is sent to the newly created mailhooks email address right? Nothing yet.

Also, it LOOKS like there is no option under the "Mailing List Mod" to choose a pre-existing topic (it lets me choose a pre-existing board though) - so how can I post to a pre-existing thread, instead of creating a new thread?

Thanks again mate!
alan
Title: Re: SMF Mailing List Mod
Post by: pftq on March 30, 2012, 04:37:36 PM
It is just any topic that sends out a notification email.  Replying to those emails will post to the thread, regardless if it was created before or after the mod.

If mailhooks.com isn't working, I suggest trying cloudmailin.com - it seems to be newer and better supported.

I am not sure how you are integrating Wordpress and SMF, but any further questions, just let me know.
Title: Re: SMF Mailing List Mod
Post by: alanbrit on March 30, 2012, 07:51:57 PM
Quote from: pftq on March 30, 2012, 04:37:36 PM
It is just any topic that sends out a notification email.  Replying to those emails will post to the thread, regardless if it was created before or after the mod.

If mailhooks.com isn't working, I suggest trying cloudmailin.com - it seems to be newer and better supported.

I am not sure how you are integrating Wordpress and SMF, but any further questions, just let me know.

See screenshot for my settings.

1.) I made two accounts. One with mailhooks and one with cloudmailin. Both email addresses are set to post within a given "Board" (see screenshot) Is this setup correct? I know I can choose a "Board" -- but can I choose a existing "Topic" to post in directly?

2.) I sent multiple emails to both email addresses above (mailhooks and cloudmailin) -- both services says "OK" and that it was received (HTTP 200) - but nothing on the forum. I have the domain.com/forum/emailpost.php path also correct on both services.

First I want to see if this would work as it is (ie: I am able to post to an existing topic via email) - Then, if that works -- my plan is to redirect all "Submissions" from our wordpress contact form to either mailhooks and/or cloudmailin email address(es) - which in turn will post on on a certain forum/topic.

Does that make sense? I read the Installation directions etc.. but I hope I understand how this works.

Thanks again
alan
Title: Re: SMF Mailing List Mod
Post by: pftq on March 30, 2012, 08:06:38 PM
I see what you mean about Wordpress contact form now; I thought you meant WP posts themselves.  This should work fine; I do it myself on my own sites (redirect contact to forum threads).

#1 - The topic is simply determined by the subject name.

#2 - Make sure HTTP POST is enabled in Features/Settings for Mailing List.
Title: Re: SMF Mailing List Mod
Post by: alanbrit on March 30, 2012, 08:26:45 PM
Quote from: pftq on March 30, 2012, 08:06:38 PM
I see what you mean about Wordpress contact form now; I thought you meant WP posts themselves.  This should work fine; I do it myself on my own sites (redirect contact to forum threads).

#1 - The topic is simply determined by the subject name.

#2 - Make sure HTTP POST is enabled in Features/Settings for Mailing List.

I think I am doing that already. For starters, I have two email addresses. One from mailhooks and one from cloudmailin. The email address from "mailhooks" is set to the "forum webmaster email". I also have the HTTP POST option enabled.


#1: In the "Optional Subject Prefix" -- I copied and pasted the name from a pre-existing topic. For example, if there is a thread called "Web Submissions", I copied and pasted "Web Submissions" to the subject prefix area in the "Mailing List" settings. Is this correct?

#2: Then... I sent one single email to both addresses (mailhooks and cloudmailin) with a bunch of text. Even though the cloudmailin/mailhooks accounts says that they were received - nothing is happening in the forum. Is this correct?

What am I doing wrong ?
Title: Re: SMF Mailing List Mod
Post by: pftq on March 30, 2012, 08:53:13 PM
#1 - the prefix is something added to outgoing mail.  Like "[SMF] Subject" where [SMF] is the prefix.

#2 - To help debug this, can you edit the emailpost.php so that the $debug=false; line becomes $debug=true;
Then look for test.txt in the forums folder when you send an email to the address.  If one isn't generated, the email isn't reaching the mod file, in which case check that the file permission for emailpost.php is 0755 (chmod).
Title: Re: SMF Mailing List Mod
Post by: alanbrit on March 30, 2012, 09:06:34 PM
Quote from: pftq on March 30, 2012, 08:53:13 PM
#1 - the prefix is something added to outgoing mail.  Like "[SMF] Subject" where [SMF] is the prefix.

#2 - To help debug this, can you edit the emailpost.php so that the $debug=false; line becomes $debug=true;
Then look for test.txt in the forums folder when you send an email to the address.  If one isn't generated, the email isn't reaching the mod file, in which case check that the file permission for emailpost.php is 0755 (chmod).

email.txt just shows the following:



DEBUGGER -> Initiating...2012-03-30, 18:04:27

DEBUGGER -> Loading SSI...
Title: Re: SMF Mailing List Mod
Post by: pftq on March 30, 2012, 09:17:15 PM
Any errors on the Admin log? Sounds like a mod conflict maybe - it's not getting past just loading the SSI.php file for SMF.
Title: Re: SMF Mailing List Mod
Post by: alanbrit on March 30, 2012, 09:37:15 PM
Quote from: pftq on March 30, 2012, 09:17:15 PM
Any errors on the Admin log? Sounds like a mod conflict maybe - it's not getting past just loading the SSI.php file for SMF.

Nope. The latest error I have is from March 24 for a login attempt/password incorrect error. I am using Dreamhost if that helps. Weird.

Any ideas?
Title: Re: SMF Mailing List Mod
Post by: pftq on March 30, 2012, 10:33:22 PM
What version of SMF and the mod? Can you PM me a link to the site? Not too sure at this point.
Title: Re: SMF Mailing List Mod
Post by: pftq on March 31, 2012, 12:37:14 AM
Updated the SMF2 version with what I hope should address the HTTP POST problems.  Like before, just replace emailpost.php.  Let me know if it helps.
Title: Re: SMF Mailing List Mod
Post by: Wilo on April 05, 2012, 11:39:18 AM
Hi,

I'm still struggling to get this mod wokring properly.  I've set it up, ising Cloudmailin and the new mod realease but nothing gets through.

I'm usuing Opensuse, can anyone suggest any troubleshooting options?

Many thanks,

W
Title: Re: SMF Mailing List Mod
Post by: pftq on April 05, 2012, 11:47:36 AM
Can you check the debug output in test.txt? Please try the save steps describes for alanbrit and let me know your results.
Title: Re: SMF Mailing List Mod
Post by: Wilo on April 05, 2012, 12:32:40 PM
Hi, I get this

DEBUGGER -> Initiating...2012-04-05, 17:29:06

DEBUGGER -> Loading SSI...

DEBUGGER -> Beginning email parse...DEBUGGER -> Nullifying slashes added by SMF...


Analyzing HTTP POST Data

Output:

Variables:

data[0] =>Received: by wibhr17 with SMTP id hr17so1534109wib.9
data[1] =>        for <[email protected]>; Thu, 05 Apr 2012 09:28:38 -0700 (PDT)
data[2] =>DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
data[3] =>        d=gmail.com; s=20120113;
data[4] =>        h=mime-version:date:message-id:subject:from:to:content-type;
data[5] =>        bh=jvcZrHs2ss0CqhLmSFqWWKPOruqXiCWzvWy3JD68LGw=;
data[6] =>        b=S9b0gevfiBjEZrE2vgkq+eyvTAYLpJ1gH5GPBpohkrmungU/t11FlQYnFRmi3N8bsI
data[7] =>         XTzMdhJbwS2SJlj8YoW0021zibJ2ucr6uJtRbENZ5cMRR/AywyYxtFiE11ThHe85RUP8
data[8] =>         /dZan3Zf0gkDBMc2tTNRWT/yaMu6u+WTPi2BPVNJm3Po6RNlFrZDx2LxLR8o5DoPKXwR
data[9] =>         ezK4r/z46vb4paP6/8xgUqiMUP8M8NmVVi+/MkIwrNaLAyUJJdKjYdSbTjYuVt/OrhN1
data[10] =>         lNOaochdE0MkqbDlbiqiZdW5xLT9S1v4b+beqpMR1DB/mzcI129zC0njpKyxRKIiNl4A
data[11] =>         wZUw==
data[12] =>MIME-Version: 1.0
data[13] =>Received: by 10.180.88.199 with SMTP id bi7mr6341518wib.12.1333643317609; Thu,
data[14] => 05 Apr 2012 09:28:37 -0700 (PDT)
data[15] =>Received: by 10.216.205.5 with HTTP; Thu, 5 Apr 2012 09:28:37 -0700 (PDT)
data[16] =>Date: Thu, 5 Apr 2012 17:28:37 +0100
data[17] =>Message-ID: <CAOeSV1++HUiJuNwqR6c9SOG-sNGNK9fTfwVYDnT0sfk-zd=0_A@mail.gmail.com>
data[18] =>Subject: Gmail test 1
data[19] =>From: Wilo <[email protected]>
data[20] =>To: [email protected]
data[21] =>Content-Type: multipart/alternative; boundary=f46d044284003404ec04bcf10809
data[22] =>
data[23] =>--f46d044284003404ec04bcf10809
data[24] =>Content-Type: text/plain; charset=ISO-8859-1
data[25] =>
data[26] =>W Testing from gmail
data[27] =>
data[28] =>--f46d044284003404ec04bcf10809
data[29] =>Content-Type: text/html; charset=ISO-8859-1
data[30] =>Content-Transfer-Encoding: quoted-printable
data[31] =>
data[32] =>W Testing from gmail=A0
data[33] =>
data[34] =>--f46d044284003404ec04bcf10809--
data[35] =>

Raw POST Stream:
Received: by wibhr17 with SMTP id hr17so1534109wib.9
        for <[email protected]>; Thu, 05 Apr 2012 09:28:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:date:message-id:subject:from:to:content-type;
        bh=jvcZrHs2ss0CqhLmSFqWWKPOruqXiCWzvWy3JD68LGw=;
        b=S9b0gevfiBjEZrE2vgkq+eyvTAYLpJ1gH5GPBpohkrmungU/t11FlQYnFRmi3N8bsI
         XTzMdhJbwS2SJlj8YoW0021zibJ2ucr6uJtRbENZ5cMRR/AywyYxtFiE11ThHe85RUP8
         /dZan3Zf0gkDBMc2tTNRWT/yaMu6u+WTPi2BPVNJm3Po6RNlFrZDx2LxLR8o5DoPKXwR
         ezK4r/z46vb4paP6/8xgUqiMUP8M8NmVVi+/MkIwrNaLAyUJJdKjYdSbTjYuVt/OrhN1
         lNOaochdE0MkqbDlbiqiZdW5xLT9S1v4b+beqpMR1DB/mzcI129zC0njpKyxRKIiNl4A
         wZUw==
MIME-Version: 1.0
Received: by 10.180.88.199 with SMTP id bi7mr6341518wib.12.1333643317609; Thu,
05 Apr 2012 09:28:37 -0700 (PDT)
Received: by 10.216.205.5 with HTTP; Thu, 5 Apr 2012 09:28:37 -0700 (PDT)
Date: Thu, 5 Apr 2012 17:28:37 +0100
Message-ID: <CAOeSV1++HUiJuNwqR6c9SOG-sNGNK9fTfwVYDnT0sfk-zd=0_A@mail.gmail.com>
Subject: Gmail test 1
From: W <[email protected]>
To: [email protected]
Content-Type: multipart/alternative; boundary=f46d044284003404ec04bcf10809

--f46d044284003404ec04bcf10809
Content-Type: text/plain; charset=ISO-8859-1

Will Testing from gmail

--f46d044284003404ec04bcf10809
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

W Testing from gmail=A0

--f46d044284003404ec04bcf10809--

USING POST STREAM...
Header[message-id] = <CAOeSV1++HUiJuNwqR6c9SOG-sNGNK9fTfwVYDnT0sfk-zd=0_A@mail.gmail.com>
Header[subject] = Gmail test 1
Header[from] = Will Kemp <[email protected]>
Header[to] = [email protected]
Header[content-type] = multipart/alternative; boundary=f46d044284003404ec04bcf10809

Sending to Board: 48, with prefix ``
Title: Re: SMF Mailing List Mod
Post by: pftq on April 06, 2012, 02:41:33 PM
Talking with Wilo offline for his board, so we hopefully figure out the problem there soon.

@alanbrit: Did the latest update help at all?

Doing what I can here, but the work can be pretty frustrating since emails are quite messy to deal with in the first place.  Once we figure out the prob though, it should at least clear that issue up for all future users. :) 

Just so you guys can see what the working product looks like, I set up a demo page here:
http://www.pftq.com/forums/index.php?board=59.0

Helps to have it there so we know the mod *does* work once set up. :P
Title: Re: SMF Mailing List Mod
Post by: alanbrit on April 06, 2012, 07:22:42 PM
I still can't figure out why its not loading the SSI  :(
Title: Re: SMF Mailing List Mod
Post by: pftq on April 06, 2012, 07:53:00 PM
Is this the case with the newest emailpost.php? I don't change the version number if just fixing emailpost.php since it's just a matter of replacing that one file in /forums/ but do make sure to redownload.
Title: Re: SMF Mailing List Mod
Post by: Djehuti on April 22, 2012, 02:38:55 PM
I've tried again with your latest update and all of a sudden the forum came alive :D

Unfortunately, I am still running into some issues and have some questions.

Here's what happens
- Any mail to my cloudmailin account gets posted on the right board.
- The subject from the mail is used to create the subject from the post; the name of the mailer is used as poster
- The post then reads: "This is a multi-part message in MIME format." and does not show the original contents of the mail
- Any reply on the post will be mailed back to the mailer; using the forum webmaster mailadress
- Any replies to that reply mail will again be posted, but again without the contents of the mail...this time the above message is not shown.

Another issue:
- Ticking or unticking "Announce Emails From Poster Instead of Forum"seems to make no difference... in both cases the forum user is used as "from" in the mail (followed by the webmaster email)

2 questions:
- how is determined who to mail to? Practically, is there any danger of having 2 mails with the same subject and by answering one you'd mail both parties?
- Is it possible to mail back with a different account than the webmaster account?

I'm still testing some stuff, so I'm quite sure I'll have more questions later...
Untill then, thanks a million for this great mod!  :D
Title: Re: SMF Mailing List Mod
Post by: pftq on April 22, 2012, 07:31:36 PM
Thanks for letting me know - glad the latest update helped.  I *just* released another update on emailpost.php (just replace that file) which should improve the parsing.  Let me know if it helps with the "MIME format" problem (basically it's not splicing from the right part of the email).  If not, it would help me debug a lot to get a copy of the email causing the problem - you can forward it to me at pftq [at] pftq.com

The webmaster email under Server Settings is what's used for sending out from the forum and for this  mod.  This is intentional so that replying again will send back to the forum and post to the board.  Googlegroups does this as well - when you hit reply, it goes to Google instead of the sender.  In your case, you'd want to set it to the cloudmailin address.

Right now, you can also add other addresses under the mod settings for the receiving side but not the sending side.  For example, you can add [email protected] and it'll post new topics sent to that address to the board assigned.  Emails continued on that thread will be sent from [email protected] but this only happens for topics started by email.

For threads with the same subject, the mod does two things:
- Check if the email contains quoted replies.  If so, then it appends the new reply to the most recent thread with that subject.
- If the email has no quoted replies, it is assumed to be a new thread and a new topic is started.
Title: Re: SMF Mailing List Mod
Post by: Wilo on May 11, 2012, 07:14:34 AM
Hi,

I'm trying to install the newest mod version on my dev server however I when installing it i get the 'Internet Explorer cannot display the webpage' error in IE and in FireFox I get 'The connection was reset, The connection to the server was reset while the page was loading' error.

Any idea's?  I'm using Opensuse 12.1

The earlier version worked fine.

Thanks,

W
Title: Re: SMF Mailing List Mod
Post by: pftq on May 11, 2012, 11:23:50 AM
Maybe try unzipping the folder (if you haven't already) in your directory.  I remember sometimes getting a timeout from my server on mods in general if they're installed as zip files.
Title: Re: SMF Mailing List Mod
Post by: MrMike on May 18, 2012, 10:42:54 AM
Very cool mod!

This worries me, though:
DISCLAIMERS:
** This mod does not check for email spoofing when matching addresses to existing members. 
It is designed for smaller forum communities where this is less likely to be an issue.

I'd highly recommend doing the email matching/verification- as soon as one spammer finds the 'send to' address, the board(s) will be flooded with all sorts of junk. I haven't looked at the code but it seems like a relatively straightforward thing to implement.
Title: Re: SMF Mailing List Mod
Post by: pftq on May 18, 2012, 01:26:00 PM
I've thought of this a lot but haven't really come up with a way to prove what emails are real (not-spoofed) without going into a lot of record checking (DKIM, SPF, etc).  What's the straightforward way? :)
Title: Re: SMF Mailing List Mod
Post by: pftq on May 21, 2012, 06:17:23 PM
One notion that came up with another user was that upgrading to SMF2 from an existing installation instead of a fresh install led to problems with the mod.  Finally had the chance to test that out on an upgraded forum myself but sad to say it worked just fine on my end.  Seems like a tough one to track down - if anyone can give me access to an example SMF2 board that is having trouble with the mod, would be greatly appreciated.

In the mean time, I noticed that line endings (differing OS between server/local) that might cause problems during install, so I added the following to the FAQ (first post):

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).
Title: Re: SMF Mailing List Mod
Post by: Wilo on July 10, 2012, 07:23:39 AM
Hi,

I've configured the mailing list mod to work on an OpenSuse server using email piping.  We have an exchange account which sends emails directly to the server.

The probelm is whenever I activate the email address (in settings) and send an email all members get the email sent to their address.  I've enabled the Enable Mail Queue feature in the mail settings to manage the emails (and delete them before they're sent out).

Has anyone ever seen this before?

Thanks,

W
Title: Re: SMF Mailing List Mod
Post by: pftq on July 10, 2012, 11:25:47 AM
I'm not clear on what the problem is.  Can you please elaborate?
Title: Re: SMF Mailing List Mod
Post by: pftq on August 11, 2012, 12:53:34 AM
Someone brought to my attention that having guest browsing disabled causes the mod not to be able to post replies to the board from email.  The debug also only shows two lines.  It seems to make sense since posting by email is essentially causing whatever pipes the emails to browse to the board (technically as a guest).

Just putting this out there incase anyone else still has trouble running the script.
Title: Re: SMF Mailing List Mod
Post by: alanbrit on August 11, 2012, 11:37:12 PM
Hey pqft,

Unfortunately i am not in a position to enable guest browsing at the moment, so I cannot really test that theory. any chance of a different version coming out?
Title: Re: SMF Mailing List Mod
Post by: pftq on August 11, 2012, 11:57:23 PM
Is it possible to enable guest browsing but disable guest viewing of the boards individually? For example, enabling guest browsing by setting the permissions not to view any boards for the guest group.

I'm glad we identified the common factor here though.

I'll double-check on my end what I can do but I'm not too sure at this point since SMF is basically shutting me out as soon as I call the SSI connection.
Title: Re: SMF Mailing List Mod
Post by: Inti31 on December 04, 2012, 12:39:13 PM
IT WORKS!
I've tried to post a topic by mail with success.
---
I installed that mod sucessfully (SMF202).
What I have created: a category (=mailinglist)and a board (=demo)


I created an account at: cloudmailin.com and added a post target => http://mydomain.tld/emailpost.php
In the admin section, my admin-email address is listed - i selected the category - board (mailinglist - demo) and entered as subject MAIL.

I added also the cloudmailin-email in the admin area as new address, selected the same data: category - board (mailinglist - demo) and also the subject MAIL.

Now I sent out a mail from my admin-email to cloudmailin-address.
in the cloudmailin-admin-center (web) the email is recognized with status = 200 (means = okay)

I only marked use 'http post' -

I use the newest emailpost.php.

cheers inti31

thx for that
Title: Re: SMF Mailing List Mod
Post by: Inti31 on December 04, 2012, 01:48:22 PM
ups - one qustion:

if i set up a new account (a normal member, no admin or global mod) with a valid email and sent out a mail by using the mailaddress is set - the post is not there - no privileges... - any idea

The error message: "you don't have the permission to post to you own posts"

I entered the email-adress in the admin area - why a normal member can't post by mail?
Title: Re: SMF Mailing List Mod
Post by: pftq on December 05, 2012, 12:09:50 AM
The mod uses the same permissions as the board.  Just a sanity check - but you can post using the board in that account?
Title: Re: SMF Mailing List Mod
Post by: Inti31 on December 05, 2012, 01:25:29 AM
no, I can't... only me (admin-email) - that one works. I tried global mod also - doesn't work either.

is it necessary to have the cloudmailin.com email adress in the admin section like my admin mail (which is the 1st address) ?
I tried without that cloudmailin-address - a email2post works (admin-email)

so only normal member/global mods can't post by mail...

maybe you want to try it: my tesforum (see signature) - feel free to register a account. email I will sent in pm

cheers Inti31
Title: Re: SMF Mailing List Mod
Post by: Inti31 on December 05, 2012, 09:55:55 AM
i tried now another mail addy from my own domain -no success

Log show

DEBUGGER -> Initiating...2012-12-05, 15:45:42

DEBUGGER -> Loading SSI...

DEBUGGER -> Beginning email parse...DEBUGGER -> Nullifying slashes added by SMF...


Analyzing HTTP POST Data

Output:

Variables:

data[0] =>Received: from [10.54.27.151] (unknown [82.113.99.151])
data[1] => (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
data[2] => (No client certificate requested)
data[3] => by vservxx.netboom.net (Postfix) with ESMTPSA id 6A8CF2E0A2
data[4] => for <[email protected]>; Wed,  5 Dec 2012 15:45:36 +0100 (CET)
data[5] =>Message-ID: <[email protected]>
data[6] =>Date: Wed, 05 Dec 2012 15:45:25 +0100
data[7] =>From: mydomain <[email protected]>
data[8] =>User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0
data[9] =>MIME-Version: 1.0
data[10] =>To: [email protected]
data[11] =>Subject: TEST v. TESTNICK
data[12] =>Content-Type: text/plain; charset=ISO-8859-15; format=flowed
data[13] =>Content-Transfer-Encoding: 7bit
data[14] =>
data[15] =>mit MAIL-ADDresse von Webhoster
data[16] =>

Raw POST Stream:
Received: from [10.54.27.151] (unknown [82.113.99.151])
(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
(No client certificate requested)
by vservxx.netboom.net (Postfix) with ESMTPSA id 6A8CF2E0A2
for <[email protected]>; Wed,  5 Dec 2012 15:45:36 +0100 (CET)
Message-ID: <[email protected]>
Date: Wed, 05 Dec 2012 15:45:25 +0100
From: mydomain <[email protected]>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0
MIME-Version: 1.0
To: [email protected]
Subject: TEST v. TESTNICK
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

mit MAIL-ADDresse von Webhoster

USING POST STREAM...
Header[message-id] = <[email protected]>
Header[from] = mydomain <[email protected]>
Header[to] = [email protected]
Header[subject] = TEST v. TESTNICK
Header[content-type] = text/plain; charset=ISO-8859-15; format=flowed
Header[content-transfer-encoding] = 7bit

Sending to Board: 2, with prefix ``
Non-Default Address Used.  Checking [email protected]
Comparing `[email protected]` to `[email protected]`
Not `[email protected]`.
Comparing `[email protected]` to `[email protected]`
Not `[email protected]`.
Isolated Email From = [email protected], Name = mydomain
DEBUGGER -> User Found: TESTNICK

DEBUGGER -> Message Boundary: 
DEBUGGER -> Attachments Boundary:

DEBUGGER -> Message Body:

mit MAIL-ADDresse von Webhoster

DEBUGGER -> CONTENT-TYPE NOT MULTIPART, USING HEADER: text/plain; charset=ISO-8859-15; format=flowed
CONTENT-TYPE PLAINTEXT and CHARSET ISO-8859-15;



DEBUGGER -> Checking that line break exists between headers and content.



DEBUGGER -> HEADERS PULLED OUT FOR CURRENT MESSAGE FORMAT:



DEBUGGER -> SELECTING EMAIL FORMAT: PLAINTEXT


mit MAIL-ADDresse von Webhoster

DEBUGGER -> ENCODING DETECTED IN HEADER: 7bit



DEBUGGER -> DECODING EMAIL: 7bit


mit MAIL-ADDresse von Webhoster

DEBUGGER -> Converted to post: PLAINTEXT

mit MAIL-ADDresse von Webhoster
Title: Re: SMF Mailing List Mod
Post by: Kendrall on December 05, 2012, 02:03:29 PM
Looks interesting.  I'll try to implement it on my test forum before I put it into production on the forum that I'm helping out with; play around with it to see how it will fit into the overall scheme of things.
Title: Re: SMF Mailing List Mod
Post by: Inti31 on December 06, 2012, 06:43:04 AM
@Kendrall  - please let me know if a normal user/global mod could post a topic by mail....

at time, its only me as the admin
Title: Re: SMF Mailing List Mod
Post by: Kendrall on December 06, 2012, 08:00:58 AM
Quote from: Inti31 on December 06, 2012, 06:43:04 AM
@Kendrall  - please let me know if a normal user/global mod could post a topic by mail....

at time, its only me as the admin

Sure thing, but it'll be some time before I can work on it.  Real life and all that, you know :)
Title: Re: SMF Mailing List Mod
Post by: nolageek on December 07, 2012, 02:16:47 PM
This does exactly what I need it to!  One thing though - image attachments always show as downloads under the post because image demention information doesn't get put into the database - therefore SMF doesn't realize it's an image nor does it trigger any other image options (resize, inline, etc...)   Any way to get the Mailing Mod to analyze images and put this info in?

Title: Re: SMF Mailing List Mod
Post by: pftq on September 09, 2013, 12:09:25 AM
Sorry for the late reply.  Was kind of off the grid for a bit. -_-

@Inti31: Regarding posting permissions - it should be the same as topic permissions.  If the user could post to the topic, the user will be able to reply by email.  I'm not sure why it'd behave otherwise.  The log looks fine.  Are you getting any error messages?

@nolageek: I'll see about updating the mod to identify images later later this week.
Title: Re: SMF Mailing List Mod
Post by: ChaosEnergy on September 18, 2013, 12:04:50 PM
Hi

i m trying to get this mod working

message log says, email delivered to script ok

but nothign happens, so i tried the script local on console
then i get a lot of messages from bad behavior mod, assuming a conflict in compatibility between both
Title: Re: SMF Mailing List Mod
Post by: pftq on September 25, 2013, 01:20:07 AM
Possible.  This mod modifies a lot of the post-related functions.  Do you have a link to the mod?
Title: Re: SMF Mailing List Mod
Post by: paudax on December 12, 2013, 08:04:48 AM
Noting the disclaimer:
      ** This mod does not check for email spoofing when matching addresses to existing members.  It is designed for smaller forum communities where this is less likely to be an issue.

Can somebody explain the issues arising here?

Thanks,

Title: Re: SMF Mailing List Mod
Post by: Kindred on December 12, 2013, 09:50:16 AM
what this means is that ---  if your community gets big enough to be noticed - someone COULD spoof the email address and load your forum full of spam from any of your users, because the emails are not acutally CHECKED to validated that they come from the real user.
Title: Re: SMF Mailing List Mod
Post by: libengine on December 14, 2013, 04:01:33 PM
Hi all,

first of all: I really love this mod!    :D

I've got a problem using it with cloudmailin:
emailpost.php doesn't handle the german Umlauts correctly.

data[14] =>Content-Type: text/plain; charset=ISO-8859-15
data[15] =>Content-Transfer-Encoding: 8bit

That should work, but it doesn't when I choose 'Original Format (depreceated)' in the target of cloudmailin.
I checked your online-demo. Umlauts get handled correctly, but the line-feeds get killed along with same mail-header.

greetings,
Holger
Title: Re: SMF Mailing List Mod
Post by: libengine on December 14, 2013, 04:25:00 PM
 I checked the targets 'JSON Format' and 'Raw Format'
'Raw Format' scrambles the Umlauts the same way like 'Original Format'
'JSON Format' in cloudmailin doesn't work at all. Here is the test.txt, result of 'JSON Format':


DEBUGGER -> Initiating...2013-12-14, 22:15:26

DEBUGGER -> Loading SSI...

DEBUGGER -> Beginning email parse...DEBUGGER -> Nullifying slashes added by SMF...


Analyzing HTTP POST Data

Output:

Variables:


Attempting to Parse Post Stream:

data[0] =>{

data[1] =>  "headers": {

data[2] =>    "Received": "from [31.19.27.23] (helo=[192.168.178.98]) by ms-10.1blu.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from <[email protected]>) id 1VrwYW-0003Dy-Rw for [email protected]; Sat, 14 Dec 2013 22:15:24 +0100",

data[3] =>    "Date": "Sat, 14 Dec 2013 22:15:25 +0100",

data[4] =>    "From": "Holger Nassenstein <[email protected]>",

data[5] =>    "To": "Forum Liegeradstammtisch Hamburg <[email protected]>",

data[6] =>    "Message-ID": "<[email protected]>",

data[7] =>    "Subject": "Neues Forum2",

data[8] =>    "Mime-Version": "1.0",

data[9] =>    "Content-Type": "text/plain; charset=ISO-8859-15",

data[10] =>    "Content-Transfer-Encoding": "8bit",

data[11] =>    "User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0",

data[12] =>    "X-Enigmail-Version": "1.6",

data[13] =>    "X-Con-Id": "176075",

data[14] =>    "X-Con-U": "0-mail",

data[15] =>    "X-Originating-IP": "31.19.27.23"

data[16] =>  },

data[17] =>  "envelope": {

data[18] =>    "to": "[email protected]",

data[19] =>    "recipients": [

data[20] =>      "[email protected]"

data[21] =>    ],

data[22] =>    "from": "[email protected]",

data[23] =>    "helo_domain": "ms-10.1blu.de",

data[24] =>    "remote_ip": "178.254.4.101",

data[25] =>    "spf": {

data[26] =>      "result": "none",

data[27] =>      "domain": "nassenstein.net"

data[28] =>    }

data[29] =>  },

data[30] =>  "plain": "Hi,\n\nich habe ein neues Forum installiert, das einige zusätzliche Features\nbietet, u.A. integriert es eine Mailing Liste. :)\n\nWas ändert sich?\n\n* Du gehörst zu den auserwählten Teilnehmern für die sich fast nichts\nändert, da Du bereits registriert bist.\n* Der Content des bisherigen Forums wurde übernommen. Lediglich das\nErstellungs-Datum der Beiträge stimmt nicht.\n* Evtl. musst Du ein neues Avatar in Dein Profil einstellen und Deine\nProfildaten nachsehen. Dein sichtbarer Benutzername im Forum kann jetzt\nvon Dir editiert werden.\n* Natürlich ändert sich die Adresse der Mailing Liste:\[email protected]. Diese Adresse kannst Du auch für einen\nMail-Filter in Deinem eMail-Programm nutzen. Es ist die Absender- und\nEmpfänger-Adresse der Mailing Liste.\n\nEs geht noch ein zweites Mail an alle über die alte Mailing Liste, die\nDich aber nicht betrifft.\n\nBeste Grüße,\n\nHolger\n",

data[31] =>  "html": null,

data[32] =>  "reply_plain": "Hi,\n\nich habe ein neues Forum installiert, das einige zusätzliche Features\nbietet, u.A. integriert es eine Mailing Liste. :)\n\nWas ändert sich?\n\n* Du gehörst zu den auserwählten Teilnehmern für die sich fast nichts\nändert, da Du bereits registriert bist.\n* Der Content des bisherigen Forums wurde übernommen. Lediglich das\nErstellungs-Datum der Beiträge stimmt nicht.\n* Evtl. musst Du ein neues Avatar in Dein Profil einstellen und Deine\nProfildaten nachsehen. Dein sichtbarer Benutzername im Forum kann jetzt\nvon Dir editiert werden.\n* Natürlich ändert sich die Adresse der Mailing Liste:\[email protected]. Diese Adresse kannst Du auch für einen\nMail-Filter in Deinem eMail-Programm nutzen. Es ist die Absender- und\nEmpfänger-Adresse der Mailing Liste.\n\nEs geht noch ein zweites Mail an alle über die alte Mailing Liste, die\nDich aber nicht betrifft.\n\nBeste Grüße,\n\nHolger\n",

data[33] =>  "attachments": [

data[34] =>

data[35] =>  ]

data[36] =>}

Raw POST Stream:
{

  "headers": {

    "Received": "from [31.19.27.23] (helo=[192.168.178.98]) by ms-10.1blu.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from <[email protected]>) id 1VrwYW-0003Dy-Rw for [email protected]; Sat, 14 Dec 2013 22:15:24 +0100",

    "Date": "Sat, 14 Dec 2013 22:15:25 +0100",

    "From": "Holger Nassenstein <[email protected]>",

    "To": "Forum Liegeradstammtisch Hamburg <[email protected]>",

    "Message-ID": "<[email protected]>",

    "Subject": "Neues Forum2",

    "Mime-Version": "1.0",

    "Content-Type": "text/plain; charset=ISO-8859-15",

    "Content-Transfer-Encoding": "8bit",

    "User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0",

    "X-Enigmail-Version": "1.6",

    "X-Con-Id": "176075",

    "X-Con-U": "0-mail",

    "X-Originating-IP": "31.19.27.23"

  },

  "envelope": {

    "to": "[email protected]",

    "recipients": [

      "[email protected]"

    ],

    "from": "[email protected]",

    "helo_domain": "ms-10.1blu.de",

    "remote_ip": "178.254.4.101",

    "spf": {

      "result": "none",

      "domain": "nassenstein.net"

    }

  },

  "plain": "Hi,\n\nich habe ein neues Forum installiert, das einige zusätzliche Features\nbietet, u.A. integriert es eine Mailing Liste. :)\n\nWas ändert sich?\n\n* Du gehörst zu den auserwählten Teilnehmern für die sich fast nichts\nändert, da Du bereits registriert bist.\n* Der Content des bisherigen Forums wurde übernommen. Lediglich das\nErstellungs-Datum der Beiträge stimmt nicht.\n* Evtl. musst Du ein neues Avatar in Dein Profil einstellen und Deine\nProfildaten nachsehen. Dein sichtbarer Benutzername im Forum kann jetzt\nvon Dir editiert werden.\n* Natürlich ändert sich die Adresse der Mailing Liste:\[email protected]. Diese Adresse kannst Du auch für einen\nMail-Filter in Deinem eMail-Programm nutzen. Es ist die Absender- und\nEmpfänger-Adresse der Mailing Liste.\n\nEs geht noch ein zweites Mail an alle über die alte Mailing Liste, die\nDich aber nicht betrifft.\n\nBeste Grüße,\n\nHolger\n",

  "html": null,

  "reply_plain": "Hi,\n\nich habe ein neues Forum installiert, das einige zusätzliche Features\nbietet, u.A. integriert es eine Mailing Liste. :)\n\nWas ändert sich?\n\n* Du gehörst zu den auserwählten Teilnehmern für die sich fast nichts\nändert, da Du bereits registriert bist.\n* Der Content des bisherigen Forums wurde übernommen. Lediglich das\nErstellungs-Datum der Beiträge stimmt nicht.\n* Evtl. musst Du ein neues Avatar in Dein Profil einstellen und Deine\nProfildaten nachsehen. Dein sichtbarer Benutzername im Forum kann jetzt\nvon Dir editiert werden.\n* Natürlich ändert sich die Adresse der Mailing Liste:\[email protected]. Diese Adresse kannst Du auch für einen\nMail-Filter in Deinem eMail-Programm nutzen. Es ist die Absender- und\nEmpfänger-Adresse der Mailing Liste.\n\nEs geht noch ein zweites Mail an alle über die alte Mailing Liste, die\nDich aber nicht betrifft.\n\nBeste Grüße,\n\nHolger\n",

  "attachments": [



  ]

}
USING POST STREAM...
Title: Re: SMF Mailing List Mod
Post by: Cyberm@rmotte on September 09, 2014, 04:45:15 PM
Where can we get the latest testing version?
Title: Re: SMF Mailing List Mod
Post by: pftq on September 10, 2014, 12:06:02 PM
This is already in the mods directory (it's not a work-in-progress).
http://custom.simplemachines.org/mods/index.php?mod=2843
Title: Re: SMF Mailing List Mod
Post by: Cyberm@rmotte on September 10, 2014, 03:22:52 PM
Yeah but I tried on 2.0.8 and it doesn't work. I'm using not the email piping but the other method with the service you provide...
Title: Re: SMF Mailing List Mod
Post by: pftq on September 11, 2014, 01:15:50 AM
The service might have changed.  I personally use the email piping - that would be the ideal if you can set up your server to use that.  I'll check later when I have a chance.
Title: Re: SMF Mailing List Mod
Post by: Cyberm@rmotte on September 11, 2014, 03:13:43 AM
Yes but I checked on 1and1 and they do not support email piping.... ******.
Title: Re: SMF Mailing List Mod
Post by: mnn2 on October 05, 2014, 09:05:30 PM
@pftq

thanks for your mod. Please let me know where to make changes if I want 'Email to Edit' post functionality.  :)
Title: Re: SMF Mailing List Mod
Post by: pftq on October 06, 2014, 04:33:15 PM
emailpost.php is where incoming emails are handled.  Adding a case for calling SMF's modify functions will be the way to go.  Feel free to share if you get a generalizable update to the mod.
Title: Re: SMF Mailing List Mod
Post by: mnn2 on October 07, 2014, 01:48:14 PM
Hi pftq,

again thanks for your mod, although my usage is to enable posting to SMF forum via WinForm executable (an MS .net application). Here is how I do to modify existing SMF post.

Here is my code:


// Setup the variables.
$msgOptions = array(
'id' => (int)$_POST['MyyPostId'],//the SMF message id you want to modify
'subject' => $Subject200, //the post subject
'body' =>  $TopicContent201,//this is the content of your post
'smileys_enabled' => $EnableSmiley202, // put in 1 if you want to activate smiley, otherwise 0
'attachments' => $attachIDs,//this part I am not using
'modify_name' => $_POST['MyyPosterName'],//NOTE: will show the name as in  « Last Edit: Today at 08:04:00 pm by Administrator »
'modify_time' => time(),//NOTE: will show the time as in  « Last Edit: Today at 08:04:00 pm by Administrator »
);
$topicOptions = array(
'id' => $TopicId202,//the topic id you wanted to modify
'board' => $BoardId203,//board id of that topic
'mark_as_read' => false,//leave it as is
);
$posterOptions = array(
'id' => 2,//your SMF user id
'name' => 'Administrator',//your SMF user's real name
'email' => '[email protected]',//email address
'update_post_count' => 1,//leave it as is
'ip' => '120.0.0.1',//the ip address or simply put it '120.0.0.1'
);

$user_info['name']=$posterOptions['name'];

// now attempt to modify the post.
modifyPost($msgOptions, $topicOptions, $posterOptions);


Title: Re: SMF Mailing List Mod
Post by: pftq on October 13, 2014, 04:25:15 PM
Made a fix so that email threads started by guests send notifications to the guest as well (think ticketing support system).
Title: Re: SMF Mailing List Mod
Post by: pasht on October 21, 2014, 12:44:51 PM
Hi ptfq,
Thank you for working on this mod, it is a fantastic piece of work.  I am trying to create a new post with an attachment by sending an email with an attachment; the post is created and populated with the subject and body, but the attachment does not get posted to the forum.  I know that the README states that attachments are not allowed for security reasons, but throughout this thread it is mentioned that attachments ARE allowed and are functioning.

Is posting new topics with attachments allowed?
Thank you!
Title: Re: SMF Mailing List Mod
Post by: pftq on October 21, 2014, 04:09:33 PM
Yes they are implemented. You have to enable it in Admin > Features > MailingList.
Title: Re: SMF Mailing List Mod
Post by: pasht on November 21, 2014, 04:33:52 PM
Hi,
When a new post is made via SMF with no body but an attachment, the attachment is placed into the body in what appears to be MIME format, and is not attached as an attachment.  Ideas? Thanks :)
Title: Re: SMF Mailing List Mod
Post by: pasht on December 01, 2014, 11:55:43 AM
I was using hMailServer on Windows initially, and getting this problem.  I made a new Debian server from scratch so I could use postfix, and ended up with the exact same output to the SMF forum. 
Here's the test.txt output:

DEBUGGER -> Initiating...2014-11-24, 06:53:06

DEBUGGER -> Loading SSI...

DEBUGGER -> Beginning email parse...
DEBUGGER -> Reading standard input (email piping)...

Header[from] = "Pasht" <[email protected]>
Header[to] = "Test Bed" <[email protected]>
Header[message-id] = <MAL.3c7b49ff-5b31-4f0c-9f68-bc9786c66bff@lucy>
Header[subject] = Message from Pasht (1430)
Header[content-type] = audio/wav; name=VoiceMessage.wav
Header[content-transfer-encoding] = Base64

Sending to Board: 2, with prefix ``
Non-Default Address Used.  Checking "Test Bed" <[email protected]>
Comparing `[email protected]` to `[email protected]`
Not `[email protected]`.
Comparing `[email protected]` to `[email protected]`
Not `[email protected]`.
Isolated Email From = [email protected], Name = &quot;Pasht&quot;
DEBUGGER -> Non-Member: &quot;Pasht&quot;

DEBUGGER -> Message Boundary: 
DEBUGGER -> Attachments Boundary:

DEBUGGER -> Message Body:

UklGRoJQAABXQVZFZm10IBIAAAAHAAEAQB8AAEAfAAABAAgAAABmYWN0BAAAAFBQAABkYXRhUFAA
AP9+/////f////79/v///v3//v7//v7+/f///v39/v///f3+/////f3////9/f7//n3+/P/+///9
/X58fP/+/nx8f/z8fXh6/Pl8cm/37Xpvbvbs/3Rt+u/8e2/99fh/cP77+v9yfv3+/3Z8//9/en19
/395/358/nz//nx9//3/f3z//f//fP7/ff59ffx9fH57/n17/Ht9+nx+/Xz+/Xz+/Hn8+nT2/XHu
eHjtb/7xbvL7cfN4e/N3fPh6/f16ff3/fv5+fvr/evz9fvl9f/p9//1+//5///5///9//398fv98
//58fv/9fH76eX78d/z9d/h+fPl9f/p8ff58/P96/v99/n18/v//fH7/fP17fPx6//98/f9+f35/
fv7///9+/n9+/nz9/nr7f3r7fnv6fnr///9+/318+nt+/Xv8e/78fPv9f/z+/f7//P/+/P//fX76
e//7e//8fP79ff3+f/1///7//n79f3z+f3/9f3/8fX39fHz9fnz9/3r+fnz/fX99fX9+////fv7+
fv39/f1+//5+//59//18//58/f99/H9+/n7+fv/9ff/9ff9+fH5+f37/fH39en37en78eX/9e/1/
*SNIP*
fX5+fn5+fn59fn59fn59fn5+fn5+fn5+fn5+fX5+fn5+fX1+fn59fn59fn59fn5+fX7/fn5+fn5+
fn5+fn59fn59/359fn5+fn5+fX5+fn1+fn1+fn5+fn5+fn5+fX5+fn5+fX1+fn5+fn5+fn59fn59
fn59fn59fX5+fX5+fn5+/35+/35+fn5+fn59fv9+fn5+fX7/fn5+fn5+fn5+fn59fn59fn5+fn5+
fX5+fn7/fn5+fn5+fn18fn59fv9+fn5+fn5+fn5+fn1+fn5+fn5+fn5+fn59fH5+fX5+fn1+fn5+
/35+fn5+fn5+fn59fX5+fn5+fn5+fXx+fn5+fn5+fv9+fn5+fX7/fX5+fX5+fn5+fn1+fn1+fn59
fv9+fn5+fn7/fn1+fn1+fn1+fn59fv9+fn5+fX5+fX5+fn5+fX1+fn5+fn59fv9+fn59fn5+fX7/
fn5+fn1+fn59fn19fn59fn59fX5+fX5+fn5+fn5+/35+fn59fn59//9+fn5+fX7/fn7/fn19fn19
fn59fn5+fn59fn59fX5+fn5+fn5+fn1+/35+fn5+fv9+fn59fX5+fX5+fn1+fn1+fn5+fn5+fn5+
fn5+fn7/fn5+fn5+fn5+fn59fn5+fn59fX5+fX5+fn5+fn5+fn1+/35+fn18fn59fn5+fn5+fX5+
fn5+fn5+fn5+fn59fn59fn5+fn5+fn5+fn1+fn1+////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////8=




DEBUGGER -> CONTENT-TYPE NOT MULTIPART, USING HEADER: audio/wav; name=VoiceMessage.wav
CONTENT-TYPE PLAINTEXT and CHARSET



DEBUGGER -> Checking that line break exists between headers and content.



DEBUGGER -> HEADERS PULLED OUT FOR CURRENT MESSAGE FORMAT:



DEBUGGER -> SELECTING EMAIL FORMAT: PLAINTEXT


UklGRoJQAABXQVZFZm10IBIAAAAHAAEAQB8AAEAfAAABAAgAAABmYWN0BAAAAFBQAABkYXRhUFAA
AP9+/////f////79/v///v3//v7//v7+/f///v39/v///f3+/////f3////9/f7//n3+/P/+///9
/X58fP/+/nx8f/z8fXh6/Pl8cm/37Xpvbvbs/3Rt+u/8e2/99fh/cP77+v9yfv3+/3Z8//9/en19
/395/358/nz//nx9//3/f3z//f//fP7/ff59ffx9fH57/n17/Ht9+nx+/Xz+/Xz+/Hn8+nT2/XHu
*SNIP*
fn5+fn1+fn59fn19fn59fn59fX5+fX5+fn5+fn5+/35+fn59fn59//9+fn5+fX7/fn7/fn19fn19
fn59fn5+fn59fn59fX5+fn5+fn5+fn1+/35+fn5+fv9+fn59fX5+fX5+fn1+fn1+fn5+fn5+fn5+
fn5+fn7/fn5+fn5+fn5+fn59fn5+fn59fX5+fX5+fn5+fn5+fn1+/35+fn18fn59fn5+fn5+fX5+
fn5+fn5+fn5+fn59fn59fn5+fn5+fn5+fn1+fn1+////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////8=




DEBUGGER -> ENCODING DETECTED IN HEADER: Base64



DEBUGGER -> DECODING EMAIL: Base64


UklGRoJQAABXQVZFZm10IBIAAAAHAAEAQB8AAEAfAAABAAgAAABmYWN0BAAAAFBQAABkYXRhUFAA
AP9+/////f////79/v///v3//v7//v7+/f///v39/v///f3+/////f3////9/f7//n3+/P/+///9
/X58fP/+/nx8f/z8fXh6/Pl8cm/37Xpvbvbs/3Rt+u/8e2/99fh/cP77+v9yfv3+/3Z8//9/en19
/395/358/nz//nx9//3/f3z//f//fP7/ff59ffx9fH57/n17/Ht9+nx+/Xz+/Xz+/Hn8+nT2/XHu
*SNIP*
fn5+fn1+fn59fn19fn59fn59fX5+fX5+fn5+fn5+/35+fn59fn59//9+fn5+fX7/fn7/fn19fn19
fn59fn5+fn59fn59fX5+fn5+fn5+fn1+/35+fn5+fv9+fn59fX5+fX5+fn1+fn1+fn5+fn5+fn5+
fn5+fn7/fn5+fn5+fn5+fn59fn5+fn59fX5+fX5+fn5+fn5+fn1+/35+fn18fn59fn5+fn5+fX5+
fn5+fn5+fn5+fn59fn59fn5+fn5+fn5+fn1+fn1+////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////8=




DEBUGGER -> Converted to post: PLAINTEXT

UklGRoJQAABXQVZFZm10IBIAAAAHAAEAQB8AAEAfAAABAAgAAABmYWN0BAAAAFBQAABkYXRhUFAA
AP9+/////f////79/v///v3//v7//v7+/f///v39/v///f3+/////f3////9/f7//n3+/P/+///9
/X58fP/+/nx8f/z8fXh6/Pl8cm/37Xpvbvbs/3Rt+u/8e2/99fh/cP77+v9yfv3+/3Z8//9/en19
/395/358/nz//nx9//3/f3z//f//fP7/ff59ffx9fH57/n17/Ht9+nx+/Xz+/Xz+/Hn8+nT2/XHu
eHjtb/7xbvL7cfN4e/N3fPh6/f16ff3/fv5+fvr/evz9fvl9f/p9//1+//5///5///9//398fv98
//58fv/9fH76eX78d/z9d/h+fPl9f/p8ff58/P96/v99/n18/v//fH7/fP17fPx6//98/f9+f35/
*SNIP*
fn59fn59fX5+fX5+fn5+/35+/35+fn5+fn59fv9+fn5+fX7/fn5+fn5+fn5+fn59fn59fn5+fn5+
fX5+fn7/fn5+fn5+fn18fn59fv9+fn5+fn5+fn5+fn1+fn5+fn5+fn5+fn59fH5+fX5+fn1+fn5+
/35+fn5+fn5+fn59fX5+fn5+fn5+fXx+fn5+fn5+fv9+fn5+fX7/fX5+fX5+fn5+fn1+fn1+fn59
fv9+fn5+fn7/fn1+fn1+fn1+fn59fv9+fn5+fX5+fX5+fn5+fX1+fn5+fn59fv9+fn59fn5+fX7/
fn5+fn1+fn59fn19fn59fn59fX5+fX5+fn5+fn5+/35+fn59fn59//9+fn5+fX7/fn7/fn19fn19
fn59fn5+fn59fn59fX5+fn5+fn5+fn1+/35+fn5+fv9+fn59fX5+fX5+fn1+fn1+fn5+fn5+fn5+
fn5+fn7/fn5+fn5+fn5+fn59fn5+fn59fX5+fX5+fn5+fn5+fn1+/35+fn18fn59fn5+fn5+fX5+
fn5+fn5+fn5+fn59fn59fn5+fn5+fn5+fn1+fn1+////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////8=

DEBUGGER -> Passed user permissions check. Posting... Message from Pasht (1430)

DEBUGGER -> Posted.  Checking format...

DEBUGGER -> POST IS OK!


I also tried having the message sent to another email address where a client was set up with a rule to forward the email to the SMF MLM piped address in the hopes that the client would re-assemble the message in such a way that the body and attachment were more distinct.  That resulted in the post being "This is a multi-part message in MIME format" with no attachment.  I'm guessing I don't have postfix set up quite right in that instance.
Title: Re: SMF Mailing List Mod
Post by: Miker1029 on July 07, 2015, 03:42:15 PM
Hey all,

   It's telling me that this hasn't been posted in for 120 days (or more), But to be honest I can't find the right place to post this....

OK, SO, HERE's the Question, I've Installed this MOD, and It's working, I Have Piping setup through my server, But I want the reply to the E-Mails to go to "[email protected]", am I understanding correctly the I need to Change my "[email protected]" e-mail in Server Settings??

If Not, It's not posting to the Froum from E-Mail reply..

If So, Is there a way around this (other then using that 3rd party link) as I use that E-mail for ALL my Forum Notifs....

Any help appreciated...

Mike

EDIT:

Ya this doesn't make sense how can I change my Server Setting e-mail Address to the Piped E-Mail Address?!?!?  That means ALL my Mail is going to get piped to the email

This is what I get when I try to reply via [email protected]

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  pipe to |/home/mike***/public_html/emailpost.php
Title: Re: SMF Mailing List Mod
Post by: pftq on July 07, 2015, 04:13:05 PM
Your server email needs to be what you want people to reply to.  This is the same email you set up piping for.  If you get an error when replying, check that your host lets you run scripts like this and what settings you might need.  For example, my host requires I reference the PHP install at the top of the script with the line "#!/usr/bin/php -q"

You can check here for a test board on how it should work (it's pretty much like Googlegroups):
http://www.pftq.com/forums/index.php?board=59.0
Title: Re: SMF Mailing List Mod
Post by: Miker1029 on July 07, 2015, 05:21:30 PM
Ok I kind of got it working, Doing some trouble shooting now...

But to be Clear (And I've been getting double posts and thinking this may be why)

my Server Settings E-Mail where I get New User Sign ups and All that can stay the same "[email protected]"

And I can set up the PIPE on Cpanel (which is done) to "[email protected]"

And yes my Server (surprisingly the more stuff I do) lets me do all this...

I've just switched my Server E-mail Back to "[email protected]" and am going back in to test...

And Ya I went there and was gonna post some questions (after I did some searching) on What the Settings In the MOD DO...

Will CHeck back in a let ya know...

Thanks for the reply

Mike
Title: Re: SMF Mailing List Mod
Post by: Miker1029 on July 07, 2015, 05:43:42 PM
ok here seems to be the issue at the moment, I have my E-mail setup through my hosts SMTP Server, as I said "[email protected]" in server settings, for Forum Admin Stuff, Logically....

SO, Basically my problem is, (for testing the mod and trying to get it to work) I had changed Server Email to [email protected], and the PIPE set to the same address, Which Worked (Think it was double posting, ill get to that when this is/can-be fixed)..

NOW I changed Server Mail BACK to [email protected], for my Admin Mails, and left the PIPE the same, That didn't work,  So I added THE pipe for the mod to [email protected], and sent myself a test email through the forum, it worked, but the pipe bounced (of course)....

What I'd like to try and Accomplish, is have the PIPE set to something like "[email protected]", and have the Server Email for Admin Stuff to "[email protected]"

Is there a way to do this, and if so can you explain it?!?!?

If Not, How do you suggest I set it up, so I can have my Admin Emails, and forum post/reply e-mails seperate?!?!?

I noticed on your Test Board that you have "Send emails to [email protected]" as your E-mail PIPE, and I'm sure you don't have your Admin Server Setting email going there......

So what Am I missing here?????   i know it's gotta be something....

Thanks,

Mike
Title: Re: SMF Mailing List Mod
Post by: Miker1029 on August 19, 2015, 01:35:19 PM
Hey,

Just an Update on the Above issue, The Problem was the hash bang, My Host will automatically FIX it if it's wrong and in doing so the -q is not sent to the PHP, When the Hashbang was fixed in the script everything worked fine...

Mike
Title: Re: SMF Mailing List Mod
Post by: Jeff_B on January 20, 2016, 11:24:31 PM
Hey folks - sorry for dredging this thread up but I'm having an issue with the mod.

I just installed a fresh copy of SMF 2.0.11 and installed this mod.

I followed the direction and I keep getting the following message when I try to REPLY to an existing thread. I can post new threads without an error.

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 6
File: /home/rchel320/public_html/wpgfpvclub/Sources/Subs-Post.php
Line: 1598

I've restored that file several times now and redid the changes carefully and keep coming up with the same issue.

The only other things I've installed were a few themes but I've reverted to the default curve theme and still getting the same message.

Here's some other information that may help:

Apache Version   2.2.31
PHP Version   5.5.29
MySQL Version   5.5.47-cll

Any ideas?

Title: Re: SMF Mailing List Mod
Post by: Jeff_B on January 21, 2016, 12:46:55 AM
Disregard. I have fixed the issue ... apparently you have to click every single option and save for the mod, the unclick the ones you don't want and save again.
Title: Re: SMF Mailing List Mod
Post by: SMiFFER on February 25, 2017, 03:35:26 PM
I have downloaded the mod and installed it.

But is there really no documentation or step-by-step-instructions on how to configure this nice tool?
Title: Re: SMF Mailing List Mod
Post by: viking9 on February 13, 2024, 05:03:14 PM
1. Will this mod work with SMF v2.018?

2. The latest version of the "SMF Mailing List Mod" is supposedly v2.012. However, when I download it, it is v2.03.
Title: Re: SMF Mailing List Mod
Post by: Kindred on February 13, 2024, 08:47:28 PM
1- probably. But you should upgrade to 2.0.19 first

2-  2.03 was updated in August of 2020 and is the last update. Where did you get the 2.012 number?
Title: Re: SMF Mailing List Mod
Post by: viking9 on February 13, 2024, 09:16:14 PM
Quote from: Kindred on February 13, 2024, 08:47:28 PM1- probably. But you should upgrade to 2.0.19 first

2-  2.03 was updated in August of 2020 and is the last update. Where did you get the 2.012 number?
1. Why upgrade to 2.0.19?

2. Here https://custom.simplemachines.org/index.php?mod=2843 (it shows latest is 2.012)
Title: Re: SMF Mailing List Mod
Post by: Kindred on February 13, 2024, 10:51:45 PM
1- because  2.0.18 does not support modern php versions and there are security patches.
Honestly,  you SHOULD br planning to upgrade to 2.1.4, since 2.0.x is almost eol.

2- ah... I'd say the author updated the version incorrectly there 2.03 is the latest mentioned