Tags:
create new tag
view all tags

SID-01974: SendEmailPlugin not working

Status: Answered Answered TWiki version: 4.2.4 Perl version: 5.12.2
Category: SendEmailPlugin Server OS: 64bit Fedora Core 8 Last update: 11 years ago

I've installed SendEmailPlugin a few days ago (last version), but cannot make it works. I'd like to use it with also FormPlugin, but now I just copied a simple send e-mail form (from SendEmailPlugin topic at twiki.org) and it's not working. I also installed and enable mod_perl at system, web server (apache) and twiki configure script (adding a mail host and server host, username and password at the "Mail and Proxies" section and, by now, an only mail address at the {Permissions}{Allow}{MailTo} and {Permissions}{Allow}{MailCc}).


Let me show you my form whole source code, a simple one with three fields: To, Subject and Message:

<form enctype="application/x-www-form-urlencoded" name="mailform" action="%SCRIPTURL{sendemail}%/%WEB%/%TOPIC%" method="POST"> <input type="hidden" name="successsection" value="thanks" /> <fieldset> <legend><b>Send Email</b></legend> <div class="twikiFormSteps"> <div class="twikiFormStep"> <h3>To:</h3> <input class="twikiInputField" id="to" name="to" size="30" type="text" value="%URLPARAM{"to"}%" /> </div> <div class="twikiFormStep"> <h3>Subject:</h3> <input type="text" class="twikiInputField" id="subject" name="subject" size="70" value="%URLPARAM{"subject"}%" /> </div> <div class="twikiFormStep"> <h3>Message:</h3> <textarea class="twikiInputField" cols="70" name="body" rows="6" style="width:100%">%URLPARAM{"body"}%</textarea> </div> <div class="twikiFormStep"> <input type="submit" class="twikiSubmit" value="Send" /> </div> </div> </fieldset> </form> %SENDEMAIL% <!-- %STARTSECTION{"thanks"}%

Notification

%SENDEMAIL% <input type="button" value="Ok" class="twikiButton" onclick="window.location.href='%URLPARAM{"origurl" default="%SCRIPTURLPATH{view}%/%BASEWEB%/%BASETOPIC%"}%'" /> %ENDSECTION{"thanks"}% -->
I always get this error:

Software error:

Can't call method "run" on an undefined value at /path_to_twiki/bin/sendemail line 37. at /path_to_twiki/bin/sendemail line 37

For help, please send mail to the webmaster (sysadmin_address), giving this error message and the time and date of the error.


Twiki log files are saying nothing about that. Web server is showing these three lines when I click on the button:

[error] sendemail: Name "TWiki::engine" used only once: possible typo at /path_to_twiki/bin/sendemail line 37., referer: https://my_server/path_to_my_topic [error] sendemail: Can't call method "run" on an undefined value at /path_to_twiki/bin/sendemail line 37., referer: https://my_server/path_to_my_topic [error] sendemail: at /path_to_twiki/bin/sendemail line 37, referer: https://my_server/path_to_my_topic

What else can I do/test/modify?

-- Dani Molina - 2014-09-25

Discussion and Answer

You are using TWiki-4.2.4, but this plugin requires TWiki-5.0 or later as documented.

Upgrade TWiki, or look into SendMailPlugin.

-- Peter Thoeny - 2014-09-25

But... on the plugin info (http://twiki.org/cgi-bin/view/Plugins/SendEmailPlugin) it says "TWiki Dependency: 4.2 or later" and 1 year and a half after there was added support for TWiki 5.

-- Dani Molina - 2014-09-26

Do not worry, Peter, thank you for your time, I'm already installing and testing SendMailPlugin instead.

-- Dani Molina - 2014-09-26

After upgrading to TWiki 6 and installing (and enabling at configure) SendEmailPlugin, now we get this error when sending a form (using FormPlugin, and SendEmailPlugin in its action field):

Not Found

The requested URL /Twiki/bin/sendemail/GREATITNFC/RegistrationFormITNFinal?twiki_redirect_cache=bdb777505be8c26cf996fefb8c52b0f3 was not found on this server.

Enabling debug.log results in nothing written there. Watching at web server log files we see this:

[Mon Nov 17 13:22:36 2014] [error] [client 161.116.78.39] [Mon Nov 17 13:22:36 2014] view: Use of uninitialized value in lc at (path_to_twiki)/lib/TWiki/Plugins/FormPlugin.pm line 342., referer: (path_to_form_topic)

What can we do/check?

-- Dani Molina - 2014-11-17

Close this question. A new one was opened for the new circunstances at http://twiki.org/cgi-bin/view/Support/SID-01994

-- Dani Molina - 2014-11-24

      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 SendEmailPlugin not working
SupportCategory SendEmailPlugin
TWiki version 4.2.4
Server OS 64bit Fedora Core 8
Web server Apache 2.2.8
Perl version 5.12.2
Browser & version Firefox 31.1.0
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2014-11-24 - DaniMolina
 
  • 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.