0 votes

I would like to be able to build message with unquoted sender name, but render method of MailBox seems to always add quotes, as reproduced by following snippet:

var fromAddress = new System.Net.Mail.MailAddress("test@test.ru","test");
new MailBox(fromAddress.Address, fromAddress.DisplayName).Render().Dump();

ouput is

"test" <test@test.ru>

Is there any setting to prevent this behaviour?

by (210 points)

1 Answer

+1 vote

This is correct behavior. Quotes are not part of the display name.

If your mail client displays quotes you should report this error to the mail client development team.

by (301k points)
...