on 08-25-2020 6:10 AM
Hi All,
I am executing a process and result is getting recorded in an Excel File. Now I want to attach this Excel file and send it to mail via Outlook. How can I do that ? Please share example.
Regards
Indranil
// Initializes “Microsoft Outlook” application.
ctx.outlook.init();
// Creates a basic mail.
ctx.outlook.mail.create({
To:'to@mail.com',
Cc:'cc@mail.com',
Subject:'subject'
})
ctx.outlook.mail.setBodyHtml(0,'body');
ctx.outlook.mail.attach(0, 'D:\\test.xlsx');
try {
// Sends the mail.
var res = ctx.outlook.mail.sendUsingAccount(0, 'send@mail.com');
} catch (err) {
return e.error.KO;
}
// Ends “Microsoft Outlook” application.
ctx.outlook.end();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.