1
我有一個Office 365帳戶,並在我的Office 365帳戶中應用了一個HTML簽名。本地展望和OWA簽名
在我本地我配置我的Outlook與此Office 365帳戶。當我從本地Outlook發送電子郵件時,它不會考慮Office 365的簽名。
有沒有可能在我的本地Outlook上應用相同的簽名?如果我更改了Office 365帳戶中的簽名,則相同的簽名應該適用於我的本地Outlook。
目前我正在嘗試這個C#代碼。
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2013_SP1);
service.Credentials = new WebCredentials(user, pasd);
service.AutodiscoverUrl(user, RedirectionUrlValidationCallback);
service.TraceEnabled = true;
Folder Root = Folder.Bind(service, WellKnownFolderName.Root);
UserConfiguration OWAConfig = UserConfiguration.Bind(service, "OWA.UserOptions", Root.ParentFolderId, UserConfigurationProperties.All);
hsHtmlSigniture = div;
String stTextSig = "Text sig";
if (OWAConfig.Dictionary.ContainsKey("signaturehtml"))
{
OWAConfig.Dictionary["signaturehtml"] = hsHtmlSigniture;
}
else
{
OWAConfig.Dictionary.Add("signaturehtml", hsHtmlSigniture);
}
if (OWAConfig.Dictionary.ContainsKey("signaturetext"))
{
OWAConfig.Dictionary["signaturetext"] = stTextSig;
}
else
{
OWAConfig.Dictionary.Add("signaturetext", stTextSig);
}
歡迎來到Stack Overflow!我編輯了你的問題來解決一些語法錯誤。我還將代碼示例縮進了4個空格,以便它能夠正確渲染 - 請參閱編輯幫助以獲取有關格式化的更多信息。祝你好運! – Wtower