SID-00260: Mailnotify works except news
| Status: |
Answered |
TWiki version: |
4.2.3 |
Perl version: |
5.6.1 |
| Category: |
MailerContrib |
Server OS: |
Windows Server 2000 |
Last update: |
16 years ago |
Mailnotify is working for all my webs. Today I created a newsletter page and a cron job to send (added -news to the existing crontab job). Even though there is a topic that I've subscribed to that has changed, I get errors on the -news run as follows:
ERROR: Can't send mail, missing 'From:' at D:\twiki\lib/TWiki/Net.pm line 381.
ERROR: Can't send mail, missing 'From:' at D:\twiki\lib/TWiki/Net.pm line 381.
ERROR: Can't send mail, missing 'From:' at D:\twiki\lib/TWiki/Net.pm line 381.
ERROR: Can't send mail, missing 'From:' at D:\twiki\lib/TWiki/Net.pm line 381.
Too many failures sending mail
My normal (without -news option) webnotifies all work. This only happens if I add the -news option. For testing, I ensured that the page I had subscribed to had changed. Also, this is running by itself (not at the same time as another cron job).
The complete command line is:
c:\perl\bin\perl -I d:\twiki\bin d:\twiki\tools\mailnotify -news
This is in a Windows environment.
--
PaulOpitz - 2009-04-09
Discussion and Answer
Despite the instructions specifically saying:
- If %STARTPUBLISH% is the first control tag seen in the file, everything before it will be ignored.
In fact, if you want to ignore the first part of a topic, a %STOPPUBLISH% is needed at the beginning of the topic. (At least, doing that solved my problem...)
--
PaulOpitz - 2009-04-16
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.