tag:blogger.com,1999:blog-8898025443395701042.post3388325317636897107..comments2023-04-08T18:30:14.714+05:30Comments on Coding is fun...: Tutorial : Sending E-mail using ASP.net through Gmail account (Gmail SMTP Server account)Sumit Pranavhttp://www.blogger.com/profile/11430394369115376167noreply@blogger.comBlogger20125tag:blogger.com,1999:blog-8898025443395701042.post-29823460344828262302012-03-21T16:32:02.957+05:302012-03-21T16:32:02.957+05:30@Pooja
Are you using a valid SMTP server and its...@Pooja <br /><br />Are you using a valid SMTP server and its credentials. <br />Check port number and alsof if your server allows connections from outside.<br /><br />Send me your code for any help.Sumit Pranavhttps://www.blogger.com/profile/11430394369115376167noreply@blogger.comtag:blogger.com,1999:blog-8898025443395701042.post-52776797081383133492012-03-21T15:01:47.176+05:302012-03-21T15:01:47.176+05:30i have error
System.Net.Mail.SmtpException: Failu...i have error<br /><br />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 173.194.77.108:25 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) 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(ServicePoint servicePoint) at System.Net.Mail.SmtpTransport.GetConnection(ServicePoint servicePoint) at System.Net.Mail.SmtpClient.GetConnection() at System.Net.Mail.SmtpClient.Send(MailMessage message) --- End of inner exception stack trace --- at System.Net.Mail.SmtpClient.Send(MailMessage message) at Default3.Button1_Click(Object sender, EventArgs e)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 173.194.77.108:25 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) 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(ServicePoint servicePoint) at System.Net.Mail.SmtpTransport.GetConnection(ServicePoint servicePoint) at System.Net.Mail.SmtpClient.GetConnection() at System.Net.Mail.SmtpClient.Send(MailMessage message)System.Net.Sockets.SocketException (0x80004005): 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 173.194.77.108:25 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)<br /><br /><br />plz help me to resolve it.<br />thanksPoojahttps://www.blogger.com/profile/15684854438935977175noreply@blogger.comtag:blogger.com,1999:blog-8898025443395701042.post-76979497477526233852011-10-30T13:41:07.004+05:302011-10-30T13:41:07.004+05:30May I have a VB code of this? I have no idea how t...May I have a VB code of this? I have no idea how to convert it to vb code.phoonnoreply@blogger.comtag:blogger.com,1999:blog-8898025443395701042.post-26456619905698568812011-09-30T20:17:46.433+05:302011-09-30T20:17:46.433+05:30System.Net.Mail.SmtpException: Command not impleme...System.Net.Mail.SmtpException: Command not implemented. The server response was: 5.5.1 Unrecognized command. e3sm18793963pbi.7 at System.Net.Mail.StartTlsCommand.CheckResponse(SmtpStatusCode statusCode, String response) at System.Net.Mail.StartTlsCommand.Send(SmtpConnection conn) at System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port) at System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port) at System.Net.Mail.SmtpClient.GetConnection() at System.Net.Mail.SmtpClient.Send(MailMessage message) at _Default.Button1_Click(Object sender, EventArgs e) in c:\Users\Dinesh\Documents\WebSite5\Default.aspx.cs:line 49ahilanhttps://www.blogger.com/profile/09659159500483971654noreply@blogger.comtag:blogger.com,1999:blog-8898025443395701042.post-57628553326270886802011-04-12T13:10:48.848+05:302011-04-12T13:10:48.848+05:30When i use this code for the first time i received...When i use this code for the first time i received the mail but later on i cant able to receive the mail but i can able to see the sent mail list in sending email account so please let me know y it is not able to sent the mail and i'm not getting any errors.swathihttps://www.blogger.com/profile/15234278528210803057noreply@blogger.comtag:blogger.com,1999:blog-8898025443395701042.post-36875262152479656562011-03-28T14:00:20.042+05:302011-03-28T14:00:20.042+05:30Hie sumit, i am getting an error which says Failur...Hie sumit, i am getting an error which says Failure Sending Email.Princehttps://www.blogger.com/profile/08451144086363729197noreply@blogger.comtag:blogger.com,1999:blog-8898025443395701042.post-76593691297267573092010-12-10T14:47:27.252+05:302010-12-10T14:47:27.252+05:30Hi i m getting the same error as Fatma Zayed is g...Hi i m getting the same error as Fatma Zayed is getting so kindly tell the solution for that..Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8898025443395701042.post-19554052955963837272010-11-03T17:35:35.965+05:302010-11-03T17:35:35.965+05:30this new error
Failure sending mail.
so why thatthis new error<br />Failure sending mail.<br />so why thatFatma Zayedhttps://www.blogger.com/profile/04342200705806664915noreply@blogger.comtag:blogger.com,1999:blog-8898025443395701042.post-91445211917239514542010-11-03T17:34:08.799+05:302010-11-03T17:34:08.799+05:30i have that error
System.Net.Mail.SmtpException: ...i have that error<br /><br />System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebException: The remote name could not be resolved: 'smtp.gmail.com' 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, Int32 port) at System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port) at System.Net.Mail.SmtpClient.GetConnection() at System.Net.Mail.SmtpClient.Send(MailMessage message) --- End of inner exception stack trace --- at System.Net.Mail.SmtpClient.Send(MailMessage message) at _Default.Button1_Click(Object sender, EventArgs e) in c:\Users\Administrator\Desktop\Sending Mail\Default.aspx.cs:line 47System.Net.WebException: The remote name could not be resolved: 'smtp.gmail.com' 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, Int32 port) at System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port) at System.Net.Mail.SmtpClient.GetConnection() at System.Net.Mail.SmtpClient.Send(MailMessage message)Fatma Zayedhttps://www.blogger.com/profile/04342200705806664915noreply@blogger.comtag:blogger.com,1999:blog-8898025443395701042.post-66781771749560035252010-05-22T13:27:05.900+05:302010-05-22T13:27:05.900+05:30This comment has been removed by the author.sudhahttps://www.blogger.com/profile/03319054848051485231noreply@blogger.comtag:blogger.com,1999:blog-8898025443395701042.post-26005524422395728932010-05-22T13:23:56.177+05:302010-05-22T13:23:56.177+05:30hi pranav,
its working now.u r project was really ...hi pranav,<br />its working now.u r project was really nice.thanks alotsudhahttps://www.blogger.com/profile/03319054848051485231noreply@blogger.comtag:blogger.com,1999:blog-8898025443395701042.post-25527457420259911052010-05-22T13:18:59.072+05:302010-05-22T13:18:59.072+05:30@Lakshmi
I think you are not providing the correct...@Lakshmi<br />I think you are not providing the correct credentials to login. <br />Pls ensure you have put correct Gmail User ID and PasswordSumit Pranavhttps://www.blogger.com/profile/11430394369115376167noreply@blogger.comtag:blogger.com,1999:blog-8898025443395701042.post-6773946399170113122010-05-22T13:16:20.608+05:302010-05-22T13:16:20.608+05:30This comment has been removed by the author.sudhahttps://www.blogger.com/profile/03319054848051485231noreply@blogger.comtag:blogger.com,1999:blog-8898025443395701042.post-56740569688226205022010-05-22T12:47:00.785+05:302010-05-22T12:47:00.785+05:30Hi! lakshmi!
Pls share your code so that I can hel...Hi! lakshmi!<br />Pls share your code so that I can help you further.<br />Send on-<br />spscreen-pub@yahoo.co.inSumit Pranavhttps://www.blogger.com/profile/11430394369115376167noreply@blogger.comtag:blogger.com,1999:blog-8898025443395701042.post-63251099815485902322010-05-22T12:38:52.045+05:302010-05-22T12:38:52.045+05:30hi,
i am getting error in these lines as ;expected...hi,<br />i am getting error in these lines as ;expected <br /> string from = lakshmisudha.yakkala@gmail.com; <br />string to = sudha1917@gmail.com;sudhahttps://www.blogger.com/profile/03319054848051485231noreply@blogger.comtag:blogger.com,1999:blog-8898025443395701042.post-28369596458014006982009-12-14T14:42:32.252+05:302009-12-14T14:42:32.252+05:30Hi xiaoyi !
You getting this error :
"The re...Hi xiaoyi !<br /><br />You getting this error :<br />"The remote name could not be resolved: 'smtp.gmail.com'"<br /><br />I think its temporary DNS error. otherwise smtp.gmail.com is testing for sending mail as smtp server.<br /><br />Send me ur complete code So that I can help you out.Sumit Pranavhttps://www.blogger.com/profile/11430394369115376167noreply@blogger.comtag:blogger.com,1999:blog-8898025443395701042.post-25802636899574168152009-12-14T14:39:53.224+05:302009-12-14T14:39:53.224+05:30Hi xiaoyi !
Yuu are wrong you can send Email from...Hi xiaoyi ! <br />Yuu are wrong you can send Email from Gmail using this sript to any Email.Sumit Pranavhttps://www.blogger.com/profile/11430394369115376167noreply@blogger.comtag:blogger.com,1999:blog-8898025443395701042.post-54262785767593345902009-12-13T11:35:40.926+05:302009-12-13T11:35:40.926+05:30hi i face problem.the error message is "The r...hi i face problem.the error message is "The remote name could not be resolved: 'smtp.gmail.com'"<br />how can i solve please help me...sabujhttps://www.blogger.com/profile/11969575655361071943noreply@blogger.comtag:blogger.com,1999:blog-8898025443395701042.post-17196035098485628322009-02-03T00:18:00.000+05:302009-02-03T00:18:00.000+05:30I seems to me that you can only send an email to g...I seems to me that you can only send an email to gmail email not other ones when using gmail SMTP server in ASP.net.<BR/>Please confirm that.Unknownhttps://www.blogger.com/profile/16586626840712841832noreply@blogger.comtag:blogger.com,1999:blog-8898025443395701042.post-67223400586485359602009-01-16T22:37:00.000+05:302009-01-16T22:37:00.000+05:30//Add the Creddentials- use your own email id and ...//Add the Creddentials- use your own email id and password<BR/>client.Credentials = new System.Net.NetworkCredential(from, "Password");<BR/><BR/><BR/>in this fild i was make aror <BR/>so please make sure exampal to me<BR/><BR/>including email<BR/><BR/>my mail id is "amitb.pd@gmail.com"<BR/>please send me this all lineUnknownhttps://www.blogger.com/profile/04636582076601458851noreply@blogger.com