Component for sending mail messages using MS Exchange. This components works correctly only within the MS Exchange server container.
General properties of the element are described here . Specific ones are shown in the table below.
Please note that all properties except To are not mandatory. If only the recipient is specified, a blank email will be sent.
C# Python JavaScript
Copy LTools.Office.MSExchangeApp app = LTools.Office.MSExchangeApp.InitSvc(wf, Microsoft.Exchange.WebServices.Data.ExchangeVersion.Exchange2013_SP1, "server url", "login", "pass", "domain");
LTools . Office . Model . OMailMessage msg = new LTools . Office . Model . OMailMessage () { Subject = "subject" , Body = "body" };
app . SendMessage (msg);
app.SendMessage("body", "sendTo", "subject", new List<string>() { "file1" }, LTools.Office.Model.OMailMessage.MailFormats.HTML);
Copy app = LTools.Office.MSExchangeApp.InitSvc(wf, Microsoft.Exchange.WebServices.Data.ExchangeVersion.Exchange2013_SP1, "server url", "login", "pass", "domain")
msg = LTools . Office . Model . OMailMessage ()
msg . Subject = "subject"
msg . Body = "body"
app . SendMessage (msg)
att = List [ String ]()
att . Add ( "file1" )
app . SendMessage ( "body" , "sendTo" , "subject" , att, LTools.Office.Model.OMailMessage.MailFormats.HTML)
Copy var host = new _lib . Microsoft . ClearScript .HostFunctions ();
var app = _lib.LTools.Office.MSExchangeApp.InitSvc(wf, _lib.Microsoft.Exchange.WebServices.Data.ExchangeVersion.Exchange2013_SP1, "server url", "login", "pass", "domain");
var msg = host .newObj ( _lib . LTools . Office . Model .OMailMessage);
msg .Subject = "subject" ;
msg .Body = "body" ;
var att = host .newObj ( _lib . System . Collections . Generic .List ( _lib . System .String));
att .Add ( "file1" );
app .SendMessage (msg);
app .SendMessage ( "body" , "sendTo" , "subject" , att , _lib . LTools . Office . Model . OMailMessage . MailFormats . HTML );
Last updated 4 months ago