Tags:
create new tag
, view all tags

SID-02262: How can we make the SendEmailPlugin work?

Status: Answered Answered TWiki version: 5.1.1 Perl version: perl5 (revision 5 version 10 subversion 0)
Category: SendEmailPlugin Server OS: SUSE Linux Enterprise Server 11 (x86_64) SP1 Last update: 4 months ago

Hi all,

Hope anyone can help us to make this plugin work.

We've followed the "Plugin Installation Instructions" and then, we've changed the settings in order to allow to send to anyone. Next we've created a topic in which we copied the example code given:

<form enctype="application/x-www-form-urlencoded" name="mailform" action="%SCRIPTURL{sendemail}%/%WEB%/%TOPIC%" method="POST">
<input type="hidden" name="subject" value="hello!" />
<input type="hidden" name="body" value="howdy!" />
<input type="text" class="twikiInputField" name="to" size="30" /> 
<input type="submit" class="twikiSubmit" value="Send" />
</form>

and saved changes. The form shows the textbox and the "Send" button, however, after inserting the email address, when we press the "Send" button we get the error:

"404 Not Found The requested URL /twiki/bin/sendemail/PrestaWikiPrestaLex/EdicionFichaCriterio was not found on this server."

Thank you very much in advance for your help.

Best regards.

-- Jose Ramón - 2016-10-18

Discussion and Answer

Is the plugin installed properly? Things to check:

  • twiki/bin/sendemail exists and is readable by the webserver user
  • run configure and enable the plugin
  • make sure that $TWiki::cfg{SwitchBoard}{sendemail} settings exists in twiki/lib/LocalSite.cfg after running configure

-- Peter Thoeny - 2016-10-18

Hi Peter,

Thank you very much for your fast reply.

You're right, the problem was that the $TWiki::cfg{SwitchBoard}{sendemail} doesn't exist in twiki/lib/LocalSite.cfg file. We added these to the file:

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

Thank you very much again for your help.

Regards.

-- Jose Ramón - 2016-10-20

      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 How can we make the SendEmailPlugin work?
SupportCategory SendEmailPlugin
TWiki version 5.1.1
Server OS SUSE Linux Enterprise Server 11 (x86_64) SP1
Web server Apache/2.2.10 (Linux/SUSE)
Perl version perl5 (revision 5 version 10 subversion 0)
Browser & version Google Chrome 53.0.2785.143 m
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2016-10-20 - JoseRamon
 
  • 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-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.