+1 vote

If I have the mail, and in “To” field there is an email address, that I want to change to another email address. How can I do it?

by

1 Answer

0 votes

Please note that MailBox instances are immutable, so to change To email header you'll need modify IMail.To collection:

IMail email = .....;
email.To.Clear();
email.To.Add(new MailBox("alice@mail.com", "Alice"));
by (297k points)
...