This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Email to more than 1 recipients
#1
Hi,
I have to send email to at most 4 recipients. The user select from the visualization the number of recipients and their email adresses.
I tryed to do this:
Code:
mail("example1@example1.com, example2@example2.com", "ALERT", "Alert")
  and this:

Code:
mail("example1@example1.com; example2@example2.com", "ALERT", "Alert")
but this is the error:

* string: 501 5.1.3 Bad recipient address syntax

How can I do it?

Thanks
Reply
#2
Specify them as a table where each element is a single email address
Reply
#3
Thanks now it works!
Reply


Forum Jump: