cross
New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
This question about Using an extension: Asked

Email not including data fileds in body...

Hello - I am having issues where the body of my email form does not include the correct fields entered in the email form. It just shows the text entered before %URLPARAM. Am I missing something here? My code is below...thanks.
<form enctype="application/x-www-form-urlencoded" name="mailform" action="%SCRIPTURL{sendemail}%/%WEB%/%TOPIC%" method="POST">
<fieldset>
<legend><b>Send Email</b></legend>
<div class="foswikiFormSteps">
   <div class="foswikiFormStep">
      <h3>To:</h3>
      <input class="foswikiInputField" id="to" name="to" size="30" type="text" value="%URLPARAM{"to"}%" />
   </div>
   <div class="foswikiFormStep">
      <h3>CC:</h3>
       <input type="text" class="foswikiInputField" id="cc" name="cc" size="30"  value="%URLPARAM{"cc"}%" />
   </div>
   <div class="foswikiFormStep">
      <h3>Subject:</h3>
      <input type="text" class="foswikiInputField" id="subject" name="subject" size="70" value="%URLPARAM{"subject"}%" />
   </div>
   <div class="foswikiFormStep">
      <textarea name="body" style="display:none">
         From: %URLPARAM{"from"}%
         To: %URLPARAM{"to"}%
         CC: %URLPARAM{"cc"}%
         Subject: %URLPARAM{"subject"}%
      </textarea>
   </div>
   <div class="foswikiFormStep">
      <input type="submit" class="foswikiSubmit" value="Send" />
   </div>
</div>
</fieldset>
</form>

%SENDEMAIL{
feedbackSuccess="Email request has been sent..."
feedbackError="Could not send your message, please contact us."
format="<div class=\"foswikiNotification\">$message</div>"
}%

 

QuestionForm edit

Subject Using an extension
Extension FormPlugin, SendEmailPlugin
Version Foswiki 1.1.8
Status Asked
Related Topics
Topic revision: r2 - 11 Sep 2013, EricKrengel - This page was cached on 19 Aug 2018 - 21:08.

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