Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 CDONTS error
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

getwidth
Starting Member

15 Posts

Posted - 06 May 2002 :  13:15:37  Show Profile  Visit getwidth's Homepage
CDONTS.NewMail.1 error '80020009'

503:SMTP server not ready for data

/mail/send2.asp, line 32

That is the error that I am getting. It was working for a bit and all of a sudden I am getting that error. Any help is greatly appreciated. The server is running apache and chilisoft for asp. Some of the code I posted may be irrelivent. Here is my code:

<!--#include file="loggedin.asp"-->
<!--#include file="dsn.asp"-->
<!--#include file="body.asp"-->

<%
Set RS = Server.CreateObject("ADODB.Recordset")
Set RSBODY = Server.CreateObject("ADODB.Recordset")
SQL2 = "SELECT * from mail_Settings"
RSBODY.Open SQL2, Conn, 1, 3

SQL = "SELECT Email FROM mail_List"
RS.open SQL, conn

Select Case RSBODY("Component")

Case "CDONTS"

Do While Not RS.eof
set mailObj = Server.CreateObject("CDONTS.NewMail")
If (Request("Format") = "Text") Then
' mailObj.BodyFormat = 1
' mailObj.MailFormat = 1
Else
' mailObj.BodyFormat = 0
' mailObj.MailFormat = 0
End If
mailObj.From = "IndySmash"
mailObj.To = RS("Email")
mailObj.Subject = Request("Subject")
mailObj.Body = Request("Body")
mailObj.Host="pop3.indysmash.com"
mailObj.Send RS.movenext
Loop
'You must always do this with CDONTS.
set objMail = nothing

Case "ASPMail"

Do While Not RS.eof
Set mailObj = Server.CreateObject("SMTPsvg.Mailer")
If (Request("Format") = "Text") Then
mailObj.CharSet = 2
Else
mailObj.ContentType = "text/html"
End If
mailObj.FromName = RSBODY("From_Email")
mailObj.FromAddress= RSBODY("From_Email")
mailObj.RemoteHost = RSBODY("SMTP")
mailObj.Subject = Request("Subject")
mailObj.BodyText = Request("Body")
mailObj.AddRecipient RS("Email"),RS("Email")
mailObj.SendMail
RS.movenext
Loop

Case "ASPEmail"

Do While Not RS.eof
Set mailObj = Server.CreateObject("Persits.MailSender")
mailObj.Host = RSBODY("SMTP")
mailObj.From = RSBODY("From_Email")
mailObj.AddAddress RS("Email")
mailObj.Subject = Request("Subject")
mailObj.Body = Request("Body")
If (Request("Format") = "Text") Then
mailObj.IsHTML = False
Else
mailObj.IsHTML = True
End If
mailObj.Send
RS.movenext
Loop

End Select

IF (Request("Archive") = "on") Then
Set RSARCHIVE = Server.CreateObject("ADODB.Recordset")
RSARCHIVE.Open "mail_Archive", Conn, 2, 2
RSARCHIVE.addnew
RSARCHIVE("Subject") = Request("Subject")
RSARCHIVE("Body") = Request("Body")
RSARCHIVE("Format") = request("Format")
RSARCHIVE("Date") = Date
RSARCHIVE.update
End If
bufferingon = false ' this i got from a forum, i wonder if it worked
%>


vesse
New Member

United Kingdom
69 Posts

Posted - 13 May 2002 :  04:53:32  Show Profile  Visit vesse's Homepage  Send vesse an AOL message  Send vesse an ICQ Message
Just wondering but doesn't CDONTS need a full email address for the mailObj.From parameter?

Building Web Systems for a new Generation @ http://www.vdesign-studios.com
webmaster@vdesign-studios.com
rvesse@hotmail.com
rvesse@dhtmlshock.com
Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 13 May 2002 :  11:03:53  Show Profile
Take a look here

http://www.chilisoft.com/newforum/topic.asp?TOPIC_ID=412


======
Doug G
======
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.34 seconds. Powered By: Snitz Forums 2000 Version 3.4.07