system.net.mail

Does System.Net.Mail.SmtpClient support CRAM-MD5 authentication?

Does System.Net.Mail.SmtpClient support CRAM-MD5 authentication, and if so, do I need to do anything to enable it? MSDN appears to be silent on the matter. ...

Are SMTP relay requirements for System.Net.Mail different than System.Web.Mail

I deployed my web app to our production IIS 6.0 server and everything is working except when my code attempts to send email to an address that is NOT in the domain of our email server. I've seen various symptoms but this seems the most straightforward to describe: Syntax error in parameters or arguments. The server response was: 5.7.1 T...

System.Net.Mail - Trying to send a mail with attachment to gmail, works but for small attachments only.

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 { return Username + "@gmail.com"; } } ...

Mail header "From" sometimes not encoded with System.Net.Mail and .NET Framework 2.0

Greetings. I've checked out some other question entries here, such as this one, but do not find the same issue as I'm having. Perhaps a guru here has experienced something similar in the past. Basically, I'm creating an ASP.NET 2.0 web application, which sometimes needs to send out e-mails (using System.Net.Mail), and I'm encountering ...

No connection could be made because the target machine actively refused it.

I'm in the process of upgrading my web pages from asp classic to asp.net. My previous code used CDO to send emails. sch = "http://schemas.microsoft.com/cdo/configuration/" Set cdoConfig = CreateObject("CDO.Configuration") With cdoConfig.Fields .Item(sch & "sendusing") = 2 ...

email attachment from the MemoryStream comes empty

_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, attachment.Name)); Attachment comes empty. Actually outlook shows the filesize but it's incorrect. Well, I thought there is a problem in my _da...

Email form in ASP.NET

Hi, Can someone guide on how to build and run a simple email form in asp.net ? I just want to provide a textbox for the body on the website and a submit button below it. I however want to be able to wire the submit button such that it sends an email notification and also copies the contents of the email to a database. Detailed help woul...

Unable to send mail using System.Net.Mail and GoDaddy SMTP

I have a site hosted on GoDaddy and have an e-mail account set up with my GoDaddy account that uses smtpout.secureserver.net as its outgoing server. I am trying to send an e-mail from my test server, not the actual GoDaddy production server, using this account. My test server is using IIS 7 and is running my ASP.NET MVC site. I use the c...