Hai Frinny,
Actually I did not upload to server yet to test...
While im trying to test in my pc, it shows error like this...
-
An attempt was made to access a socket in a way forbidden by its access permissions 202.190.202.17:25
-
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.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions 202.190.202.17:25
-
-
Source Error:
-
-
-
Line 50: smtp.Credentials = NetworkCred;
-
Line 51: //smtp.Port = 587;
-
Line 52: smtp.Send(myMsg);
-
Line 53: lblConfirm.Text = "Thank you for your feedback/suggestion. We will get back to you as soon as possible. Have a nice day.";
-
Line 54: }
-
-
-
Source File: c:\Documents and Settings\VIHETHI\My Documents\Visual Studio 2008\VIHETHI_WEB\onlineReg.aspx.cs Line: 52
-
-
What should I do get it work whithout upload to server... Any configuration or setting should I do in my pc...
And the chunk 2 is the full codes.... to show you what I have done...
Chunk 1 is for wheter I key in email addresses and smt host correctly?
Thanks Frinny for your reply,
Meshack