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 to multiple recipients
How do you send mail to multiple recipients when form is submitted
You created a newsletter and would like to send it to multiple people from
a database. In this tutorial I will show you how to set up an email application
that will send personalized template to multiple recipients.
How to do it
- Open page
Open your asp file that displays a form with a submit button that you will
use to send the newsletter.
- Create a recordset
To be able to email to multiple recipients from a database, you need to create
a recordset.
Open the Server Behaviors Panel | Click on the + | Recordset.
- 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.
In this case we are going to send a newsletter from DMXzone.
Select Multiple Receivers. Choose the recordset and fields for name and
email.
In the Submitting choose on any form submit. This will send the mail as
soon as a user hits the submit button.
- Apply Smart Mailer: Content
In Subject I choose to select the name of the recipient as dynamic data with
Hello, ..... here us our newsletter.
Content Type is HTML, since the newsletter is HTML based. When you select
the option "Embed images in E-mail" all the images in the newsletter
will be send with the mail, making the mail larger. Not selecting this option
will result in the recipient not seeing the images if they are not connected
to the internet.
In Body I choose Template. I choose the newsletter file.
- 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. Select the Server Component you are using.
I checked the option Ignore errors so the process of sending the newsletter
will keep going no matter what.
I increased the Timeout to give the process enough time to complete.
Let's show a progress bar during the process. We selected multiple receivers
and through the submit button.
In Redirect select the URL you will be directed to after the newsletter has
been send.
- Click OK
Click the OK button to apply the Smart Mailer extension. A message box will
appear that the files incSmartMailer.asp, cool_green_progress.htm and cool_green_progress.swf
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 >>