Does anybody know if MailKit supports a read receipt (reply message on read)? I have not found anything on the web or on Stackoverflow.
Read receipts (i.e. automated messages being sent when a user opens a message) is not something that MailKit can do automatically, it must be implemented by the software using MailKit or by the mail server.
This feature is something that generally only groupware suites like Microsoft Exchange, Lotus Notes, and Novell Groupwise implement.
It is a feature that can be implemented by the mail server or by the mail client, but it is not a feature of any of the mail protocols and so MailKit does not implement it.
If you would like to support sending read receipts, you will need to automatically create a MimeMessage with a MessageDispositionNotification body part and send it when the user opens/reads a message in your client program.
To request a read receipt for a MimeMessage, you will need to set the Disposition-Notification-To header field like this:
message.Headers[HeaderId.DispositionNotificationTo] = "me#example.com";
If the receiving user agent supports read receipts and it is configured to send them, then you will theoretically receive one when the user reads the message.
For more information about read receipts, see rfc3798.
Related
When user registers in my system (web application), I want to send him an email with verification link so I can verify email address is correct and belongs to the user. Link will be shipped in text/html body version so user can directly click on it and open it in browser.
I just wondering should I fill a text/plain body too? Mimekit documentation mentions "The reason for sending the message text in both formats is that not all mail clients are capable of displaying HTML." but I suppose nowadays all modern mail clients should be able to support this.
I'm using c# and mimekit for sending emails.
My system targets enterprise customers, so some legacy systems should be kept in mind.
I need to sync sent mails with the sent folders of mail servers, for the users to see at future moments. I can send mails using all these 3 ways, SMTP, CDO and Microsoft Outlook Object(MOO); out of which I can only see my sent mails with MOO. Now the problem is, Not all clients are using outlook, and thus its more impractical to use this.
Out of exercise, I had also used MAPI to send mails, but that don't send HTML body. Also I looked over this topic Microsoft Sent folder, but that don't solve my problem.
So is there anyway, I can send mail with HTML body and sync the sent mail with Sent Folder. ?
Thanks.
You can do that with Extended MAPI (C++ or Delphi), but you probably mean Simple MAPI.
If you are connecting to an Exchange mailbox, EWS is another option.
I am trying to send email using the outlook in my c# app, works fine but i am getting this annoying popup message all the time saying,
"A program trying to send an e-mail message on your behalf"
How can I remove this message ?
Yes, this can be configured in the trust centre for your version of Outlook - you'll want to allow programmatic access.
There is the (big) caveat with this that it would allow malicious software on your PC to send email as you, and there have been worms that have used this as a propagation method in the past.
do you have to use Outlook API to do this - you can use
System.Net.Mail SmtpClient instead which will not give you this message
sending mail as smtp client
I have an application that run on server,
I want that my application could received mail in order to start some function.
I would like to know what should I need to do in order to have this capability?
Do I need to build SMTP server? if so, how should I do it?
You can try: http://www.lumisoft.ee/lsWWW/download/downloads/ .
There is SMTP server component what you can use to recieve emails.
Or alternatively there is SMTP server written in C#, you can write message filter for server.
In filter you can access incoming message and do what ever you want with it.
--- Yes also as others suggested will work ok too, you just run simple mail server and get emails by pop3 or imap. Pop3 and Imap components and example applications also included in same link.
You can use IIS6 to receive email and drop it into a specified folder. Your app can then pick up those emails and do whatever it needs to with them.
Active the SMTP service in IIS. It drops emails in the C:\inetpub\smtproot\drop folder IIRC.
Then you just need a Mime parser to read the EML files. I used the one in Lumisoft when I did the same thing.
You could use any Mailserver to receive the mail and have your application check the poxtbox every 1 minute to receive the mails.
When any mail arrived (or special subject as you need), you could execute your code.
For IMAP you could look at this Library
I have previously had some success using the Chilkat POP3 component to programmatically monitor a POP3 account for incoming mail.
Are there any examples which show how to hook into an Exchange mail send event?
I would like to
Add marketing information to all emails sent through our Exchange server when they are going to an external address.
Start a workflow when emails are sent
I know I could use transport rules to complete the first request, however this would need be implemented using .NET 3.5/4.0 and C# as it requires a custom GUI.