cancel
Showing results for 
Search instead for 
Did you mean: 

send mail

nlounis
Champ in-the-making
Champ in-the-making
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
1 REPLY 1

nlounis
Champ in-the-making
Champ in-the-making
verifier le fichier global.properties : il doit contenir une partie pour l'initialisation du serveur de messagerie :

mail.host= "specifier IP Adresse de votre serveur"

apres sa sa devrai marché ,

probléme résolu