How to include ALL of text in email notifications to those subscribed to a topic? [message #31787] |
Thu, 18 May 2006 03:44 |
|
Good afternoon!
Can someone please clarify this for me:
When a member of a message board replies to a post, an email notification is sent to those who are subscribed to that topic.
What setting in what section of the the ACP allows me to make sure that the email notification includes ALL of the message? i.e. all the text of the message board post.
Thanks.
CelebrateCapitalism.ORG
"Why? Because I own my life!"
* * * * * * * * * * * * * * * * *
phpBB? Invision Power Board? vBulletin?
Yes, all excellent. But The FUD is my favorite! Try it now @ http://FUDForum.org
[Updated on: Thu, 18 May 2006 03:56] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: How to include ALL of text in email notifications to those subscribed to a topic? [message #33241 is a reply to message #33239] |
Mon, 21 August 2006 13:43 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
The description of the bit masks of users_opt is described inside fud_users.tbl which can be found inside sql/ directory. As far as the message notification thing, inside the approve() method look for the /* handle notifications */ comment, to do what you need you'll need to adjust the SQL queries in that block. Using imsg_edt.inc.t inside the stock forum for reference will probably help you out.
FUDforum Core Developer
|
|
|
|
|
|
|
Re: How to include ALL of text in email notifications to those subscribed to a topic? [message #33287 is a reply to message #33279] |
Wed, 23 August 2006 17:09 |
ky@smi
Messages: 27 Registered: June 2006
Karma: 0
|
Junior Member |
|
|
Hi Ilia,
I've been going through the /*handle notifications */ code in approve() and comparing the EGW version with the fudforum2 version. As far as I can figure setting the "All Message Forum Notification" forces execution of the /*send new thread notifications to forum subscribers*/ for new threads and sets $notify_type to 'frm', so creating a new thread should notify all users of the forum. The problem I come to is that the EGW version only seems to send notifications to one user...whomever comes out first in the SQL query. I can't seem to get lists of users notified, even though all 4 users that I am testing with have different email addresses and are subscribed to the forum.
I'm also having problems seeing how the PHP and SQL execute... . I'm pretty new to this stuff. So I put in a debug line that writes a file:
file_put_contents("to.txt",sprintf("notify_type: %s\nto: %s\n",$notify_type,$to['EMAIL']));
to see the list...and I get one address, when there should be 4 or 5...and only one user, the user with the email that comes up in the to.txt file gets notified. The notify type is ok..it shows "frm". I tried the same trick in the full version, and I get a list of users out. I had not modified the SQL code but only added the debug line and only created a new thread in the forum.
Any ideas?
|
|
|
|
|
|
|
|
|
|
|
Re: How to include ALL of text in email notifications to those subscribed to a topic? [message #33387 is a reply to message #33386] |
Tue, 29 August 2006 15:10 |
ky@smi
Messages: 27 Registered: June 2006
Karma: 0
|
Junior Member |
|
|
Hi Again,
My new problem is that I'm having problems with the headers going to mail(). If I include
mail($to, $subj, str_replace("\r", "", $body), "From: ".$from."\nErrors-To: ".$from."\nReturn-Path: ".$from."\nX-Mailer: FUDforum v".$GLOBALS['FORUM_VERSION'].$header.$bcc);
I cannot see the email because of an error in the header. If I strip the header to only the BCC,
mail($to, $subj, str_replace("\r", "", $body), $bcc);
then none of the MIME works, but I can read the email.
|
|
|
Re: How to include ALL of text in email notifications to those subscribed to a topic? [message #33390 is a reply to message #33387] |
Tue, 29 August 2006 17:50 |
ky@smi
Messages: 27 Registered: June 2006
Karma: 0
|
Junior Member |
|
|
ky@smi wrote on Tue, 29 August 2006 17:10 | Hi Again,
My new problem is that I'm having problems with the headers going to mail(). If I include
mail($to, $subj, str_replace("\r", "", $body), "From: ".$from."\nErrors-To: ".$from."\nReturn-Path: ".$from."\nX-Mailer: FUDforum v".$GLOBALS['FORUM_VERSION'].$header.$bcc);
I cannot see the email because of an error in the header. If I strip the header to only the BCC,
mail($to, $subj, str_replace("\r", "", $body), $bcc);
then none of the MIME works, but I can read the email.
|
I guess I should quantify the error I'm getting. My email client says "Empty or Malformed message". It seems to skip the plain text and html message and directly transfer encodes with BASE64.
|
|
|