Current location: Hot Scripts Forums » Programming Languages » ASP » Can't send email from ASP


Can't send email from ASP

Reply
  #1 (permalink)  
Old 03-13-04, 10:00 AM
lordmerlin lordmerlin is offline
Newbie Coder
 
Join Date: Jul 2003
Location: South Africa
Posts: 94
Thanks: 0
Thanked 0 Times in 0 Posts
Can't send email from ASP

Hi

I got WinXP, with IIS6, and the SMTP service installed. I tried to send an email with the following, code, but it didn't work. Yet, when I telnetted into the machine, c:\> telnet localhost 25, I could send an email. Please help, as I'm new to this


Quote:
<%
Dim objCdonts
Set objCdonts = Server.CreateObject("CDONTS.NewMail")
objCdonts.To = lordmerlin@home
objCdonts.From = root@localhost
objCdonts.Subject = "Test email"
objCdonts.Body = "Testing email script"
objCdonts.Send
Set objCdonts = Nothing
%>
Reply With Quote
  #2 (permalink)  
Old 03-13-04, 10:43 PM
MadDog MadDog is offline
Code Master
 
Join Date: Aug 2003
Posts: 935
Thanks: 0
Thanked 0 Times in 0 Posts
Try using CDOSYS. CDONTS is now replaced with CDOSYS in XP and Win2003
__________________
Drew Gauderman
ASP - MSSQL Coder / Buisness Owner / Coder for Hire!
MSN-ICQ-AIM-YIM in Profile

http://www.iportalx.net an easy ASP portal system.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
retrieve data from database and send to email jilshi JavaScript 0 03-10-04 01:19 AM
Trying to send a html email - not working kyle PHP 4 12-25-03 04:02 AM
how do i add a record AND send an email in one step? nickleidecker ASP 2 10-14-03 07:12 PM
send email when sending form (asp) bmatth1 Script Requests 0 09-30-03 05:52 AM
send email via local intranet superman PHP 3 06-29-03 12:20 PM


All times are GMT -5. The time now is 04:16 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.