Hi,
I keep read things about sending mail with asp code using CDONTS. Do I need to install something on my IIS server?
<%@ Language=VBScript %>
<% Option Explicit %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<%
Dim objMail
Set objMail = Server.CreateObject("CDONTS.NewMail"
objMail.From = "myemail@firstclass.com"
objMail.Subject = "How TO send email with CDONTS"
objMail.To = "theirmail@yahoo.com"
objMail.Body = "This is an email message" & vbcrlf&_
"with CDONTS." & vbcrlf&_
"It is really easy. "
objMail.Send
Response.write("Mail was Sent"
'You must always do this with CDONTS.
set objMail = nothing
%>
</BODY>
</HTML>
I keep read things about sending mail with asp code using CDONTS. Do I need to install something on my IIS server?
<%@ Language=VBScript %>
<% Option Explicit %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<%
Dim objMail
Set objMail = Server.CreateObject("CDONTS.NewMail"
objMail.From = "myemail@firstclass.com"
objMail.Subject = "How TO send email with CDONTS"
objMail.To = "theirmail@yahoo.com"
objMail.Body = "This is an email message" & vbcrlf&_
"with CDONTS." & vbcrlf&_
"It is really easy. "
objMail.Send
Response.write("Mail was Sent"
'You must always do this with CDONTS.
set objMail = nothing
%>
</BODY>
</HTML>