function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
aruna11.3081223889641084E12aruna11.3081223889641084E12 

How to add hidden data to email.

Hi,

 

As per the requirement, i have to send email from Visualforce page through outlook client.

So, on Visualforce page, in a javascript code, i am invoking Outlook client and composing the email.

Email  will be displayed to the user in outlook window and before sending it, user can modify the data.

But i need to pass some hidden content to that email like contact ids which i cannot pass in emial body as user may delete it.

 

Please find below the code script and suggest how to pass hidden in email while sending email through outlook client. 

 

var outlookApp = new ActiveXObject("Outlook.Application");

var nameSpace = outlookApp.getNameSpace("MAPI");

var mailFolder = nameSpace.getDefaultFolder(6);

var mailItem = mailFolder.Items.add('IPM.Note.FormA');

mailItem.Subject= emailSubjectArray[0];

mailItem HTMLBody = bodyString;

mailItem.Bcc = bccArrayString;

Display(0);

 

Is there any method available in MAPI which will allow me to set hidden data along with email header ???

 

 

Your help will be greatly appreciated.!!

 

Thanks,

Aruna

 

 

 

aruna11.3081223889641084E12aruna11.3081223889641084E12

Can someone help me with the above scenario if faced such a challenge before... ????