Wrox Programmer Forums
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 4th, 2007, 11:37 AM
Friend of Wrox
Join Date: Jul 2004
Posts: 119
Thanks: 0
Thanked 0 Times in 0 Posts
Default Failure sending email

 The last line of the code below gives an error failure sending email. Help will be appreciated

Dim message As New System.Net.Mail.MailMessage(stringFrom, stringTo)

        message.Subject = "New Password"
        Dim BodyString As String = ""

        BodyString &= "<h3>if you have any questions call us</h3>"
        BodyString &= "<p>"
        BodyString &= "Please click on the link for further action<br/>"
        BodyString &= "</p>"
        message.Body = BodyString
        message.IsBodyHtml = True
        Dim smpt As New System.Net.Mail.SmtpClient("Host")

Old July 4th, 2007, 09:05 PM
planoie's Avatar
Friend of Wrox
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts

Is "Host" a legitimate mail server?


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending EMAIL charleshua BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 16 September 3rd, 2008 12:27 AM
Sending email ironchef Pro JSP 3 February 17th, 2008 11:38 PM
ASP.NET Email Failure ramuis78 ASP.NET 1.0 and 1.1 Professional 4 October 12th, 2006 03:08 PM
sending email ansalon5 ASP.NET 1.0 and 1.1 Basics 2 June 27th, 2006 01:34 PM
Email on max step failure crouton SQL Server DTS 0 March 19th, 2004 11:12 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.