snakehips2000
Programmer
As an ASP newbie, I've looked at other threads and applied code to create a simple ASP page for users to send me email from a web page as follows:
<%
Set objMessage = Server.CreateObject("CDO.Message")
With objMessage
.To = "me@myaddress.com" //replace with valid address
.From = "him@hisaddress.com" //replace with valid address
.Subject = "Message Subject"
.TextBody = "Message Body"
.Send
End With
Response.write("Done")
Set objMessage = Nothing
%>
If I preview the page in IE, the message "Done" appears. I assume, therefore, that there are no syntax errors. However, the email does not arrive.
I'm confused. I'm running Windows 2000, IIS5, and normally use Outlook Express to view/send emails within Hotmail. I have installed the SMTP service. Do I have to configure the SMTP service in some way for this code to work?
I also see in some threads that I need to specify a "mail server" name. Where would I find this?
I don't want to get needlessly bogged down by this but my head's in a spin at the moment so any guidance is appreciated.
<%
Set objMessage = Server.CreateObject("CDO.Message")
With objMessage
.To = "me@myaddress.com" //replace with valid address
.From = "him@hisaddress.com" //replace with valid address
.Subject = "Message Subject"
.TextBody = "Message Body"
.Send
End With
Response.write("Done")
Set objMessage = Nothing
%>
If I preview the page in IE, the message "Done" appears. I assume, therefore, that there are no syntax errors. However, the email does not arrive.
I'm confused. I'm running Windows 2000, IIS5, and normally use Outlook Express to view/send emails within Hotmail. I have installed the SMTP service. Do I have to configure the SMTP service in some way for this code to work?
I also see in some threads that I need to specify a "mail server" name. Where would I find this?
I don't want to get needlessly bogged down by this but my head's in a spin at the moment so any guidance is appreciated.