PHP Classes

multiple recipients

Recommend this page to a friend!

      SMTP E-mail sending class  >  All threads  >  multiple recipients  >  (Un) Subscribe thread alerts  
Subject:multiple recipients
Summary:send mail to multiple recipients
Messages:2
Author:Florin Stanescu
Date:2011-11-23 07:12:46
Update:2011-11-23 07:36:52
 

  1. multiple recipients   Reply   Report abuse  
Picture of Florin Stanescu Florin Stanescu - 2011-11-23 07:12:46
Hello. This is a very nice script, it works but i don`t know how to make it send mail to multiple people. For example i want o add multiple email addresses in my email field: mail1@yahoo.com, mail2@yahoo.com, mail3@yahoo.com and this script to be able to send to all of them. Can you help me with this one please?

  2. Re: multiple recipients   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2011-11-23 07:36:53 - In reply to message 1 from Florin Stanescu
The second parameter of the SendMessage function takes an array with the e-mail address of all recipients.

Anyway, you are recommended to use the MIME message class in conjunction with this to send messages, as it extracts the recipient addresses from the headers.

phpclasses.org/mimemessage