[pmwiki-users] notify problem
Tom Lederer
celok at gmx.net
Fri Sep 22 20:46:44 CDT 2006
Hmm... now it works... all of the sudden.
What i did is change in notify.php
mail($m, $subject, $mbody, $NotifyHeaders, $NotifyParameters);
to
mail($m, $subject, $mbody, $NotifyHeaders);
Now i do not understand:
1. how that should affect the function
2. why it works on my other installations, and everyone else's
Anyone got an idea?
$NotifyParameters is empty btw, as in ''. (added it to the subject
for testing)
Best Regards,
Tom
--
Tom
http://www.celok.de
Am 23.09.2006 um 02:55 schrieb Tom Lederer:
> Ok.. next try..
>
> if i set squelch to a higher value, the .notifylist gets filled:
>
> 1159059193 0
> a:2:{s:0:"";a:4:{s:8:"lastmail";i:1158972714;i:0;s:55:"+%2A
> +Vampire.Start+.+.+.+23.09.2006+um+02.52+Uhr+by+Tom";i:1;s:57:"+%2A
> +Vampire.Spieler+.+.+.+23.09.2006+um+02.53+Uhr+by+Tom";i:2;s:57:"+%
> 2A+Vampire.Spieler+.+.+.+23.09.2006+um+02.53+Uhr+by+Tom";}s:
> 12:"tom at celok.de";a:4:{s:8:"lastmail";i:1158972714;i:0;s:55:"+%2A
> +Vampire.Start+.+.+.+23.09.2006+um+02.52+Uhr+by+Tom";i:1;s:57:"+%2A
> +Vampire.Spieler+.+.+.+23.09.2006+um+02.53+Uhr+by+Tom";i:2;s:57:"+%
> 2A+Vampire.Spieler+.+.+.+23.09.2006+um+02.53+Uhr+by+Tom";}}
>
>
> Does that look ok?
>
> Best Regards,
> Tom
> --
>
> Tom
> http://www.celok.de
>
>
> Am 23.09.2006 um 02:01 schrieb Tom Lederer:
>
>> Yes that squelch of one second is intended... for testing reasons.
>> However i still get not mail from the notify script... the others
>> (Test unten, Hallo) now arrive within seconds of each page access.
>>
>> *shrug* i am really really clueless.. i started deactivating
>> everything else from the config.php.. but nothing helped yet.
>>
>> --
>>
>> Tom
>> http://www.celok.de
>>
>>
>> Am 23.09.2006 um 01:58 schrieb Patrick R. Michaud:
>>
>>> On Sat, Sep 23, 2006 at 12:54:39AM +0200, Tom Lederer wrote:
>>>> This is really weird...
>>>>
>>>> Now somehow (magically) this works, and sends me an email every
>>>> time
>>>> a page is accessed:
>>>>
>>>> $empfaenger = 'tom at celok.de';
>>>> $betreff = 'Test unten';
>>>> $nachricht = 'Hallo';
>>>> mail($empfaenger, $betreff, $nachricht);
>>>>
>>>> And i reduced the notify part to:
>>>>
>>>> $EnableNotify = 1;
>>>> $NotifySquelch = 1;
>>>> $NotifyList[] = 'notify=tom at celok.de';
>>>>
>>>> And .notifylist looks like this:
>>>>
>>>> 1159051892 0
>>>> a:0:{}
>>>>
>>>> I am clueless....*sob*
>>>
>>> With a $NotifySquelch setting of 1 (that is, one second), the
>>> .notifylist file will nearly always be empty, because PmWiki will
>>> be able to immediately send out messages as soon as updates are
>>> received. In other words, you'll typically get a separate email
>>> per update.
>>>
>>> Does this mean that you're now getting notify messages, or is that
>>> part still not working?
>>>
>>> Pm
>>>
>>>
>>>> Am 23.09.2006 um 00:29 schrieb Patrick R. Michaud:
>>>>
>>>>> On Fri, Sep 22, 2006 at 06:06:33PM -0400, The Editor wrote:
>>>>>> Can you explain where to set that? I'm running apache with php.
>>>>>
>>>>> You can put the line in the local/config.php:
>>>>>
>>>>> ini_set('SMTP', 'smtp.example.com');
>>>>>
>>>>>> I do know where my php config file is but didn't find a line
>>>>>> resembling the above. I did find:
>>>>>>
>>>>>> [mail function]
>>>>>> ; For Win32 only.
>>>>>> SMTP = localhost
>>>>>> smtp_port = 25
>>>>>>
>>>>>> ; For Win32 only.
>>>>>> ;sendmail_from = me at example.com
>>>>>>
>>>>>> Dare I change it there?
>>>>>
>>>>> Yes, you can change it in the PHP configuration file as well,
>>>>> but I prefer to do it in the local/config.php file.
>>>>>
>>>>> Pm
>>>>>
>>>>>
>>>>>> On 9/22/06, Patrick R. Michaud <pmichaud at pobox.com> wrote:
>>>>>>> On Fri, Sep 22, 2006 at 05:33:14PM -0400, The Editor wrote:
>>>>>>>> Just a thought, but can you send emails from any of the other
>>>>>>>> recipes
>>>>>>>> on PmWiki? I have yet been unable to get my home (Windows)
>>>>>>>> system to
>>>>>>>> work right because of a php problem or something--but my linux
>>>>>>>> webserver works fine. I think by default php does not send
>>>>>>>> mail
>>>>>>>> without a fix on windows machines. That has nothing to do with
>>>>>>>> PmWiki.
>>>>>>>
>>>>>>> In order to send mail under windows, one usually has to set
>>>>>>> the 'SMTP' configuration option. This can typically be done
>>>>>>> with
>>>>>>>
>>>>>>> ini_set('SMTP', 'smtp.example.com');
>>>>>>>
>>>>>>> Replace 'smtp.example.com' with the name of your outgoing mail
>>>>>>> server.
>>>>>>>
>>>>>>> Pm
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> pmwiki-users mailing list
>>>>>> pmwiki-users at pmichaud.com
>>>>>> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> pmwiki-users mailing list
>>>>> pmwiki-users at pmichaud.com
>>>>> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>>>>>
>>>>
>>>>
>>>
>>
>
More information about the pmwiki-users
mailing list