Hello!
I am trying to send an email using the default iis smtp server. The code below works on my machine, but when i installed the application on another machine it gives an error at smtpmail.send. Error is 0x800ccc15 and the message is:
System.Web.HttpException: Could not access 'CDO.Message' object. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x80040211): The message could not be sent to the SMTP server. The transport error code was 0x800ccc15. The server response was not available
------------------------------
imports system.web.mail
...
mailMsg.From = <my Email>
mailMsg.To = <another Email>
mailMsg.Subject = <some subject>
mailMsg.Body = < some body>
try
SmtpMail.SmtpServer = "127.0.0.1"
SmtpMail.Send(mailMsg)
catch ex as exception
end try
------------------------------
Can anyone help me? Is there some specific setting that I don't know about?
Thank you!
I am trying to send an email using the default iis smtp server. The code below works on my machine, but when i installed the application on another machine it gives an error at smtpmail.send. Error is 0x800ccc15 and the message is:
System.Web.HttpException: Could not access 'CDO.Message' object. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x80040211): The message could not be sent to the SMTP server. The transport error code was 0x800ccc15. The server response was not available
------------------------------
imports system.web.mail
...
mailMsg.From = <my Email>
mailMsg.To = <another Email>
mailMsg.Subject = <some subject>
mailMsg.Body = < some body>
try
SmtpMail.SmtpServer = "127.0.0.1"
SmtpMail.Send(mailMsg)
catch ex as exception
end try
------------------------------
Can anyone help me? Is there some specific setting that I don't know about?
Thank you!