B
Bharathi
Hi,
I am using Outlook 2003. I am developing an Add-in using Visual Studio
2005 (C#).
I have coded a method called "SendMail()" as followed:
public void SendMail()
{
MailItem newMI = (MailItem)
((Microsoft.Office.Interop.Outlook.Application)applicationObject).CreateItem(OlItemType.olMailItem);
newMI.To = "(e-mail address removed)";
newMI.Subject = "Test User Property";
newMI.UserProperties.Add("myUserProperty",
OlUserPropertyType.olText, true, OlUserPropertyType.olText);
newMI.UserProperties["myUserProperty"].Value = "My
First User Property";
newMI.Save();
newMI.Send();
}
In the above method, I have created a userproperty called
"myUserProperty" and I am sending the mail to my gmail ID. When I log
into gmail and open this mail, I am unable to see my userProperty.
What modifications do I need to make to the code so that I see
myUserProperty in my gmail?
Regards,
Bharathi
I am using Outlook 2003. I am developing an Add-in using Visual Studio
2005 (C#).
I have coded a method called "SendMail()" as followed:
public void SendMail()
{
MailItem newMI = (MailItem)
((Microsoft.Office.Interop.Outlook.Application)applicationObject).CreateItem(OlItemType.olMailItem);
newMI.To = "(e-mail address removed)";
newMI.Subject = "Test User Property";
newMI.UserProperties.Add("myUserProperty",
OlUserPropertyType.olText, true, OlUserPropertyType.olText);
newMI.UserProperties["myUserProperty"].Value = "My
First User Property";
newMI.Save();
newMI.Send();
}
In the above method, I have created a userproperty called
"myUserProperty" and I am sending the mail to my gmail ID. When I log
into gmail and open this mail, I am unable to see my userProperty.
What modifications do I need to make to the code so that I see
myUserProperty in my gmail?
Regards,
Bharathi