How to get only vendorspms@gmail.com instead of all this string “vendorspms@gmail.com” <vendorspms@gmail.com>
i have used mailitems.To.tostring the result was “vendorspms@gmail.com” <vendorspms@gmail.com>
How to get only vendorspms@gmail.com instead of all this string “vendorspms@gmail.com” <vendorspms@gmail.com>
i have used mailitems.To.tostring the result was “vendorspms@gmail.com” <vendorspms@gmail.com>
Try “mailItems.To.First().DisplayName” to read Display Name only from “To Address” from a MailMessage, in this expression mailItems is a mailMessage not List
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.