Author: AceCorban | Posted on: 8/31/2009 9:58:41 AM | Views : 249

On our setup, the following works:
using System.Web.Mail; MailMessage mailMessage= new MailMessage(); mailMessage.To = recipientAddress; mailMessage.From = senderAddress; mailMessage.Subject = emailSubject; mailMessage.Body = emailBody; mailMessage.Priority = MailPriority.High; SmtpMail.Send(mailMessage); Notice that at no point do I delcare server information such as IP, port, username or password.  If I had to declare such information, it would have been like so:
mailMessage.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserver", smtpServerIp); //etc //etc I'm not the System Administrator, so I don't know how or why the server is configured in such a way, and I frankly do not care.  I cannot change configuration.
We maintain several apps of different versions, so the push is to upgrade s ...

Go to the complete details ...