jstedfast / MailKit

A cross-platform .NET library for IMAP, POP3, and SMTP.
http://www.mimekit.net
MIT License
6.03k stars 809 forks source link

Virtual-mta value information #1766

Open Bhupendersinghbisht opened 2 days ago

Bhupendersinghbisht commented 2 days ago

While using Mailkit to send mail, we are using X-virtual-mta as header now.

But not sure about how to get it's value. Do we need to check with MTA or how to figure out MTA of Mailkit.net.smtp.

mail message.Headers.Add("X-virtual-mta","VALUE");

Any help on this will be appreciated.

jstedfast commented 2 days ago

I've never even heard of X-Virtual-MTA but it sounds more likely that it's the SMTP server that should be setting that header, not any client.