Logic Machine Forum
Email to more than 1 recipients - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Email to more than 1 recipients (/showthread.php?tid=480)



Email to more than 1 recipients - Mirco - 29.11.2016

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


RE: Email to more than 1 recipients - admin - 29.11.2016

Specify them as a table where each element is a single email address


RE: Email to more than 1 recipients - Mirco - 30.11.2016

Thanks now it works!