Priority: Urgent
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: FormPlugin
Branches:
I'm using SendEmailPlugin together with FormPlugin, but after update FormPlugin from 1.5.1 to 1.6.1 it breaks my setup.
Steps to reproduce
- Install FormPlugin and SendEmailPlugin
- Create a test topic in Sandbox, using Extensions/SendEmailPlugin#Example_with_FormPlugin
- Try to send the e-mail
What should you get?
First you are asked by the browser for to a redirection (
This web page is being redirected to a new location. Would you like to resend the form data you have typed to the new location?
). After, you get an error message from SendEmailPlugin:
Could not send your message, please contact us. You must pass a 'to' e-mail address.
, but in fact you already passed the 'to' parameter. Actualy, the e-mail was sent, but the variables were not replaced by their values.
I think is not a issue with SendEmailPlugin because downgrade of FormPlugin solve the problem.
Any ideas?
--
ItaloValcy - 01 Jun 2010
Try version 1.6.2. I can send emails successfully.
--
ArthurClemens - 01 Jun 2010
Does not work. Same problem.
--
ItaloValcy - 01 Jun 2010
Check the SendEmailPlugin settings in configure. Is the email you enter in the To field allowed in the settings?
--
ArthurClemens - 01 Jun 2010
My form is something like this:
<div class="twikiConflict"><b>CONFLICT</b> end</div>
%STARTFORM{
name="mailForm"
action="%SCRIPTURL{sendemail}%/%WEB%/%TOPIC%"
method="POST"
}%
<input type="hidden" name="from" value="<from address hidden>" />
<fieldset style="border:1px solid #ddd; padding:1em">
<legend><b>Send Email</b></legend>
%RED%*%ENDCOLOR% All fields are required.
%FORMELEMENT{
name="to"
title="To:"
type="text"
default="<to address hidden>"
}%
%FORMELEMENT{
name="Subject"
type="text"
default="Account Request"
}%
%FORMELEMENT{
name="Name"
type="text"
mandatory="on"
title="Name (First and Last):"
}%
%FORMELEMENT{
name="body"
type="textarea"
rows="10"
cols="80"
cssclass="foswikiHidden"
default="$Name"
}%
%FORMELEMENT{
type="submit"
buttonlabel="Send"
name="submit"
}%
</fieldset>
%ENDFORM%
%SENDEMAIL{feedbackSuccess="Request sent, we'll contact you shortly." feedbackError="Could not send your message, please contact us." }%
--
ItaloValcy - 01 Jun 2010
Arthur, yes. If it does not, the error message will be different.
--
ItaloValcy - 01 Jun 2010
Confirmed that
$Name
is not substituted.
--
ArthurClemens - 01 Jun 2010
Same Problem here. Having to rollback the update. Changing Priority to Urgent, as no E-Mail Form is working with this bug. Really annoying.
--
IngoWolf - 07 Jun 2010
I attached my patched version of
FormPlugin.pm 1.5.1
which works as well with substitution, as with email and upload
--
IngoWolf - 27 Jul 2010
Thanks, I will look at that.
--
ArthurClemens - 30 Jul 2010
Checked in FormPlugin 2.0 and works as expected.
--
ArthurClemens - 30 Apr 2011