Aspose.Email for .NET 是一組控件用于輕松的開發(fā) email 功能的應(yīng)用程序,基于 ASP.NET 的Web應(yīng)用、Web服務(wù)和Windows 應(yīng)用。支持 Outlook PST, EML, MSG, and MHT 格式. 允許開發(fā)者直接與 SMTP, POP, FTP, 和 MS Exchange 服務(wù)器進(jìn)行通信。支持郵件合并、iCalendar、定制郵件頭和內(nèi)容、嵌入文件等等。
示例代碼:
// Initialize the MailPrinter class
MailPrinter msgPrinter = new MailPrinter();
// Load an email message
MailMessage msg = MailMessage.Load("attached and embedded image.msg", MessageFormat.Msg);
// Call Print() method
msgPrinter.Print(msg, "test.xps", PrintFormat.XPS);