Welcome Visitor!

Share your knowledge with the Community for Web Designers and Developers!!

  • Download/upload tutorials, extensions, faq's - share your knowledge with the community!
  • FREE Registration allows you to fully customize and participate at DMXzone.com!
  • We fully respect your Privacy

Smart Mailer PHP tutorials

5602 Users read it.
(September 13, 2005)
Rating: 6 users 
 3.2 out of 5
Tutorials-How to send mail to multiple recipients

Smart Mailer Tutorials - Send mail to multiple recipients

Previous TutorialTutorials IndexNext Tutorial

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 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.

Previous TutorialTutorials IndexNext Tutorial

Visit DMXzone.com

Please rate this for us Poor 1 2 3 4 5 Excellent
  Usefulness of Content
Mailing to my clients - Not everyone gets it Dave Sharpe (22 September 2007, 12:40)

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 


1-1