We have a question for Alfresco 5.2 Using javascript (API) we want to send some emails for a CronJobs that we are developing. We have seen that if we use "mail.parameters.to_many" we cannot send "CC".
We need to send MyLowesLife
To: "email1@xxx.com", "email2@xxx.com"
cc: "email3@xxx.com"
If we use:
mail.parameters.to = "email1@xxx.com"
mail.parameters.cc = "email3@xxx.com"
we correctly receive the "to" and the "CC"
But if we use:
mail.parameters.to_many = ["email1@xxx.com", "email2@xxx.com"]
mail.parameters.cc = "email3@xxx.com"
We received in the "to" "email1@xxx.com", "email2@xxx.com" but "CC" empty.
How can you send multiple emails "to" with "CC"? Example with "to" and "CC":
var subj= "prueva de multiples";
var mail = actions.create("mail");
mail.parameters.to ="email1@xxx.com";
mail.parameters.cc = "email3@xxx.com";
mail.parameters.subject = subj;
mail.parameters.from = "serverMail.com";
mail.parameters.text = "This test is OK";
mail.executeAsynchronously(node);(Works correctlym It works fine, but a "to" and a "CC")
Example 2:
var subj= "prueva de multiples";
var mail = actions.create("mail");
var emails = ["email1@xxx.com","email2@xxx.com","email3@xxx.com"];
mail.parameters.to_many = emails;
mail.parameters.cc = ""email4CC@xxx.com";
mail.parameters.subject = subj;
mail.parameters.from = "serverMail.com";
mail.parameters.text = "This test is not Ok";
mail.executeAsynchronously(node);(Sends the "to_many", but the "CC" does not send it)
We want to send multiple emails in "to" and multiple in "CC".
The most important thing for us is to be able to send one "to" and multiple "CC"
Thanks guys