Hi friends, I am facing a PROBLEM WHILE I send mails with the SMTP class of System.Net.Mail. The code shows below. MailMessage mail = new MailMessage(); //set the addresses mail.From = new MailAddress("from@domain.com"); mail.To.Add("to@domain.com"); //set the content mail.Subject = "This is an email"; mail.Body = "this is the body content of the email."; //send the message SmtpClient smtp = new SmtpClient("mysmtpserver.net"); //to authenticate we set the username and password properites on the SmtpClient smtp.Credentials = new System.Net.NetworkCredential("user@domain.com", "password"); smtp.Send(mail); I have a valid smtp server name, username and password. I configured it to outlook and working fine. And wen I test it using telnet port 25 then also its working. I upload the file to my hosting space. I have two hosting account with godaddy. The mailing script is working fine in one hosting account. That hosting account have SSL and dedicated IP address. But the mailing code is not working in the other hosting account. That hosting account is Windows hosting + ASP.NET 2.0 supported. The error I am getting is as shown as below. System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) --- End of inner exception stack trace --- at System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6, Int32 timeout) at System.Net.PooledStream.Activate(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDelegate asyncCallback) at System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback) at System.Net.Co
Jijo BP
Posts
-
Mail -
System.Net.Mail Problem... [modified]Thanks Saeee. But the code is working in one of my domain. Its not supporting in my new doamin. I mean new hosting account. I tried System.Web.Mail and System.Net.Mail. I am getting same error.
JIJO BABY - Lets Play C#
-
Mail ProblemHi friends, I am facing a PROBLEM WHILE I send mails with the SMTP class of System.Net.Mail. The code shows below. MailMessage mail = new MailMessage(); //set the addresses mail.From = new MailAddress("from@domain.com"); mail.To.Add("to@domain.com"); //set the content mail.Subject = "This is an email"; mail.Body = "this is the body content of the email."; //send the message SmtpClient smtp = new SmtpClient("mysmtpserver.net"); //to authenticate we set the username and password properites on the SmtpClient smtp.Credentials = new System.Net.NetworkCredential("user@domain.com", "password"); smtp.Send(mail); I have a valid smtp server name, username and password. I configured it to outlook and working fine. And wen I test it using telnet port 25 then also its working. I upload the file to my hosting space. I have two hosting account with godaddy. The mailing script is working fine in one hosting account. That hosting account have SSL and dedicated IP address. But the mailing code is not working in the other hosting account. That hosting account is Windows hosting + ASP.NET 2.0 supported. The error I am getting is as shown as below. System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) --- End of inner exception stack trace --- at System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6, Int32 timeout) at System.Net.PooledStream.Activate(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDelegate asyncCallback) at System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback) at System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout) at System.Net.Mail.SmtpConnection.GetConnection(String host, I
-
System.Net.Mail Problem... [modified]Hi friends, I am facing a PROBLEM WHILE I send mails with the SMTP class of System.Net.Mail. The code shows below. MailMessage mail = new MailMessage(); //set the addresses mail.From = new MailAddress("from@domain.com"); mail.To.Add("to@domain.com"); //set the content mail.Subject = "This is an email"; mail.Body = "this is the body content of the email."; //send the message SmtpClient smtp = new SmtpClient("mysmtpserver.net"); //to authenticate we set the username and password properites on the SmtpClient smtp.Credentials = new System.Net.NetworkCredential("user@domain.com", "password"); smtp.Send(mail); I have a valid smtp server name, username and password. I configured it to outlook and working fine. And wen I test it using telnet port 25 then also its working. I upload the file to my hosting space. I have two hosting account with godaddy. The mailing script is working fine in one hosting account. That hosting account have SSL and dedicated IP address. But the mailing code is not working in the other hosting account. That hosting account is Windows hosting + ASP.NET 2.0 supported. The error I am getting is as shown as below. System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) --- End of inner exception stack trace --- at System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6, Int32 timeout) at System.Net.PooledStream.Activate(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDelegate asyncCallback) at System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback) at System.Net.Co
-
C# ASP.NET Mailing problem.Hi All, Greetings. When I am tring to send mails from my domain using System.Web.Mail. System.Web.HttpException: The transport failed to connect to the server. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x80040213): The transport failed to connect to the server. --- End of inner exception stack trace --- at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters) at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) at System.Web.Mail.SmtpMail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) --- End of inner exception stack trace --- at System.Web.Mail.SmtpMail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) at System.Web.Mail.SmtpMail.CdoSysHelper.Send(MailMessage message) at System.Web.Mail.SmtpMail.Send(MailMessage message) at _Default.Button1_Click(Object sender, EventArgs e) This is the error I am getting. Please help me on this issue. Thanks in advance...
JIJO BABY - Lets Play C#
-
regedt32The Microsoft Registry Editor (regedit.exe) enables you to view, search for, and change settings in your system registry, which contains information about how your computer runs. Although you can use Registry Editor to inspect and modify the registry, doing so is not recommended, as making incorrect changes can damage your system. You might need to use Registry Editor, with assistance from a technical support professional, in order to adjust certain system settings. Regedit.exe is automatically installed during setup and is stored in same folder as is Windows. To start Regedit.exe 1. Click Start, and then click Run. 2. Type Regedit, and then click OK. I will explain an example to hide the Run as from the Windows XP context menu Steps: 1. Start 2. Run 3. Type regedit.exe 4. Goto HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\ Explorer 5. Right click and select New DWORD 6. Name : HideRunAsVerb 7. Data : 0 ( 1 for enable and 0 for disable) :)
JIJO BABY - Lets Play C#
-
Open portHow can I know the ports opened to the outside of my router ?. Any commands ? I am using windows XP P SP2. Thanks
JIJO BABY - Lets Play C#
-
Error 40Thank you Yes. I installed sql server in another machine.
JIJO BABY - Lets Play C#
-
Error 40Hi Friends, While I am trying to connect to the database server I am getting the following error. ERROR: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) I checked my web.config file. I didnt find any errors in this. Please help me to solve this. I am using VS 2005 and SQL Server 2000 Thank you Jijo
JIJO BABY - Lets Play C#
-
Error 40Hi Friends, While I am trying to connect to the database server I am getting the following error. ERROR: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) I checked my web.config file. I didnt find any errors in this. Please help me to solve this. I am using VS 2005 and SQL Server 2000 Thank you Jijo
JIJO BABY - Lets Play C#
-
Connection problemHi!. I am developing a web based whois lookup page for my site. But while trying to connect to a remote whois database "whois.wildwest.net" and port "43" its showing the error "A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond". The stack trace is :- [SocketException (0x274c): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond] System.Net.Sockets.TcpClient.Connect(String hostname, Int32 port) +578 giwia.development.temp.whois.Button2_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\giwia\development\temp\whois.aspx.cs:65 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +58 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33 System.Web.UI.Page.ProcessRequestMain() +1292 . I am using Framework 1.1. Please help me to solve this problem. Its working in local host. But it cant on web space. Thanx in advance JIJO BABY - Lets Play C#
-
A connection attempt failed..Hi!. I am developing a web based whois lookup page for my site. But while trying to connect to a remote whois database "whois.wildwest.net" and port "43" its showing the error "A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond". The stack trace is :- [SocketException (0x274c): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond] System.Net.Sockets.TcpClient.Connect(String hostname, Int32 port) +578 giwia.development.temp.whois.Button2_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\giwia\development\temp\whois.aspx.cs:65 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +58 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33 System.Web.UI.Page.ProcessRequestMain() +1292 . I am using Framework 1.1. Please help me to solve this problem. Its working in local host. But it cant on web space. Thanx in advance JIJO BABY - Lets Play C#
-
Virus ProblemHi, Its automatically closing the windows which containing the text "virus" or "anti virus" . How can I recover my machine from virus infection. I cant format it. Because it contains my valuvable informations. Pls help me. JIJO BABY - Lets Play C#
-
Web hosting in intranetHi Friends, I am developed a new personal web site. I want to host it in my LAN. I installed IIS 5.0. How can I host it in my lan. Please help me Thanks in advance Jijo JIJO BABY - Lets Play C#
-
Web hosting in intranetHi Friends, I am developed a new personal web site. I want to host it in my LAN. I installed IIS 5.0. How can I host it in my lan. Please help me Thanks in advance Jijo JIJO BABY - Lets Play C#
-
My "Start" Menu bar is missing very often..I am absolutly joining with you. I think your explorer.exe is corrupted / replaced by some other funny programs or/ viruses. Please do the following steps 1. Go to Folder options in My computer. 2. Click View TAB 3. Unchech the option Hide windows protected files. 4. Goto %Systemroot%/Windows/System32/DLLCACHE 5. Copy the file explorer.exe and paste in %Systemroot%\Windows 6. Overwrite the file explorer.exe Do the steps carefully and restore the system settings manually Cheers Jijo JIJO BABY - Lets Play C#
-
Capture system EventsI want to capture all the system events in my machine. Please help me. Or can you conver this VBS file to c# strComputer = "." Set objWMIService = GetObject("winmgmts:\\" _ & strComputer & "\root\CIMV2") Set objEvents = objWMIService.ExecNotificationQuery _ ("SELECT * FROM Win32_ProcessTrace WITHIN 10") Wscript.Echo "Waiting for events ..." i = 0 Do Until i=5 Set objReceivedEvent = objEvents.NextEvent 'report an event Wscript.Echo "Win32_ModuleTrace event occurred" & VBNewLine _ & "Process Name = " _ & objReceivedEvent.ProcessName & VBNewLine _ & "Process ID = " _ & objReceivedEvent.Processid & VBNewLine _ & "Session ID = " & objReceivedEvent.SessionID i = i+ 1 Loop Please help me Thanks in advance Jijo JIJO BABY - Lets Play C#
-
[Message Deleted]Thank You I this this will solve my problems. Thanks again Jijo
-
[Message Deleted]Deepthi this is not the place to make fun. ok.. I want a resonable logic in c#
-
[Message Deleted][Message Deleted]