Hi there, i have a question about How to get the CC's display name

Hi there, i have a question about How to get the CC’s display name.
If i want to get the sender’s display name, i can use email.Sender.DisplayName to get it.
But, if i want to get the CC’s display name, How to get it?
email.CC.ToString only can get the email address, not display name.
Thanks in advance.

Hi,

MailMessage.CC property returns MailAddressCollection class.
So we need to handle it as the following.

Note: item is MailMessage type and cc is MailAdress type.

Regards,

3 Likes

Dear Yoichi, Solved, thanks so much~~~

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.