0
I have a system that checks emails, and I have the following code where it searches the recipient or the field "with copy":
if (client.GetMessage(i).Headers.To != null)
{
var msgTemp = client.GetMessage(i).Headers.To.FirstOrDefault(x => x.Address.Contains("exemplo"));
emailDestinatario = msgTemp != null ? msgTemp.Address.ToString() : "";
if (string.IsNullOrEmpty(emailDestinatario))
{
msgTemp = client.GetMessage(i).Headers.Cc.FirstOrDefault(x => x.Address.Contains("exemplo"));
emailDestinatario = msgTemp != null ? msgTemp.Address.ToString() : "";
}
}
However, I need to get the CCO, it is possible to get this?