Hello, this is my alfresco-global.properties emails configurations.
...
...
### Email settings ###
mail.encoding=UTF-8
mail.host=smtp.uci.cu
mail.protocol=smtp
mail.port=587
mail.username=liomar@xxxx.cu
mail.password=****************
mail.from.default=liomar@xxxx.cu
mail.smtp.auth=true
mail.smtp.starttls.enable=true
...
...
It's working.
But I have a question: How can I use the same "mail.from.default" previously configured in alfresco-global.properties in the method sendMail created in JS.
function sendMail(email, subject, message, node) {
var mail = actions.create('mail');
mail.parameters.to = email;
mail.parameters.subject = subject;
mail.parameters.text = message;
mail.parameters.from = 'liomar@xxxx.cu';
// It is necessary to pass the created node
mail.execute(node);
}
This method is working too, but I want to reuse the same parameter 'mail.from.default' previously configured without rewriting literally 'liomar@xxxx.cu';