SID-02262: How can we make the SendEmailPlugin work?
| Status: |
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: |
9 years 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
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.