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#?
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.
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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With