Cannot send mail from ASP using CDO



Hi friends,

I am sending mail from ASP program. My server is win 2k, IIS 5. SMTP
server is configured.

I am generating a report(purchase order) and the same sending as an email to
the supplier. upto last week it was sending well. Now its returning bounce

in the c:\inetpub\mailroot\badmail contains the file(.bdr). The contents of
the file are

"From: [email protected]
To: (e-mail address removed)
Date: Tue, 6 Jun 2006 11:22:33 +0800
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
Message-ID: <[email protected]>
Subject: Delivery Status Notification (Failure)

This is a MIME-formatted message.
Portions of this message may be unreadable without a MIME-capable mail

Content-Type: text/plain; charset=unicode-1-1-utf-7

This is an automatically generated Delivery Status Notification.

Delivery to the following recipients failed.

(e-mail address removed)


the same message is returniing to the FROM email.

I have included CC, BCC options also. The mail is successfully sending to
them but not to TO.

My code is ...

dim sndMail,cdoconfig,personalmessage
set sndMail=server.CreateObject("CDO.Message")
set cdoconfig=server.CreateObject("CDO.configuration")

with sndMail

.Fields("urn:schemas:mailheader:return-receipt-to") =receiptto
.From =session("email")
.To =receiptto
.CC="(e-mail address removed)"
.BCC =session("email")
.Subject="Carton PO ( " & job & " ) from Montex"
.HTMLBody =personalmessage & "

" & request("txtbody")
end with

If I send mail from outlook, it is sending successful.

whats the problem.Can anyone help me?




Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question