0

Keeping an HTML webpage's contents in a string variable.

I need to attach the webpage to an email, and send it
(so the webpage is an attachment, not part of the main email).

string htmlWebpage = "<!DOCTYPE html> <html><body> Attached Page </body></html>";

string mimeType = "???";

var att = System.Net.Mail.Attachment.CreateAttachmentFromString(htmlWebpage, mimeType);

What is the correct MIME type to use?

4

1 に答える 1

0

正しい MIME タイプはtext/html.

于 2013-09-05T16:31:24.213 に答える