Tags:
create new tag
view all tags

SID-01164: Can't send mail with SendEmailForm

Status: Answered Answered TWiki version: 5.0.2 Perl version: v5.10.1 (*) built for x86_64-linux-gnu-thread-multi
Category: SendEmailPlugin Server OS: Ubuntu 10.04.2 2.6.32-31-server Last update: 12 years ago

When I try to send a mail I see:

"Not Found

The requested URL /bin/sendemail/Sandbox/TestTopic3 was not found on this server." But this is not Eror 404, because when I point browser to https://twiki.domain.com/bin/sendemailSALT I see:

"Not Found

The requested URL /bin/sendemailSALT was not found on this server. Apache/2.2.14 (Ubuntu) Server at twiki.ektos.net Port 443"

Twiki 5, Apache. Plug-in test successful. Apache error.log doesn't contain any message regarding this. access.log contain only records with 404 code. So I think this is a Twiki message. How to fix this error?

-- MaximStrukov - 2011-05-04

Discussion and Answer

Have you checked the maillog that if any log appears there? What path you have set in configure for mailprogram?

-- FarzanQureshi - 2011-05-05

Hello. Have you installed any MTA (sendmail, postfix, exim, qmail, etc...)? I am not sure if it is installed by default.

https://help.ubuntu.com/10.04/serverguide/C/postfix.html

-- EnriqueCadalso - 2011-05-05

Why this URL? It is supposed to be just !https://twiki.domain.com/bin/sendemail

-- PeterThoeny - 2011-05-07

Have an installed sendmail on the server. Work with twiki, all ok. Sendmail logs - empty for this task.

https://twiki.domain.com/bin/sendemail don't work:

"Not Found

The requested URL /bin/sendemail was not found on this server."

/bin/sendemail/Sandbox/TestTopic3 from the form also don't work:

"Not Found

The requested URL /bin/sendemail/Sandbox/TestTopic3 was not found on this server."

cat /var/www/twiki/bin/sendemail

#!/usr/bin/perl -wT
#
# Script for TWiki Enterprise Collaboration Platform, http://TWiki.org/
#
# Copyright (C) 2007-2011 TWiki Contributors.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version. For
# more details read LICENSE in the root of this distribution.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# As per the GPL, removal of this notice is prohibited

BEGIN {
if ( defined $ENV{GATEWAY_INTERFACE} or defined $ENV{MOD_PERL} ) {
$TWiki::cfg{Engine} = 'TWiki::Engine::CGI';
use CGI::Carp qw(fatalsToBrowser);
$SIG{__DIE__} = \&CGI::Carp::confess;
}
else {
$TWiki::cfg{Engine} = 'TWiki::Engine::CLI';
require Carp;
$SIG{__DIE__} = \&Carp::confess;
}
$ENV{TWIKI_ACTION} = 'sendemail';
@INC = ('.', grep { $_ ne '.' } @INC);
require 'setlib.cfg';
}

use TWiki;
use TWiki::UI;
$TWiki::engine->run();

But if I change $ENV{TWIKI_ACTION} = 'sendemail'; to $ENV{TWIKI_ACTION} = 'view'; then https://twiki.domain.com/bin/sendemail works like as https://twiki.domain.com/bin/view so my Apache can access to this file and found.

I think the problem somewhere inside the plug or Twiki, but not in the server configuration.

-- MaximStrukov - 2011-05-10

Hi,

I have the same problem with 5.0.2 under Solaris 10.

Both "sendemail" and "view" don't work, in the case of "view" no error but no mail is sent.

I tried using $mailprogram Net::smtp & sendmail

-- FredericBourdon - 2011-06-23

Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the TWiki consultants if you need timely help. We invite you to get involved with the community, it is more likely you get community support if you support the open source project!

-- PeterThoeny - 2011-08-01

This is probably because the Switchboard configuration is missing from their LocalSite.cfg. I just had the problem ("Not found..."), and it was a bear figuring it out.

$TWiki::cfg{SwitchBoard}{sendemail} = [
          'TWiki::Plugins::SendEmailPlugin::Core',
          'sendEmail',
          {
            'sendemail' => 1
          }
        ];

-- AaronLWalker - 2012-02-28

what should I do if I use sendmail?

i.e. my setting:

{MailProgram} /usr/sbin/sendmail -t -oi -oeq

and I have such error: errorStatus=2

I found post here: http://twiki.org/cgi-bin/view/Plugins/SendEmailPluginDev

errorStatus=2 means there is an error. The plugin uses Net:SMTP, so check your configure settings under Mail and Proxies. {SMTP}{SENDERHOST}, {SMTP}{Username} and {SMTP}{Password} need to be set.

-- Pavel Patcheptsov - 2013-01-25

I second Aaron's answer; I had the same problem and the same solution (i.e. adding the SwitchBoard setting to LocalSite.cfg) worked. I don't know why it didn't get added automatically like all the other configuration options.

-- Michael Shulman - 2013-01-29

Bug report filed: http://develop.twiki.org/~twiki4/cgi-bin/view/Bugs/Item7228

-- Vicki Brown - 2013-04-12

      Change status to:
ALERT! 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.
SupportForm
Status Answered
Title Can't send mail with SendEmailForm
SupportCategory SendEmailPlugin
TWiki version 5.0.2
Server OS Ubuntu 10.04.2 2.6.32-31-server
Web server Apache/2.2.14 (Ubuntu)
Perl version v5.10.1 (*) built for x86_64-linux-gnu-thread-multi
Edit | Attach | Watch | Print version | History: r11 < r10 < r9 < r8 < r7 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r11 - 2013-04-12 - VickiBrown
 
  • 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.