How can I find the reason for such an error: Failure sending mail.
Some Code...
oMailMessage.IsBodyHtml = False
oMailMessage.Body = cEmailBody
Dim oSMTP As New SmtpClient
oSMTP.Send(oMailMessage) (in this line I am getting the above err)
Re: How to find out what type of error it is: Failure sending mail. ...String 1 is: 'There was a problem in sending the email! ... after checking into it I had some code after the End Try and that was the reason Alert() did not pop up. ... Now how do I bring the actual err line into the second line of the Alert ... Well I had actuallt the code like the below: The debugger poped up and just said that the Failure sending mail.... (microsoft.public.dotnet.framework.aspnet)
Re: How to find out what type of error it is: Failure sending mail. ...String 1 is: 'There was a problem in sending the email! ... after checking into it I had some code after the End Try and that was the reason Alert() did not pop up. ... Now how do I bring the actual err line into the second line of the Alert ... Well I had actuallt the code like the below: The debugger poped up and just said that the Failure sending mail.... (microsoft.public.dotnet.framework.aspnet)
Re: How to find out what type of error it is: Failure sending mail. ...String 1 is: 'There was a problem in sending the email! ... after checking into it I had some code after the End Try and that was the reason Alert() did not pop up. ... Now how do I bring the actual err line into the second line of the Alert ... Well I had actuallt the code like the below: The debugger poped up and just said that the Failure sending mail.... (microsoft.public.dotnet.framework.aspnet)
Re: How to find out what type of error it is: Failure sending mail. ... Well I had actuallt the code like the below: The debugger poped up and just said that the Failure sending mail.... But from some reason in my computer under Visual Studio 2005, the Alert message did not pop up. ... oSMTP.Send(in this line I am getting the above err) ... Catch smtpEx As SmtpException ... (microsoft.public.dotnet.framework.aspnet)
Re: How to find out what type of error it is: Failure sending mail. ... after checking into it I had some code after the End Try and that was the reason Alert() did not pop up. ... Now how do I bring the actual err line into the second line of the Alert ... Well I had actuallt the code like the below: The debugger poped up and just said that the Failure sending mail.... (microsoft.public.dotnet.framework.aspnet)