|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Sending email from ASP.NET application.I know that I am able to do it with System.Web.Mail with this code: private void sendEmail() { MailMessage objMM = new MailMessage(); objMM.To = "some***@somedomain.com"; objMM.From = "somewh***@somewhere.com"; objMM.BodyFormat = MailFormat.Text; objMM.Priority = MailPriority.Normal; objMM.Subject = "blah"; objMM.Body = "blah"; SmtpMail.SmtpServer = "localhost"; SmtpMail.Send(objMM); } However I don't know how efficient this code is. How much strain does it put on my application? Also I've been looking on the net, there are whole applications dedicated to emailing. Right now I'm looking at DotNetOpenMail, open source solution. So I guess my other question is, should I be bothering with third party software projects (because it might be better) or stick to solution above? Levon depending on what you want to do and the resources you have.
But theis approach is good too. Patrick *** Sent via Developersdex http://www.developersdex.com ***
Other interesting topics
an old geezer running visual studio for the first time
SqlParameters SqlDbType.Char in VB Question DataGrid Runtime DropDown - ViewState Issue question about the "Page Controller" pattern Media Center any good? override default values in a constructor Strange Datagrid Update Problem Reading values from a Word document... interesting fact about date. Global Variables!q |
|||||||||||||||||||||||