Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to receive EMails in C# application?

Tags:

c#

I have an application build in C# for reading and saving SMS and MMS, now i want to add another functionality of reading EMails through my C# application using any mail servcies e.g gmail, hotmail or yahoo? How to do this in C#?

like image 421
Sheery Avatar asked Apr 21 '10 05:04

Sheery


People also ask

How to send a mail in C program?

Inside the C program using the mail command and system function you can send the mail to the user. Note: The file should be exists. If you want to type the content, yiu can type the content inside the file, then send that file to receiver.

How to send an email with images in C#?

When trying to send an email with images in C#, you’re not going to use a typical <img src="" alt="" /> construction. It would add an image attachment to the email and that’s the last thing we need right now. Instead, we’ll use LinkedResource object to directly embed an image in the HTML version of our message to the Queen.

How do I send an e-mail from the command line?

Run sendmail and pass the e-mail to its standard input (on unix-like systems), or use some SMTP client library to connect to SMTP mail server. Show activity on this post. Use system () to call an existing command-line tool to send mail. Not very portable (requires an external tool with a given calling syntax, etc) but very easy to implement.

Is it possible to send email in ASP NET C?

One of them is adding the ability to send email in ASP.NET C# that you’ve been postponing for a while. After all, it’s such an obvious feature that might as well be left for the very end, when almost everything is up and running.


1 Answers

You'll need to implement an IMAP or POP3 client and connect to the external mail server. You can then read the contents of mailboxes.

Getting started with IMAP: http://www.codeproject.com/KB/IP/imaplibrary.aspx

like image 119
Michael Shimmins Avatar answered Sep 18 '22 14:09

Michael Shimmins