|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: firstname.lastname@example.org, email@example.com, firstname.lastname@example.org and this script to be able to send to all of them. Can you help me with this one please?|
|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.