Tags:
create new tag
view all tags

Question

I have a form, similar to the Twiki Registration form, with a number of drop-down menus and text boxes. I would like users to be able to complete the fields and press a Submit button and have the information emailed to a specific email address. Is there a simple way to do this?

Thanks

Environment

TWiki version: TWikiRelease04x00x05
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Forms

-- JasonLawless - 19 Sep 2008

Answer

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.

SendEmailPlugin was created for this. You can create the form using html of FormPlugin. In the examples topic of FormPlugin you will find an example how to make the 2 plugins work together.

-- ArthurClemens - 19 Sep 2008

yes, it's possible to use FormPlugin to send email, but how to include in email body more than one field? If I change in example any "frm" to "body" - only this form will be sent. If I change all "frm" to "body" - only first form will be send..

%STARTFORM{ name="mailForm1" action="%SCRIPTURL{sendemail}%/%WEB%/%TOPIC%" }% %FORMELEMENT{ name="To" type="text" title="To:" mandatory="on" hint="Enter an e-mail address" }% %FORMELEMENT{ name="Subject" type="text" title="Subject:" }% %FORMELEMENT{ name="frm1" type="dropdown" title="I'd like to inform that resource" options="1, 2, 3, 4, 5" labels="1, 2, 3, 4, 5" value="1" }% %FORMELEMENT{ name="frm2" type="date" title="From:" }% %FORMELEMENT{ name="frm3" type="textarea" title="text:" rows="1" cols="30" }% %FORMELEMENT{ name="action" type="submit" default="Send" }% %ENDFORM%

-- Pavel Patcheptsov - 2013-02-14

Look into the SendEmailPlugin. You do not need to use FORMELEMENT, you can use plain html.

Best to open a new support question, not add to an existing one.

-- Peter Thoeny - 2013-05-01

All examples for using SenEmailPlugin are returning the following error

"Not Found The requested URL /twiki-cloud-computing/bin/sendemail/Sandbox/FormPluginExamples was not found on this server. " The plugin was installed and enabled (per our admin response) and email address used in the example was included in the config. NOTE: the following work/exist but when invoking sendemail script I get 404 /twiki-cloud-computing/bin/view/Sandbox/FormPluginExamples /twiki-cloud-computing/bin/edit/Sandbox/FormPluginExamples

How can I debug it? Sys admin feels lost and tries to convince me to not use the plugin because it is not working. Please advise.

-- Michaela Iorga - 2013-09-07

Michaela, best to open a new support question. Could be:

  • URL path to scripts in bin is incorrect, compare to the URL path of the view script
  • sendemail does not exist in twiki/bin dir
  • sendemail exist in twiki/bin dir but does not have the proper file ownership or permission

-- Peter Thoeny - 2013-09-07

Change status to:
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2013-09-07 - PeterThoeny
 
  • 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-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.