The PostMail script allows an HTML forms-based mail message to be generated and sent. It relies on authentication of a user with an VMS account. The message originates from the authenticated username.
The SendMail script also allows an HTML forms-based mail message to be generated and sent. Unlike PostMail it does not require any authentication and relies on the user of the form to enter their e-mail address and optionally personal name. A disclaimer at the beginning of the message body explains it is from a non-ahtneticated source.
The script can provide its own help.
The HTTP GET method is used to request a message generation form. The following URL form field names may be used to control the format of, and/or provide default values for, the message generation form. The URL must of course conform to URL specification rules and have escaped characters where necessary.
The following link provides access to an online demonstration of the various formats available.
Each of the following list represents an HTML form field name which can be used to construct a mailing form (see example 13.2 - Example Use below).
The HTTP POST method is used to send a message. This is handled by the
message generation form and is not of operational concern.
13.1 - Usage Similar to mailto:
The PostMail script may be used in a similar fashion to the mailto: URL.
<P><HR> <FORM METHOD=POST ACTION="/SendMail"> <P>Demonstration message originator: <BR> <INPUT TYPE=text NAME=sender SIZE=45> <I>(e-mail address)</I> <BR> <INPUT TYPE=text NAME=sender_name SIZE=30> <I>(optional personal name)</I> <P>Demonstration message destination: <BR> <INPUT TYPE=text NAME=to SIZE=48> <INPUT TYPE=hidden NAME=subject VALUE="Demonstration of DEFORM Field"> <!-- NOTE: everything following the deform field will be the message body --> <INPUT TYPE=hidden NAME=deform> <P> ay <INPUT TYPE=checkbox NAME=one VALUE="ay checked" CHECKED> bee <INPUT TYPE=checkbox NAME=two VALUE="bee checked"> see <INPUT TYPE=checkbox NAME=three VALUE="see checked"> <P> one <INPUT TYPE=radio NAME=radio-box VALUE="one selected" CHECKED> two <INPUT TYPE=radio NAME=radio-box VALUE="two selected"> three <INPUT TYPE=radio NAME=radio-box VALUE="three selected"> <P> Multi-line message area: <BR> <INPUT TYPE=textarea NAME=text-area ROWS=4 COLS=48> <P> <INPUT TYPE=submit VALUE="mail form"> <INPUT TYPE=reset VALUE="reset all fields"> </FORM> <P><HR>
The following example demonstrates usage of the above example using the deform field name.