// Example of Using Embedded commands to
// Send email by Outlook 365 Web App - Work Account (Enterprise Edition only)
// It requries Ent. pack license 
%%EmailEnable: True%%// Enable emailing

// For Office365, From address needs matching the account email or its aliases
// From, To, Cc addresses can be set directly or resolved from env variables
%%EmailFrom: %JOBFROM% %%	
%%EmailTo: %JOBTO% %%
%%EmailCc: %%

%%EmailSubject: Sending by Office365 SMTP Server%%

%%EmailContent: <html><head></head><body>
%%EmailContent: &The attached file is  %#FNAME#. <br/>%%
// reference image with cid: for embedding images in Emails
// need using EmailAttachImg to attach the image files
%%EmailContent: &inline image: <img src="cid:inline_demo1.png"width="300">%%

%%EmailContent: &<br/><br/> Best regards<br/>%%
%%EmailContent: &</body></html>%%
// embed images into email
%%EmailAttachImg: inline_demo1.png<g:\temp\hello1.png>%%
// EmailSendMethod: 7 			// by Officce365 SMTP-STARTTLS BASIC  
// EmailSendMethod: 8 			// by Officce365 SMTP-STARTTLS XOAUTH2  
%%EmailSendMethod: 8%% 	
%%EmailSendAsHTML: True%%// Send Email content in HTML
%%EmailSMTPUserName: %JOBFROM% %%
%%EmailSMTPPassword: %%	// not necessary for XOAUTH2