02-12-2013 03:29 PM
02-12-2013 04:48 PM
02-17-2013 11:23 AM
<head>
</head>
<body bgcolor="#dddddd">
<p> Hello world—————————–</p> </body>
</html>
02-19-2013 09:15 AM
02-21-2013 04:05 PM
var mail = actions.create("mail");
var tomany = new Array();
tomany[0]="user1";
tomany[1]="user2";
mail.parameters.to_many = tomany;
mail.parameters.subject = "Note d'alerte : " + titre;
mail.parameters.from = "mail@ss.fr";
//mail.parameters.template = doc.childByNamePath("Espace racine/Modèles d'e-mail/alfeo/noteAlerte/notify.noteAlerte.ftl");
mail.parameters.template = doc.childByNamePath("Company Home/Data Dictionary/Email Templates/alfeo/noteAlerte
/notify.noteAlerte.ftl");
mail.parameters.text = doc.getContent() + "\n —fin—";
mail.execute(doc);
<html>
<head>
</head>
<body bgcolor="#dddddd">
<p> Hello world—————————–</p>
</body>
</html>
02-22-2013 05:49 AM
02-22-2013 12:53 PM
mail.parameters.template = companyhome.childByNamePath("Dictionnaire de données/Modèles d'e-mail/alfeo/noteAlerte/notify.noteAlerte.ftl");
02-23-2013 01:53 AM
02-24-2013 04:23 AM
02-24-2013 03:33 PM
doc.properties.content.setEncoding("UTF-8");
doc.content += "\r\n\r\nCopyright (C) xxxx - 2013";
doc.mimetype = "text/plain";
doc.properties["cm:title"] = titre;
doc.properties["cm:description"] = "note générée depuis un web-script";;
// add aspect dublincore
doc.addAspect("cm:dublincore");
doc.properties["cm:author"] = emetteur;
doc.properties["cm:publisher"] = "xxxx";
// save doc
doc.save();
// create mail action
var mail = actions.create("mail");
var tomany = new Array();
var m = destinataire.split(",");
for ( var i=0 ; i<m.length ; i++ )
{
tomany=m;
}
mail.parameters.to_many = tomany;
mail.parameters.subject = "Note d'alerte : " + titre;
mail.parameters.from = "xxxx@xxxx.fr";
var mailTemplate=companyhome.childByNamePath("Dictionnaire de données/Modèles d'e-mail/y/y/notify.noteAlerte.ftl");
mail.parameters.template = mailTemplate;
mail.parameters.text = doc.getContent() +
"\n —fin—";
mail.execute(doc);
// setup model for response template
model.doc = doc;
<tr>
<td width="150">Thème :</td>
<td><input name="theme" size=74 value="${document.properties["cm:coverage"] }"></td>
</tr>
<tr><td align="center" colspan=2 style="color:DarkSeaGreen ;background-color :Wheat ; ">Informations Brutes</td></tr>
<tr>
<td width="150">Titre :</td>
<td><input name="titre" size=74 value="${document.properties["cm:subject"] }"></td>
</tr>
<tr>
<td width="150">Texte :</td>
<td ><textarea name="texte" cols=100 rows=10>${document.properties["cm:content"] }</textarea></td>
</tr>
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.