ISP Support Portal
Language
 
Home>Knowledge Base>Email>Form mail - a simply way to send mail from your website
User Login
Username
Password
 
 Login
Information
Article ID18
Created On5/22/2008
Modified5/22/2008
Share With Others

Form mail - a simply way to send mail from your website

Need to send email from your website? Do not know how to use ASP.Net to do this? Here's how to send your simple form using our mail server (requires our permission):

1. Create your form in your favourite HTML editor
2. Change the form action to <form method="POST" action="http://ssl128bit.net/scripts/formMail.aspx">
3. Add hidden fields to your form as follows:
emailTo * = recipient's email address
emailFrom * = sender's email address
emailSub * = subject
emailCc = carbon copy email recipient
emailBcc = blind carbon copy recipient
emailHeader = text to add to top of the email
emailFooter = text to add to bottom of email
emailRedirect = URL to redirect to after sending the form (example: "HTTP://www.mysite.com/thanks.htm")

(* = required field)
4. Add as many fields to your form as you like.
Fields are sorted alphabetically. If you want to control the sort order simply insert "s1","s2","s3",etc. infront of the field name. See following example:

<form method="POST" action="test">
<input type="text" name="s1_Title">
<input type="text" name="s2_Forename">
<input type="text" name="s3_Surname" size="20"></p>
<input type="submit" value="Send Form" name="submit">
</form>

The 'Submit' button should be named "submit".

Feel free to try this, but you may need to email support in order to obtain permission; if you do not yet have permission then the script will display a message telling you so!