acenetglobal.com.au - Web hosting and Domain name registration services. Acenet Global prides itself on being a small company that can provide personalised support to its customers

Home Home

Email Login

Control Panel

Help

Sales and Support

Site Map

Services
Acenet.net.au
Web Hosting
Domain Names
Extras
Sign-up
Pay an account
WhoIS
FTP Tutorial
Script Examples
Community Hosting
More...

 
 
Call: 1300 859 985

Form Mail

This script allows you to send information from a web form to an email address. More examples can be found off the Example page.

Quick Instructions

  • First you will need a web form. If you have not created one already you can use smart-upload.htm. You also view our script as a text file smart-upload.txt

  • Create a file called mail.asp on your web site and copy the contents of the text area below into that file. You also view our script as a text file smart-upload.txt

  • Point your web form to the newly created file mail.asp

  • Change the html <form> tag to include the encoding type "multipart/form-data".
    <form name="enctype="multipart/form-data"

This script is currently incomplete and I would strongly recommend testing before adding it to a website.

Verbose Instructions

Do you want people to fill in a form on your web site, hit the submit button and have the details email to you? Want to attach a file, the you will need to use JMail and aspSmartupload.

This document has been broken down into the following sections:

What you will need before starting

Before we start on adding the JMail script you will need a web form. Web forms are pages that allow you to fill in information and 'submit' those details to be processed. In this example will be filling in a web form and submitting those details for processing. Once the web form is processed the details are mailed across to an email address of your choosing.

Many web design programs allow you to develop forms on your web pages. If you are looking for an example form please visit the script-examples/smart-upload.htm page. More information about web forms can be found on the internet. Looking up the HTML tag "<forms>" will help you find out more information.

The process involved.

People can fill in the form then hit the submit button. This will pass the information from your form page to the mail script. Our script can then redirect the user to a 'thank you' page of your choosing. The script will display a short thank you message if you do not specify a finish page.

The JMail script

In order for the site to work will need a web page with a form on it, a copy of the above script, and a thank you page. While it is not necessary to do your script this way we will doing so in this example to help simplify the process involved.

To make the script you will need to copy the text from the text box near the top of this document.

To start with create a file call smart-upload.asp on your web site. Select all of the content from the text box above. Copy the contents of the text area and paste into a file called smart-upload.asp. Your web page editor should have documentation on how to do this if you do not know how. You will read through the code itself in order to setup the page correctly.

Where to direct your form to

When generating your web form you will need to keep in mind that this page will be sending information to another page. In order to post the information from one to another you will need to set 'action' field in the form to the ASP file we have created.

Where your email will be sent to

It is important to check that you have included valid data with this script. JMail will generate an email based on the information submitted to this page. If you have not included your email address in the 'YourEmailAddress' variable then the page will automatically send the email to web forms at your domain.

Which mail server to use

In order for your email to be submitted correctly your script will need to refer to a valid SMTP or outgoing mail server. Generally this is set to mail.example.com, where example.com is your registered domain name.

Acenet customers who are using this script with their home page may need to use mail.acenet.net.au

Testing the script

The next step involved is to test the script. Why not try emailing your self? Simply fill in your form using your email address and send the email. Please allow a couple of minutes for your email to make its way through the system. If your script did not generate any errors but you have not received an email within a hour you may need to check the Recipient address to ensure that a valid email address has been added.

Completion

Once you have checked and tested your script the site should now be ready to use. If everything went to plan you should have a fully functional form!

I would encourage you to try as many email addresses you have available to ensure that the script is working. While Acenet has made every effort to ensure the fidelity of the script, bug can occur. If you like you can contact webadmin@acenet.net.au for further help with your script. Please describe the problem you are having and include as much detail as possible. Please include your domain name,the web form's file name, the name of the ASP file which is processing the email and any error messages that have come up.

This make no sense

If you are finding that this script is difficult to follow or you know of a better way of doing this please let me know. This website is being updated continual so if you have any ideas, suggestions, gripes, annoyances, flaming arrows, etc. please contact me via email at webadmin@acenet.net.au

 

 

Telephone:

(07) 3899 1411

AcenetGlobal

Toll free:

1300 85 99 85

7/53 Metroplex Avenue

Facsimile:

(07) 3899 5174

Murarrie   QLD 4172

ABN:

43 158 691 929

Email: webadmin@acenet.net.au