Smart Mailer PHP tutorials
| Rating: | 6 users |
|
3.2 out of 5 |
Smart Mailer Tutorials - 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
- 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.
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: 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 two components: SMTP and SendMail. Select the Server 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. 5 messageboxes will
appear saying that the following files have been copied into your site ScriptLibrary
directory: incSmartMailer.php, htmlMimeMail.php, MimePart.php, RFC822.php
and smtp.php
Don't forget to upload them to the server.
I need to put a pause of 5 seconds between each email that gets sent out with this tool. For some reason my webserver cant handle email after email without a pause in between. Can someone help me modify this awesome tool to pause 5 secs between each email it sends out?
Thanks in advance
Dave
















DMXzone's communications editor, Frank, is an enthusiastic, socialising project manager who loves people that inspire.