|
-
Apr 14th, 2000, 02:14 AM
#1
Thread Starter
Member
Hi,
Is there any way to connect to smtp server
with ASP ?
if answer is no , what is the way ?
Thanx
-
Apr 14th, 2000, 05:05 AM
#2
If you're running your're own server make sure that CDONTS and SMTP server is installed(if not re-run the NT Option pack and Add the SMTP mail). If you're not running you have an NT web host they probably have it installed already.
plug in the following code:
Code:
<%
set objNewMail = Server.CreateObject("CDONTS.NewMail")
with objNewMail
.From = "[email protected]"
.To = "[email protected]"
.Body = "Body of the email"
.Subject = "Subject line"
.Send
end with
set objNewMail = Nothing
%>
or if you want to screw around with your own custom components and use early binding set a reference to Microsoft CDO for NTS 1.2 Library but to use it you'll have to make sure you've installed SMTP Mail Server on your machine.
-
Apr 14th, 2000, 03:06 PM
#3
Thread Starter
Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|