J'ai crée un js qui envoi un mail,
formticket.post.js
// create mail action
var mail = actions.create("mail");
mail.parameters.to = person.properties.name;
mail.parameters.subject = "test mail send";
mail.parameters.from = person.properties.name;
mail.parameters.text = "test mail to send";
//execute action
mail.execute(person);
————————————————-
l'execution du script me donne l'erreur suivante :
The Web Script /alfresco/service/support/formTicket has responded with a status of 500 - Internal Error.
500 Description: An error inside the HTTP server which prevented it from fulfilling the request.
Message: 10070004 Wrapped Exception (with status template): 10070031 Failed to execute script 'classpath*:alfresco/extension/templates/webscripts/fr/starxpert/gie/support/formTicket.post.js': 10070030 Failed to send email to:d9212c6f-99e4-4962-954a-3522d79cd35d
Exception: java.net.UnknownHostException - smtp.example.com