Hi,
I am new to ASP.NET and am trying to set up an email program.
I have the following code, but it returns a '405 error - Resource Not Allowed' and I don't know why.
<%@Page Explicit="True" Language="VB" Debug="True" %>
<%@Import Namespace="System.Web.Mail" %>
<HTML>
<BODY>
<%
Dim EMailTo As String = "lazy.days@btinternet.com"
Dim EMailFrom As String = "sandra@softsource.co.uk"
Dim EMailSubject As String = "Test Message from ASP script"
Dim EMailBody As String
EMailBody = "This is a test to see if ASP mail works"
SmtpMail.SmtpServer = "smtp.hotchilli.net"
SmtpMail.Send(EMailFrom, EMailTo, EMailSubject, EMailBody)
%>
Email has been sent.
</BODY>
</HTML>
Can anyone help me?
I am new to ASP.NET and am trying to set up an email program.
I have the following code, but it returns a '405 error - Resource Not Allowed' and I don't know why.
<%@Page Explicit="True" Language="VB" Debug="True" %>
<%@Import Namespace="System.Web.Mail" %>
<HTML>
<BODY>
<%
Dim EMailTo As String = "lazy.days@btinternet.com"
Dim EMailFrom As String = "sandra@softsource.co.uk"
Dim EMailSubject As String = "Test Message from ASP script"
Dim EMailBody As String
EMailBody = "This is a test to see if ASP mail works"
SmtpMail.SmtpServer = "smtp.hotchilli.net"
SmtpMail.Send(EMailFrom, EMailTo, EMailSubject, EMailBody)
%>
Email has been sent.
</BODY>
</HTML>
Can anyone help me?