Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > BOOK: Beginning ASP.NET 1.0
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 11th, 2004, 08:31 PM
shs shs is offline
Authorized User
 
Join Date: Mar 2004
Location: , , New Zealand.
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default Sending Confirmation Mail

Hi,
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"
            System.Web.Mail.SmtpMail.Send(objEmail)

            objEmail.Priority = MailPriority.High
            SmtpMail.SmtpServer = "mail.kk.nz"
            SmtpMail.Send(objEmail)
__________________________________________________

__________________________________________________ _____
  #2 (permalink)  
Old August 14th, 2004, 10:30 PM
shs shs is offline
Authorized User
 
Join Date: Mar 2004
Location: , , New Zealand.
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 08:23 PM.


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