System.Net.Mail vs Mail.dll
In this article we’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’t receive emails....
View ArticleHow to shorten Connect timeout
Connect and BeginConnect methods take quite a long time to timeout, when you use incorrect server address. It usually takes almost 20 seconds for those methods to decide that connection is impossible....
View ArticleHTML formatted content in the description field of an iCalendar
By default, the iCalendar specification allows only plain text to be used in the description of an Event object. X-ALT-DESC header However Outlook can recognize HTML formatted content. This is...
View ArticleGmail’s SPECIAL-USE capability is broken
Recently it came to my attention that Gmail’s XLIST command is deprecated. XLIST is a custom Gmail command that retrieves information about the folder purpose, without the need of knowing the folders...
View ArticleProcessing a read receipt (MDN)
You can also read how to: Request a read receipt Create a read receipt In this article we’ll show how to process a read receipt. Read receipts also known as MDNs or Message Delivery Notifications are...
View ArticleCreating read receipt (MDN)
You can also read how to: Request a read receipt Process a read receipt In this article we’ll show how to create and send read receipt. Read receipts also known as MDNs or Message Delivery...
View ArticleRequesting Delivery Status Notifications (DSN)
In this article I am going to explain how to request Delivery Status Notifications (DSN) regarding email delivery. Delivery notifications are used to trace, if the email is delivered, bounced or...
View ArticleGet Google contacts with OAuth 2.0
Although neither POP3 nor IMAP protocol allows retrieving the list of user’s contacts, it is possible to use Google API for that. As long as you are using one of OAuth 2.0 scenarios: OAuth 2.0 with...
View ArticleOAuth 2.0 with Gmail over IMAP for service account
You can also read how to use: OAuth 2.0 with Gmail over IMAP for web applications OAuth 2.0 with Gmail over IMAP for installed applications OAuth 2.0 with Gmail over IMAP for service account In this...
View ArticleDownload Gmail Chat Logs via IMAP
You can download all Gmail and Google Talk conversations using IMAP protocol. Gmail can turn your instant messaging conversations into threads of emails — available conveniently for download anywhere...
View ArticleSend email with custom header
In this article we’ll show how to create and send email message with custom header added. As a prerequisite you need to add reference to Mail.dll .NET email component to your project. In contrast to...
View ArticleThe handshake failed due to an unexpected packet format
Most likely your server requires explicit SSL, sometimes also known as TLS. It is called explicit SSL mode because after the connection is established, client explicitly issues a command to the server...
View ArticleRead system.net/mailSettings/smtp settings from web.config
There is a standard way of specifying SMTP settings in .NET applications. .NET uses config files (app.config or web.config in case of ASP.NET) and element to specify the appropriate SMTP parameters to...
View ArticleGet IIS pickup directory location
If you plan to use local IIS SMTP service to send emails you created using Mail.dll, you’ll need to save those emails to IIS pickup folder. Default folder location is “c:\Inetpub\mailroot\Pickup” There...
View ArticleCopy to public folder: “There is no replica for that mailbox on this server.”
When copying an mail from the personal folder to a Public folder, you may receive “There is no replica for that mailbox on this server.” error. This error is generated by Exchange server and...
View ArticleOutlook.com announces IMAP support
We’re happy to announce that Microsoft finally added IMAP (and OAuth) support for Outlook.com (this includes @hotmail accounts). With yesterday’s announcement, Outlook has a richer email experience...
View ArticleOAuth 2.0 with Outlook.com over IMAP for web applications
You can also read how to use: OAuth 2.0 with Outlook.com over IMAP for installed applications OAuth 2.0 with Outlook.com over IMAP for web applications OAuth is an open protocol to allow secure API...
View ArticleOAuth 2.0 with Outlook.com over IMAP for installed applications
You can also read how to use: OAuth 2.0 with Outlook.com over IMAP for installed applications OAuth 2.0 with Outlook.com over IMAP for web applications OAuth is an open protocol to allow secure API...
View ArticleRemove attachments from email
Replace attachments in email message Remove attachments from email First, there is one thing you must be aware of: neither POP3 nor IMAP protocol provide a way to remove attachments from existing...
View ArticleTried to read a line. Only ” received.
MailForWindowsStore.dll If you are using MailForWindowsStore.dll: Connect and ConnectSSL methods are asynchronous. You must use await ConnectSSL and await Connect: // C# using(Imap imap = new Imap()) {...
View Article