This was a very rapidly slung together form handler to take all the form fields from a WikiForm and email them to someone.

You need to set up the SMTP server to be used in the jspwiki.properties file like this...

jspwiki.formMailer.smtpHost = (your-host)

Parameters#

mailerFromemail address to send from
mailerToemail address to send to
mailerCCCC address
mailerBCCBcc address
mailerSubjectSubject line of the email

Example#

[{FormSet form='mailer' mailerFrom='wiki@somewhere.net' mailerTo='subscribe@somewhere.com' mailerSubject='Subscribe Me!'}]

[{FormOutput form='mailer' handler='FormMailerPlugin' populate='handler'}]

[{FormOpen form='mailer'}]

Title : [{FormSelect name='Title' value='Mr;Mrs;Ms;Miss;'}]\\
Name : [{FormInput type='text' name='FirstName'}]\\
Comments : [{FormTextarea name='Comments' rows=5 cols=40}]\\
[{FormInput type='submit' name='submit' value='Submit'}]

[{FormClose}]

This example will send an email from wiki@somwhere.net to subscribe@somwhere.net with the subject "Subscribe Me!" and the email body will be (for example)...

Title;
Mr

Name;
Dave S-B

Comments;
Hi, just trying out this email lark...

ContributedFormHandlers

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-1) was last changed on 15-Aug-2008 12:03 by jim