// Example of Using Embedded commands to
// Send email by Gmail Web App (Enterprise Edition only), It requries Ent. pack license 
// Please provide your own enterprise Google Oauth2 App ID and secret
%%EmailGAppID: %%
%%EmailGAppSecret: %%
// the default scope is https://www.googleapis.com/auth/gmail.compose 
%%EmailGPermScope: %%
%%EmailOAuth2ReAuth: %%	// set to True to override to previous authetication
%%DestEnablePostAction: False%%	// do not launch pdf reader
%%EmailEnable: True%%// Enable emailing
// It can now set to launch Browser (Edge/Chrome) using the specific profile for OAuth2
%%EmailOAuth2Browser: 2%% // 1: Edge, 2: Chrome 

// Users can set EmailBrowserProfileEmail to the email address of the Browser profile.
// The email address of a Browser profile usually means the email address signing the Browser.
// For example, in Edge, it is the email signing in Microsoft365. Or it is the Google account in Chrome.
%%EmailBrowserProfileEmail: %%
// set the below setting to True, it will use the Browser profile with email addr as the EmailFrom
%%EmailBrowserProfileByFrom: True%%

// 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: %GmailFrom% %%	
%%EmailTo: %JOBTO% %%
%%EmailCc: %%

%%EmailSubject: Save emails to Gmail Drafts folder%%

%%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: 9 			// by OWA Client- Work Account  
// EmailSendMethod: 10 		// by OWA Silent- Work Account  
// EmailSendMethod: 13		// Launch Gmail Web Client OAuth 2.0
// EmailSendMethod: 14 		// Sent direcly by Gmail OAuth 2.0 API 

%%EmailSendMethod: 14%% 	
%%EmailSendAsHTML: True%% // Send Email content in HTML
%%EmailNotSubmit: True%% // Save to Drafts