Converting exchange email to smtp email

后端 未结 2 1977
迷失自我
迷失自我 2021-01-29 02:00

Is it possible to convert the exchange email to smtp email. I could find some help while googling, but the solutions are not feasible as I\'m using the older version (outlook 2

相关标签:
2条回答
  • 2021-01-29 02:17

    I am using this way for my .Net:

    service.ResolveName(emailAddress.Address).First().Mailbox.Address
    // emailAddress.Address = "/o=ExchangeLabs/ou=Exchange(abc)/cn=Recipients/cn=xyz"
    // => abc@xyz.com
    

    ResolveName method reference: https://msdn.microsoft.com/en-us/library/dd635548(v=exchg.80).aspx

    I am using .Net instead of VBA. However hope will inspire your VBA code.

    0 讨论(0)
  • 2021-01-29 02:17
    MailItem.Sender.GetExchangeUser().PrimarySmtpAddress
    

    I know this works for Outlook 2010, but your mileage may vary with 2003.

    0 讨论(0)
提交回复
热议问题