SID-00051: SendEmailPluginFailure
| Status: |
Answered |
TWiki version: |
4.2.2 |
Perl version: |
Perl 5.8.8 |
| Category: |
SendEmailPlugin |
Server OS: |
Windows 2003 |
Last update: |
17 years ago |
Loaded the
SendEmailPlugin and pasted the sample page to test and it fails. I turned on debug and the code does not get too far, but it seems to pass the check of the TO email address against the permissions (I believe it passes because if I kill the permission I get a page back saying it did not match the permissions). The debug log gives no insight...
| 23 Jan 2009 - 13:40 | SendEmailPlugin -- called matchesPreference(ALLOW, MAILTO, t@cisco.com)
| 23 Jan 2009 - 13:40 | SendEmailPlugin -- pattern=(*)
The web log has alot of information but I can't translate it...
[Fri Jan 23 13:41:54 2009] [error] [client 10.82.250.21] \tTWiki::Plugins::SendEmailPlugin::Core::matchesPreference('ALLOW', 'MAILTO', 'tbacon@cisoc.com') called at c:\\PROGRA~1\\TWiki\\twiki\\lib/TWiki/Plugins/SendEmailPlugin/Core.pm line 123, referer: http://npo-tools1.cisco.com/twiki/bin/view/Sandbox/TestTest
[Fri Jan 23 13:41:54 2009] [error] [client 10.82.250.21] \tTWiki::Plugins::SendEmailPlugin::Core::sendEmail('TWiki=HASH(0x1956090)') called at c:\\PROGRA~1\\TWiki\\twiki\\lib/TWiki/UI.pm line 159, referer: http://npo-tools1.cisco.com/twiki/bin/view/Sandbox/TestTest
[Fri Jan 23 13:41:54 2009] [error] [client 10.82.250.21] \tTWiki::UI::__ANON__() called at c:\\PROGRA~1\\TWiki\\twiki\\lib/CPAN/lib//Error.pm line 379, referer: http://npo-tools1.cisco.com/twiki/bin/view/Sandbox/TestTest
[Fri Jan 23 13:41:54 2009] [error] [client 10.82.250.21] \teval {...} called at c:\\PROGRA~1\\TWiki\\twiki\\lib/CPAN/lib//Error.pm line 371, referer: http://npo-tools1.cisco.com/twiki/bin/view/Sandbox/TestTest
[Fri Jan 23 13:41:54 2009] [error] [client 10.82.250.21] \tError::subs::try('CODE(0x22806c)', 'HASH(0x219a2ec)') called at c:\\PROGRA~1\\TWiki\\twiki\\lib/TWiki/UI.pm line 197, referer: http://npo-tools1.cisco.com/twiki/bin/view/Sandbox/TestTest
[Fri Jan 23 13:41:54 2009] [error] [client 10.82.250.21] \tTWiki::UI::run('CODE(0x19156d8)', 'sendEmail', 1) called at C:/Program Files/TWiki/twiki/bin/sendemail line 32, referer: http://npo-tools1.cisco.com/twiki/bin/view/Sandbox/TestTest
All thoughts appreciated. One note is the script would not run until I changed the opening script line, it did not use a fully specified name to get to the perl executable, I had to add a C: to the front. Maybe this is a clue to why it won't run completely!
--
TimBacon - 23 Jan 2009
Discussion and Answer
I found my problem... The first issue was I was not reading far enough back in the Apache log. A few lines above it stated it was a regex problem, I was missing something. And given that failure was at the matching of the to address, I looked at my allow/deny lines and it turned out I had only a * when what I really needed was a .*!
--
TimBacon - 23 Jan 2009
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.