[pmwiki-users] Mailposts messages not arriving at $MailPostsTo list

David Sovinski aslan at aslandata.com
Thu Aug 25 09:56:49 CDT 2005


Sorry! Copy/Paste put in too much info and could be confusing

David Sovinski (caspian)

Daniel

Thank you for your answer! It did answer another question I had.

However (and I'm talking about beta54 others versions are unknown) I 
found that the whole piece of code you provided can be ommitted and and 
mailposts still works just fine.
Merely having the PerGroup file(s) (like Main.php) in /local that contains

<?php if (!defined('PmWiki')) exit();

$EnableMailPosts=1;                   # to enable mailposts
$MailPostsTo="xxx at mail1.com, yyy at mail2.com, zzz at mail3.com";  # where to 
send mail
$MailPostsFrom="bbb at mail4.com";
$MailPostsDelay=1800;                 # wait 30+ minutes after initial post
$MailPostsSquelch=7200;               # require 2+ hours between mails

lets the mailposts script run as described! The script Main.php seems to 
be run when a Main group page is accessed.
No explicit declaration of mailposts.php in the config.php is necessary.

David Sovinski (Caspian)


> I think the problem is, that the $MailPostsTo variable have to
> declared before "include_once("scripts/mailposts.php");"
>
> The PerGroup config files are included after execution of 
> local/config.php.
> In my farm I installed a solution where in my local/config.php is a 
> block like
>
> <config.php>
>
> [... part before execution of PerGroup and PerPage customization ...]
>
> if (file_exists("local\$group.php")) {
>  include_once("local\$group.php");
> }
> if (file_exists("local\$group.$page.php")) {
>  include_once("local\$group.$page.php");
> }
>
> include_once("scripts/mailposts.php");
>
> [... other parts after execution of PerGroup and PerPage customization 
> ...]
>
> </config.php>
>
> I couldn't sent the correct code, because of being at a buisiness trip
> without my own laptop. But I hope, I could help you a little bit.
>
> Greets,
>
> scheiby.
>  
>

>
>





More information about the pmwiki-users mailing list