system.net.mail Questions
2
Solved
Why does this code:
MailMessage mm = new MailMessage();
Throw this exception:
System.Security.Cryptography.CryptographicException was caught
Message=The handle is invalid.
Source=mscorlib
Stac...
Aubade asked 7/3, 2012 at 22:58
1
Solved
MVC3, VB.NET. I have a function in my app that is supposed to use a html file's contents for the email body. However what I have so far is failing at the mail.body = file.readalltext(_body) line.. ...
Cassey asked 29/11, 2011 at 16:57
2
Solved
When I sent a mail using System.Net.Mail, it seems that the messages do not send immediately. They take a minute or two before reaching my inbox. Once I quit the application, all of the messages ar...
Rounce asked 13/9, 2011 at 14:33
3
Solved
The SmtpClient send method returns void. Is there any way to get the server response? Do I just assume it was successful unless it throws an exception?
The class I'm referring to... http://msdn.m...
Molarity asked 1/9, 2011 at 17:16
3
Solved
I have a simple C# app that send SMTP emails (using System.Net.Mail classes). After sending (emailing) a MailMessage object I want to iterate through the list of the attachments and delete the orig...
Jaf asked 6/5, 2011 at 14:11
7
Solved
This seems to be pretty straight forward. I need to send email from some ASP.NET applications. I need to do this consistently without strange errors and without CPU utilization going through the ro...
Ghirlandaio asked 30/5, 2009 at 18:7
2
Solved
Is it me or is there a bug in the MailAddress class in System.Net.Mail?
This code will always throw an excpetion:
MailMessage mail = new MailMessage();
mail.From = new MailAddress("[email pr...
Attalie asked 6/11, 2010 at 4:9
2
Solved
_data is a byte[] array of Attachment data.
When I'm doing this:
var ms = new MemoryStream(_data.Length);
ms.Write(_data,0,_data.Length);
mailMessage.Attachments.Add(new Attachment(ms,...
Barber asked 14/9, 2010 at 16:4
4
Solved
I use this class to send mails trough a gmail account:
public class GmailAccount
{
public string Username;
public string Password;
public string DisplayName;
public string Address
{
get
{...
Mckoy asked 15/7, 2010 at 0:9
3
Solved
I'm trying to use the code below to send messages via System.Net.Mail and am sometimes getting subjects like '=?utf-8?B?W3AxM25dIEZpbGV...' (trimmed). This is the code that's called:
MailMessage m...
Furmenty asked 18/1, 2009 at 8:54
© 2022 - 2024 — McMap. All rights reserved.