Krishnan Venkiteswaran
Krishnan Venkiteswaran

Reputation: 636

Mailkit adding a line-break in the Sender header of the email

While using Mailkit, I have noticed that it adds a line break if the email address is lengthy. For example, take the set of headers below

Sender: Paranoid Human 
<[email protected]>

The source code I use for setting it is as follows.

 message.Sender = new MailboxAddress("Paranoid Human","[email protected]");  

Is there a way I can fix this?.

Upvotes: 1

Views: 583

Answers (1)

jstedfast
jstedfast

Reputation: 38573

No, there is no way to "fix" this because it isn't broken :)

The specifications specify that header values should be folded if they are long and that is what you are seeing.

This is not a problem because receiving clients will unfold the headers.

Upvotes: 2

Related Questions