Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Send Mail in IIS using ASP

Status
Not open for further replies.

missippi

IS-IT--Management
Feb 8, 2001
42
0
0
US
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=&quot;GENERATOR&quot; Content=&quot;Microsoft Visual Studio 6.0&quot;>
</HEAD>
<BODY>
<%
Dim objMail
Set objMail = Server.CreateObject(&quot;CDONTS.NewMail&quot;)

objMail.From = &quot;myemail@firstclass.com&quot;
objMail.Subject = &quot;How TO send email with CDONTS&quot;
objMail.To = &quot;theirmail@yahoo.com&quot;
objMail.Body = &quot;This is an email message&quot; & vbcrlf&_
&quot;with CDONTS.&quot; & vbcrlf&_
&quot;It is really easy. &quot;
objMail.Send

Response.write(&quot;Mail was Sent&quot;)

'You must always do this with CDONTS.
set objMail = nothing
%>


</BODY>
</HTML>
 
Yes there is a dll file in your [winnt|windows]\system32 directory called cdonts.dll If the file is not there, then you will need to copy it in there and regsvr32 it.

Just to state the obvious... the dll file must be registered on your webservers machine, not the client machine you are using :) Brett Birkett B.Comp
Systems Analyst
 
hi, can i ask from where i need to copy the condts.dll file. I can't find it.
thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top