Smart Mailer ASP Manual
The Smart Mailer extension offers your clients the ability to send HTML mails based on a template (either on your machine or at a URL), each personalised with the recipient's name. You can add attachments to everyone, or a group of people, there's progress bars while you're sending them - all this in an external ASP class file, so just a couple of lines on your page.
Read the tutorials how you can accomplish this with the extension.
more...
Smart Mailer Tutorials - Send mail to one recipient
How do you send mail to one recipient when form is submitted
You created a simple contact us form and would like to have the results of
the form emailed to you. In this tutorial we will create a simple contact form
and when the user submits the form results will be mailed to you.
How to do it
- Open page
Open your asp file that will display the contact form. I have created a
form with the following fields:
Name, Company, Email, Question/Concern.
- Create your variables
To be able to email the content of the form, you need to create variables
for the different fields and bind them to the form. I have named my textfields
according to the info needed like name, company, email and question.
Click on the Bindings tab and the + sign. Select Request Variable, choose
Request.Form and fill in the name of your fields. Do this for each field,
so four times. In the Bindings you will see this:
- Apply Smart Mailer extension: Main
You can find the Smart Mailer extension under Server Behaviors | DMXzone
| Smart Mailer.
There are 4 tabs: Main, Content, Attachments, Setup.
Main:
Here you can enter where the mail is coming from and where it is going to.
For this tutorial I selected One Receiver.
In the Submitting choose on any form submit. This will send the mail as
soon as a user hits the submit button.
Click on the lightning bolts for the dynamic data for the From Name and
Email:
- Apply Smart Mailer: Content
In Subject I choose to select the company name as dynamic data.
In Body I choose Static text/html. This will send a mail with the name, company,
email and question he/she has in the mail body. You do not have to enter <br>
after each line. It will be automatically done.
- Apply Smart Mailer: Attachments
No attachments added for this tutorial.
- Apply Smart Mailer: Setup
There are four components: CDO (WinXP/Win2000), CDONTS (NT4/Win2000), JMail
and ASPEmail.
The Ignore errors can be checked when you want the mail to continue even though
there is an email address that is incorrect.
The Timeout in seconds can be adjusted to your own needs, defaults at 300.
In Redirect select the URL users will be directed to after they submit the
form. In this case a thank you page.
- Click OK
Click the OK button to apply the Smart Mailer extension. A message box will
appear that the file incSmartMailer.asp has been copied into your scriptlibrary
folder. Make sure you upload the file to the server.
DMXzoneGeorge Petrov is a renowned software writer and developer whose extensive skills brought numerous extensions, articles and knowledge to the DMXzone- the online community for professional Adobe Dreamweaver users. The most popular for its over high-quality Dreamweaver extensions and templates.
George is also the founder of Wappler.io - the most Advanced Web & App Builder
See All Postings From George Petrov >>