Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Send Email Plugin | ||||||||
Changed: | ||||||||
< < | Allows to send e-mails through an e-mail form. | |||||||
> > | Send e-mails through an e-mail form. | |||||||
Line: 12 to 11 | ||||||||
| ||||||||
Added: | ||||||||
> > |
Example | |||||||
<form enctype="application/x-www-form-urlencoded" name="mailform" action="%SCRIPTURL{sendemail}%/%WEB%/%TOPIC%" method="POST"> <input type="hidden" name="subject" value="hello!" /> | ||||||||
Changed: | ||||||||
< < | ||||||||
> > | Send to: | |||||||
Deleted: | ||||||||
< < | ||||||||
Usage detailsSending emails through a form may contain these elements: | ||||||||
Line: 137 to 137 | ||||||||
Example with a handcrafted HTML form | ||||||||
Changed: | ||||||||
< < | ||||||||
> > | ||||||||
Line: 164 to 163 | ||||||||
Changed: | ||||||||
< < |
<-- | |||||||
> > | ||||||||
Deleted: | ||||||||
< < | ||||||||
Line: 203 to 197 | ||||||||
Changed: | ||||||||
< < | ||||||||
> > | ||||||||
%ADDTOHEAD{text=" "}% | ||||||||
Deleted: | ||||||||
< < |
<-- | |||||||
Example with FormPlugin | ||||||||
Changed: | ||||||||
< < | This form asks for user information and validates that the password confirmation matches the password. | |||||||
> > | This form asks for user information and validates that the fields are filled. | |||||||
| ||||||||
Line: 230 to 220 | ||||||||
name="mailForm" action="http://utfit.org/foswiki/bin/sendemail/System/SendEmailPlugin" method="POST" | ||||||||
Deleted: | ||||||||
< < | onSubmit="return checkPasswords(this)" | |||||||
}% | ||||||||
Deleted: | ||||||||
< < | name="To" type="hidden" title="To:" default="me@myurl.com" }% %FORMELEMENT{ | |||||||
name="Subject" type="hidden" | ||||||||
Changed: | ||||||||
< < | default="Account Request" }% %FORMELEMENT{ | |||||||
> > | default="This is a test" }%%FORMELEMENT{ | |||||||
name="Name" type="text" mandatory="on" | ||||||||
Added: | ||||||||
> > | validate="nonempty" | |||||||
title="Name (First and Last):" | ||||||||
Changed: | ||||||||
< < | }% %FORMELEMENT{ name="Email" | |||||||
> > | }%%FORMELEMENT{ name="To" | |||||||
type="text" mandatory="on" validate="email" title="E-mail Address:" | ||||||||
Changed: | ||||||||
< < | }% %FORMELEMENT{ name="Password" type="password" mandatory="on" title="Password (caps sensitive):" }% %FORMELEMENT{ name="Confirm" type="password" mandatory="on" title="Confirm your password:" }% %FORMELEMENT{ | |||||||
> > | }%%FORMELEMENT{ | |||||||
name="body" type="textarea" rows="10" cols="80" cssclass="foswikiHidden" | ||||||||
Changed: | ||||||||
< < | default="$Name $Email $Company $Password $Confirm" }% %FORMELEMENT{ | |||||||
> > |
| |||||||
type="submit" buttonlabel="Send" }% | ||||||||
Line: 291 to 256 | ||||||||
%ENDFORM% | ||||||||
Deleted: | ||||||||
< < | ||||||||
Line: 310 to 263 | ||||||||
name="mailForm" action="http://utfit.org/foswiki/bin/sendemail/System/SendEmailPlugin" method="POST" | ||||||||
Deleted: | ||||||||
< < | onSubmit="return checkPasswords(this)" | |||||||
}% | ||||||||
Deleted: | ||||||||
< < | name="To" type="hidden" title="To:" default="me@myurl.com" }% %FORMELEMENT{ | |||||||
name="Subject" type="hidden" | ||||||||
Changed: | ||||||||
< < | default="Account Request" }% %FORMELEMENT{ | |||||||
> > | default="This is a test" }%%FORMELEMENT{ | |||||||
name="Name" type="text" mandatory="on" | ||||||||
Added: | ||||||||
> > | validate="nonempty" | |||||||
title="Name (First and Last):" | ||||||||
Changed: | ||||||||
< < | }% %FORMELEMENT{ name="Email" | |||||||
> > | }%%FORMELEMENT{ name="To" | |||||||
type="text" mandatory="on" validate="email" title="E-mail Address:" | ||||||||
Changed: | ||||||||
< < | }% %FORMELEMENT{ name="Password" type="password" mandatory="on" title="Password (caps sensitive):" }% %FORMELEMENT{ name="Confirm" type="password" mandatory="on" title="Confirm your password:" }% %FORMELEMENT{ | |||||||
> > | }%%FORMELEMENT{ | |||||||
name="body" type="textarea" rows="10" cols="80" cssclass="foswikiHidden" | ||||||||
Changed: | ||||||||
< < | default="$Name $Email $Company $Password $Confirm" }% %FORMELEMENT{ | |||||||
> > |
| |||||||
type="submit" buttonlabel="Send" }% %ENDFORM% | ||||||||
Changed: | ||||||||
< < | ||||||||
> > | ||||||||
FAQ | ||||||||
Added: | ||||||||
> > |
How do I create linebreaks in the email body?Use the token$n to create newlines. | |||||||
How do I send data form fields?If you have a data form with the fieldsTitle and Summary and want to post the values of these fields in the body of the e-mail, eiter:
| ||||||||
Line: 407 to 329 | ||||||||
Plugin Settings
| ||||||||
Line: 432 to 354 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Added: | ||||||||
> > |
| |||||||
| ||||||||
Line: 465 to 389 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
|