0 votes

In your documentation MailBox.Address showing "john.smith@example.com" as value but when i am actually using it, It gives me "Address='john.smith@example.com'" value as Address prefix. Is there any way we can get address value only.

by (760 points)
What exactly are you doing - please show some code.
add.GetMailboxes()[0].Address I am using this and add is MailAddress variable.
You must be using .ToString() method.

1 Answer

0 votes

You must be using .ToString() method, as this is how MailBox.ToString() behaves ($"Name='{Name}' Address='{Address}'").

If you have problems processing a message please contact us directly with the raw eml data of the message.

by (301k points)
...