Top "Mailmessage" questions

The MailMessage class can be considered the foundation class of the System.

Using MailMessage to send emails in C#

I am experiencing some problems sending emails with MailMessage. I have two email accounts, ([email protected], and account2@gmail.…

c# mailmessage
Getting a sent MailMessage into the "Sent Folder"

I'm sending MailMessages with an SmtpClient (being delivered successfully) using an Exchange Server but would like my sent emails to …

c# smtpclient exchange-server mailmessage
Line breaks ignored when sending mail as plain text

I have a text like " Hi, \r\n this is test \r\n Thanks" I am sending the mail using …

c# asp.net mailmessage
C# Add attachment to mailmessage without knowing the extension

A system generates files with different extensions. Those files have to be sent to an email address. How can I …

c# email smtp attachment mailmessage
Embedding background images in an e-mail

I'm trying to use an embedded image in an e-mail as the background image, i've got the following code to …

c# image background embedded-resource mailmessage
Sending Mails with attachment in C#

I need to send a mail including the exception details (Yellow Screen Of Death) as attachment. I could get the …

c# .net email mailmessage
Unable to send mail over smtp server, as the 'operation timeout' error occurs

Unable to send mail over smtp server, as the 'operation timeout' error occurs. I have tried almost all the methods …

c# asp.net email smtpclient mailmessage
How to get the "Date" of an email?

I create an application that gets email from mail server. I use "System.Net.Mail.MailMessage" for receive email. Now …

c# email datetime mailmessage
Send email with attachment from a specific url in C#

In my view, users can search for a document and once they get the result, they can click on its …

c# asp.net-mvc mailmessage
How do I send an email message from my C# application?

This is the code I wrote: MailMessage mail = new MailMessage("[email protected]", "[email protected]"); mail.Subject = "This is …

c# email smtpclient mailmessage