Geeks With Blogs
Phil Sando

This is the code I use to send an email from an asp.net page:

        Dim message As New MailMessage() 
        message
.IsBodyHtml = False
        message
.From = New MailAddress("foo@foo.com") 
        message
.To.Add(New MailAddress("foo@foo.com")) 
        message
.Subject = ("Response from form") 
        message
.Body = ("Email message here") 

       
Dim client As New SmtpClient() 
        client
.Host = "email.foo.foo" 
        client
.Send(message) 

Posted on Saturday, February 27, 2010 3:48 PM | Back to top


Comments on this post: Send email from an asp.net vb page

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © PhilSando | Powered by: GeeksWithBlogs.net