Techy Geek
Daemon Poster
- Messages
- 1,320
I'm trying to make a webpage in asp send an email, here is the code
But it isn't working, cdont's dont work on my host (www.1asphost.com), but I figured this is a different system, right? Condensed:
1. Should this work?
2. If it should, then why doesn't it?
3. How would I make it do this when a button is clicked?
thanks in advance
<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="mymail@mydomain.com"
myMail.To="mymail@mydomain.com"
myMail.TextBody="This is a message."
myMail.Send
set myMail=nothing
%>
But it isn't working, cdont's dont work on my host (www.1asphost.com), but I figured this is a different system, right? Condensed:
1. Should this work?
2. If it should, then why doesn't it?
3. How would I make it do this when a button is clicked?
thanks in advance