none
Create Office 365 Signature using Asp.net Webforms RRS feed

  • Question

  • HI Team,

    Iam Working on Create  Signature  For Office 365,Iam already using IndepedentSoft.Exchange.dll Trailed version but it Expired now i want to Connect to OwaOptions  from Asp.net  Without Trail Version dll.

    Any one Please help me,is there any way to use to connect OWaOptions.

    Thank You 

    Tuesday, November 10, 2015 8:47 AM

Answers

  • Hi Pavani,

    As far as I know, we can use Exchange managed API or Exchange web service to interact with Exchange. And we can use UserConfiguration class manipulate user-defined configuration settings. For example, here is the code creating the signature for the OWA:

    static void SetSigniture(ExchangeService service) {
          service.TraceEnabled = true;
          Folder Root = Folder.Bind(service, WellKnownFolderName.Root);
          UserConfiguration OWAConfig = UserConfiguration.Bind(service, "OWA.UserOptions", Root.ParentFolderId, UserConfigurationProperties.All);
          String hsHtmlSigniture = "www.blah.com\">Glen Scales";
          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);
          }
          OWAConfig.Update();
        }
    

    More detail, you can refer to the thread below:
    https://social.msdn.microsoft.com/Forums/en-US/0b654e7f-2206-44bb-a595-7eed4c299c5b/how-to-create-an-owa-email-signature-by-using-ews

    In addition, here are some helpful links for this topic:
    UserConfiguration classWorking with user configuration objects by using the EWS Managed API 2.0

    If you still have problem about developing with Exchange, I suggest that you reopen a new thread in Exchange Server Development forum.

    And if you have any developing issues about Office add-ins, please feel free to ask in this forum.

    Regards & Fei


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, November 12, 2015 1:57 AM
    Moderator

All replies

  • Hi Pavani,

    As far as I know, we can use Exchange managed API or Exchange web service to interact with Exchange. And we can use UserConfiguration class manipulate user-defined configuration settings. For example, here is the code creating the signature for the OWA:

    static void SetSigniture(ExchangeService service) {
          service.TraceEnabled = true;
          Folder Root = Folder.Bind(service, WellKnownFolderName.Root);
          UserConfiguration OWAConfig = UserConfiguration.Bind(service, "OWA.UserOptions", Root.ParentFolderId, UserConfigurationProperties.All);
          String hsHtmlSigniture = "www.blah.com\">Glen Scales";
          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);
          }
          OWAConfig.Update();
        }
    

    More detail, you can refer to the thread below:
    https://social.msdn.microsoft.com/Forums/en-US/0b654e7f-2206-44bb-a595-7eed4c299c5b/how-to-create-an-owa-email-signature-by-using-ews

    In addition, here are some helpful links for this topic:
    UserConfiguration classWorking with user configuration objects by using the EWS Managed API 2.0

    If you still have problem about developing with Exchange, I suggest that you reopen a new thread in Exchange Server Development forum.

    And if you have any developing issues about Office add-ins, please feel free to ask in this forum.

    Regards & Fei


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, November 12, 2015 1:57 AM
    Moderator
  • Thanks a lot i got solution,and my solution is working fine.
    Tuesday, December 8, 2015 6:55 AM