Tags:
create new tag
view all tags

Question

I have a problem with sendEmail in mailnotify. I'm testing it by running it manually in the /bin directory. It works fine for notifying of registered users. But in mailnotify I get this error: '-' is not recognized as an internal or external command, operable program or batch file. No email is sent. I added a line to print out $text. It looks ok as far as I can tell but I'm not an expert. When I strip off the header stuff the .html looks good in my browser. Any suggestions for further debugging would be appreciated.

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Windows NT
Web server: Apache 2.0.52
Perl version: ActivePerl 5,8,4
Client OS: Windows NT
Web Browser: IE 6.0
Categories: Mail

-- JerryHale - 15 Dec 2004

Answer

As a first step, post your TWiki.cfg and testenv HTML as attachments, as mentioned in SupportGuidelines, and also post the contents of the email setup of TWikiPreferences.

-- RichardDonkin - 16 Dec 2004

I seem to have solved it somehow. I added Set SMTPMAILHOST = mail

-- JerryHale - 21 Dec 2004

Topic attachments
I Attachment History Action Size Date Who Comment
Texttxt Messagesfrommailnotify.txt r2 r1 manage 1.0 K 2004-12-16 - 18:36 UnknownUser windows command prompt messages when running mailnotify
Unknown file formatcfg TWiki.cfg r1 manage 23.6 K 2004-12-16 - 18:15 UnknownUser  
Texttxt TWikiPreferences.txt r1 manage 18.3 K 2004-12-16 - 18:20 UnknownUser  
HTMLhtm TestTWikienvironment.htm r1 manage 14.2 K 2004-12-16 - 18:17 UnknownUser  
Unknown file formatext mailnotify r1 manage 7.4 K 2004-12-16 - 18:28 UnknownUser I added debug to print $text
Texttxt mailnotify_test.txt r1 manage 16.3 K 2004-12-16 - 18:27 UnknownUser output from mailnotify include debug printout of $text
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2004-12-21 - JerryHale
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.