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 - Send mail with attachment from recordset
How do you send mail to one recipient with an attachment
You created a website where users can purchase products. You would like to
send an email with the invoice attached and a purchase confirmation.
How to do it
- Open page
Open your asp file that will display Purchase Confirmation form. Here the
user can see all the info he/she has entered and verify one last time. I
assume you have a recordset and possibly session variables to hold all the
info.
- 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 a template. They will get a copy of the confirmation mail
in the body.
- Apply Smart Mailer: Attachments
Select Recordset. Choose the recordset to use and the filefield that
contains the filename of the attachment.
The invoice will be send as an attachment.
- Apply Smart Mailer: Setup
There are four components: CDO (WinXP/Win2000), CDONTS (NT4/Win2000), JMail
and ASPEmail. Select the Server you are using.
I selected to use a progress bar. And a temp folder in my site for the progress
bar to use.
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 and two files for the progress bar
have 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 >>