There was a problem loading the comments.

Sending email via ASP.NET 2.0

Support Portal  »  Knowledgebase  »  Viewing Article

If you are moving to ASP.NET 2.0, you should know that the method of sending emails has changed slightly.

The following code has been tested on our server.

Dim MailObj As New System.Net.Mail.SmtpClient
MailObj.Host = "" 'localhost could be used or
Dim cred As New Net.NetworkCredential("authemail", "authpass")
MailObj.Credentials = cred
MailObj.Send("fromemail", "destemail", "subject", "body here")

Share via
Did you find this article useful?  

Related Articles


Add Comment

Replying to  

Self-Hosted Help Desk Software by SupportPal