{"id":3584,"date":"2012-12-17T18:27:01","date_gmt":"2012-12-17T16:27:01","guid":{"rendered":"http:\/\/www.limilabs.com\/blog\/?p=3584"},"modified":"2012-12-17T18:27:53","modified_gmt":"2012-12-17T16:27:53","slug":"system-net-mail-vs-mail-dll","status":"publish","type":"post","link":"https:\/\/www.limilabs.com\/blog\/system-net-mail-vs-mail-dll","title":{"rendered":"System.Net.Mail vs Mail.dll"},"content":{"rendered":"<p>In this article we&#8217;ll try to describe advantages of Mail.dll over standard .NET <em>System.Net.Mail<\/em> namespace.<\/p>\n<p>The fundamental difference is that with <strong><em>System.Net.Mail<\/em> you can&#8217;t receive emails<\/strong>. <em>System.Net.Mail<\/em> does not have support for POP3 and IMAP protocols &#8211; two fundamental protocols for email retrieval, also .NET does not have any classes that would parse received email.<\/p>\n<p><em>System.Net.Mail<\/em> is great for sending simple emails, but Mail.dll gives you much more, even in terms of sending. You get appointments (iCal) and vCard support, you can send S\/MIME signed and encrypted emails (if you plan to use EDI). It gives you easy to use template engine and VERP support out-of-the-box.<\/p>\n<p>Here&#8217;s the comparison chart:<\/p>\n<table>\n<tr>\n<th>\n<\/th>\n<th style=\"padding: 5px\" >\nSystem.Net.Mail\n<\/th>\n<th style=\"padding: 5px\" >\n<a href=\"\/mail\">Mail.dll component<\/a>\n<\/th>\n<\/tr>\n<tr>\n<td>\n    Send emails\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/yes.png\" alt=\"yes\" title=\"yes\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/yes.png\" alt=\"yes\" title=\"yes\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<\/tr>\n<tr>\n<td>\n    SMTP protocol support (over SSL\/TLS)\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/yes.png\" alt=\"yes\" title=\"yes\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/yes.png\" alt=\"yes\" title=\"yes\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<\/tr>\n<tr>\n<td>\n    Send emails using VERP\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/no.png\" alt=\"no\" title=\"no\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/yes.png\" alt=\"yes\" title=\"yes\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<\/tr>\n<tr>\n<td>\n    Send <strong>S\/MIME<\/strong> encrypted emails\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/no.png\" alt=\"no\" title=\"no\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/yes.png\" alt=\"yes\" title=\"yes\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<\/tr>\n<tr>\n<td>\n    Send <strong>S\/MIME<\/strong> signed emails\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/no.png\" alt=\"no\" title=\"no\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/yes.png\" alt=\"yes\" title=\"yes\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<\/tr>\n<tr>\n<td>\n    Send <strong>S\/MIME<\/strong> signed emails (detached)\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/no.png\" alt=\"no\" title=\"no\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/yes.png\" alt=\"yes\" title=\"yes\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<\/tr>\n<tr>\n<td>\n    Send DKIM (Domain Key Identified Mail)\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/no.png\" alt=\"no\" title=\"no\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/yes.png\" alt=\"yes\" title=\"yes\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<\/tr>\n<tr>\n<td>\n    Templates support\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/no.png\" alt=\"no\" title=\"no\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/yes.png\" alt=\"yes\" title=\"yes\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<\/tr>\n<tr>\n<td>\n    <strong>Receive emails<\/strong>\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/no.png\" alt=\"no\" title=\"no\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/yes.png\" alt=\"yes\" title=\"yes\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<\/tr>\n<tr>\n<td>\n    <strong>IMAP <\/strong>protocol support (over SSL\/TLS)\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/no.png\" alt=\"no\" title=\"no\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/yes.png\" alt=\"yes\" title=\"yes\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<\/tr>\n<tr>\n<td>\n    <strong>POP3 <\/strong>protocol support (over SSL\/TLS)\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/no.png\" alt=\"no\" title=\"no\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/yes.png\" alt=\"yes\" title=\"yes\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<\/tr>\n<tr>\n<td>\n    Retrieve and parse emails\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/no.png\" alt=\"no\" title=\"no\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/yes.png\" alt=\"yes\" title=\"yes\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<\/tr>\n<tr>\n<td>\n    Extract HTML, plain text, images\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/no.png\" alt=\"no\" title=\"no\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/yes.png\" alt=\"yes\" title=\"yes\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<\/tr>\n<tr>\n<td>\n    Attachment retrieval\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/no.png\" alt=\"no\" title=\"no\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/yes.png\" alt=\"yes\" title=\"yes\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<\/tr>\n<tr>\n<td>\n    Send and retrieve iCalendar appointments\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/no.png\" alt=\"no\" title=\"no\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/yes.png\" alt=\"yes\" title=\"yes\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<\/tr>\n<tr>\n<td>\n    Send and retrieve vCards\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/no.png\" alt=\"no\" title=\"no\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/yes.png\" alt=\"yes\" title=\"yes\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<\/tr>\n<tr>\n<td>\n    OAuth 1.1a\/2.0 support\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/no.png\" alt=\"no\" title=\"no\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/yes.png\" alt=\"yes\" title=\"yes\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<\/tr>\n<tr>\n<td>\n    Spam filter\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/no.png\" alt=\"no\" title=\"no\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/yes.png\" alt=\"yes\" title=\"yes\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<\/tr>\n<tr>\n<td>\n    Bounce handling\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/no.png\" alt=\"no\" title=\"no\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/yes.png\" alt=\"yes\" title=\"yes\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<\/tr>\n<tr>\n<td>\n    Convert HTML only emails to plain text\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/no.png\" alt=\"no\" title=\"no\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<td>\n  <img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2012\/12\/yes.png\" alt=\"yes\" title=\"yes\" width=\"20\" height=\"20\" class=\"aligncenter\" \/><\/a>\n<\/td>\n<\/tr>\n<\/table>\n<p>If you need help or more information about any of these features visit <a href=\"\/mail\/samples\">Mail.dll samples<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article we&#8217;ll try to describe advantages of Mail.dll over standard .NET System.Net.Mail namespace. The fundamental difference is that with System.Net.Mail you can&#8217;t receive emails. System.Net.Mail does not have support for POP3 and IMAP protocols &#8211; two fundamental protocols for email retrieval, also .NET does not have any classes that would parse received email. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[18,28,41,42,50,53,83],"class_list":["post-3584","post","type-post","status-publish","format-standard","hentry","category-mail-dll","tag-dkim","tag-imap","tag-oauth","tag-pop3","tag-smtp","tag-ssl","tag-tls"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/posts\/3584"}],"collection":[{"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/comments?post=3584"}],"version-history":[{"count":53,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/posts\/3584\/revisions"}],"predecessor-version":[{"id":3741,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/posts\/3584\/revisions\/3741"}],"wp:attachment":[{"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/media?parent=3584"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/categories?post=3584"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/tags?post=3584"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}