cancel
Showing results for 
Search instead for 
Did you mean: 

mail attachments

xerox
Champ in-the-making
Champ in-the-making
Is it possbile to send mails with attachments to users?

For example, I want to send an email to someone with a document in alfresco(not the link)

friendly regards,
Nick
5 REPLIES 5

xerox
Champ in-the-making
Champ in-the-making
Is it possible to send an email to more users with the javascriptapi?

mail.parameters.to = "test@test.be","test2@test.be";

this seems not to work…

kevinr
Star Contributor
Star Contributor
This _might_ work:

Create an Array in javascript with your To: values in (one per slot).

Then try this:

mail.parameters["to_many"] = myarray;

Hope this helps,

Kevin

xerox
Champ in-the-making
Champ in-the-making
thx for your fast answer.

But It seems not to be working…

thx anyway

Nick

kevinr
Star Contributor
Star Contributor
The handling of arrays as parameter types in JavaScript has been improved in Alfresco 2.1. It's possible that code will work. But I haven't tried it yet…

Thanks,

Kevin

mikeh
Star Contributor
Star Contributor
Hi,

The other thing you could try is to have the comma separators inside the quotes, i.e.
mail.parameters.to = "test@test.be,test2@test.be";
or even semicolons
mail.parameters.to = "test@test.be;test2@test.be";

Thanks,
Mike