Wrox Programmer Forums
BOOK: Beginning ASP.NET 1.0
This is the forum to discuss the Wrox book Beginning ASP.NET 1.0 with C# by Chris Goode, John Kauffman, Christopher L. Miller, Neil Raybould, S. Srinivasa Sivakumar, Dave Sussman, Ollie Cornes, Rob Birdwell, Matt Butler, Gary Johnson, Ajoy Krishnamoorthy, Juan T. Llibre, Chris Ullman; ISBN: 9780764543708
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 1.0 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 August 11th, 2004, 08:31 PM
shs shs is offline
Authorized User
Join Date: Mar 2004
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default Sending Confirmation Mail

I have a page that send confirmation email after clicking the submit button.
The code works fine on my local machine that is connected to the live database on the provider's server: eg:http://locoalhost/registration_form.aspx and send/ receive emails to my account.
But when I go to the live site http://livesite/registration_form.aspx
It give me error messages that can not stablish connection to the mail server?!!!

Is there anything wrong with the code?


            Dim UN_email as string = "shs@kk.net"
            'Dim SP_email as string = ""
            Dim MessageBody as string = " Thanks "
            Dim EmailBody as String
            Dim objEmail as New Mail.MailMessage()

            objEmail.To= client_email.Text
            objEmail.From = UN_email
            'objEmail.Cc = SP_email
            objEmail.Subject = "thanks"

            EmailBody = ""
            EmailBody &= "This is a notification email."

            objEmail.Body = EmailBody
            objEmail.BodyFormat = MailFormat.Html
            SmtpMail.SmtpServer = "mail.kk.nz"

            objEmail.Priority = MailPriority.High
            SmtpMail.SmtpServer = "mail.kk.nz"

__________________________________________________ _____
Old August 14th, 2004, 10:30 PM
shs shs is offline
Authorized User
Join Date: Mar 2004
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts

just in case if someone else has a same problem, I am told by the service provider that I must use IP: for the smtp server address!

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to send a auto confirmation mail?? silu95421 Classic ASP Databases 0 October 27th, 2007 04:46 AM
Sending Confirmation email in the WroxShop Tawanda BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 2 June 7th, 2007 01:56 PM
problems sending mail with java mail gandacuboy J2EE 2 December 20th, 2006 03:05 PM
CDO/CDONTS: Receiving mail delivery confirmation antalas Classic ASP Professional 0 February 21st, 2006 03:43 PM
Sending both text mail and HTML mail - CDONTS madhukp Classic ASP Basics 1 October 8th, 2003 01:05 AM

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