2
votes

How do you send and email using Imapclient() ?

Using the examples on this page: Mimekit Documentation

I can't seem to find the method used to send and email once logged into IMAP and created the message. Installed via Nuget and installed latest release Have added this to my code:

using MimeKit;
using MailKit;
using MailKit.Search;
using MailKit.Security;
using MailKit.Net.Imap;

And references to Mailkit and Mimekit dll's. Am I missing something ?

1

1 Answers

5
votes

IMAP is only for reading mail, it cannot be used for sending mail.

To send mail, you need to use the SmtpClient.