English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Line 22: objEmail.BodyFormat = MailFormat.Text
Line 23: SmtpMail.SmtpServer ="www.hotmail.com"
Line 24: SmtpMail.Send(objEmail)
Line 25:
Line 26: End Sub

2006-07-17 04:07:11 · 1 answers · asked by jaspal 2 in Computers & Internet Programming & Design

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: The transport failed to connect to the server.

2006-07-17 04:08:18 · update #1

Thankyou
admiralbob77
,,And if i want to use hotmail account as a final destination.

2006-07-17 05:15:37 · update #2

1 answers

Well first of all, you can't set the SmtpServer to Hotmail.... you have to use an SMTP server you actually have some access to. That's your problem right there.

If this is just a home programming project, you'll have to install an SMTP server locally and set the SmtpServer property to "localhost". Be careful - an SMTP server misconfigured on your local machine could attract spammers to you like flies, and get you tossed off the Internet by your ISP, if their spams trace back to you. You'll have to carefully ensure that nobody can relay off your server other than the local client.

2006-07-17 04:41:45 · answer #1 · answered by evolver 6 · 0 0

fedest.com, questions and answers