You are here: Foswiki>Tasks Web>Item9087 (30 Apr 2011, ArthurClemens)Edit Attach

Item9087: Integration of FormPlugin and SendEmailPlugin does not work after update in FormPlugin

pencil
Priority: Urgent
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: FormPlugin
Branches:
Reported By: ItaloValcy
Waiting For:
Last Change By: ArthurClemens
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

  1. Install FormPlugin and SendEmailPlugin
  2. Create a test topic in Sandbox, using Extensions/SendEmailPlugin#Example_with_FormPlugin
  3. 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

 

ItemTemplate edit

Summary Integration of FormPlugin and SendEmailPlugin does not work after update in FormPlugin
ReportedBy ItaloValcy
Codebase 1.0.9
SVN Range
AppliesTo Extension
Component FormPlugin
Priority Urgent
CurrentState Closed
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
I Attachment Action Size Date Who Comment
FormPlugin.pm_151_patchedpm_151_patched FormPlugin.pm_151_patched manage 51 K 27 Jul 2010 - 16:30 IngoWolf FormPlugin 1.5.1 patched to working upload
Topic revision: r12 - 30 Apr 2011, ArthurClemens
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy