I'm relatively new to ASP.NET so sorry if this is a newbie question. I am trying to send an email with ASP.NET but it keeps throwing a:
500 - Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed.
The error occurs as the point in which the mail is attempted to actually send. So all of this works fine:
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="[email protected]"
myMail.To="[email protected]"
myMail.TextBody="This is a message."
But the error is generated at this line always:
myMail.Send
So what could be causing this problem?
For ASP.NET you would be better off using the
SmtpClient
class inSystem.Net
.