469,602 Members | 1,747 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,602 developers. It's quick & easy.

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
mail.

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

"From: postmaster@rajani
To: wa*****@tom.com.bn
Date: Tue, 6 Jun 2006 11:22:33 +0800
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="9B095B5ADSN=_01C680B8C044750C00000003raj ani"
Message-ID: <8wSA1XvpF00000003@rajani>
Subject: Delivery Status Notification (Failure)

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

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

This is an automatically generated Delivery Status Notification.

Delivery to the following recipients failed.

wh***@habbox.net

"

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")
personalmessage=replace(request("txtmsg"),vbcrlf,"
")

with sndMail

..Fields("urn:schemas:mailheader:disposition-notification-to")=receiptto
.Fields("urn:schemas:mailheader:return-receipt-to") =receiptto
.From =session("email")
.To =receiptto
.CC="el****@tom.com.bn"
.BCC =session("email")
.Subject="Carton PO ( " & job & " ) from Montex"
.HTMLBody =personalmessage & "

" & request("txtbody")
.DSNOptions=14
.Fields.update
.Send
end with

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

whats the problem.Can anyone help me?
Jun 14 '06 #1
2 5761
http://www.aspfaq.com/2254


"Rajani" <Ra****@discussions.microsoft.com> wrote in message
news:84**********************************@microsof t.com...
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
mail.

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

"From: postmaster@rajani
To: wa*****@tom.com.bn
Date: Tue, 6 Jun 2006 11:22:33 +0800
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="9B095B5ADSN=_01C680B8C044750C00000003raj ani"
Message-ID: <8wSA1XvpF00000003@rajani>
Subject: Delivery Status Notification (Failure)

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

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

This is an automatically generated Delivery Status Notification.

Delivery to the following recipients failed.

wh***@habbox.net

"

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")
personalmessage=replace(request("txtmsg"),vbcrlf,"
")

with sndMail

.Fields("urn:schemas:mailheader:disposition-notification-to")=receiptto
.Fields("urn:schemas:mailheader:return-receipt-to") =receiptto
.From =session("email")
.To =receiptto
.CC="el****@tom.com.bn"
.BCC =session("email")
.Subject="Carton PO ( " & job & " ) from Montex"
.HTMLBody =personalmessage & "

" & request("txtbody")
.DSNOptions=14
.Fields.update
.Send
end with

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

whats the problem.Can anyone help me?

Jun 14 '06 #2
http://www.powerasp.com/content/new/...ail_cdosys.asp


"Rajani" <Ra****@discussions.microsoft.com> wrote in message
news:84**********************************@microsof t.com...
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
mail.

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

"From: postmaster@rajani
To: wa*****@tom.com.bn
Date: Tue, 6 Jun 2006 11:22:33 +0800
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="9B095B5ADSN=_01C680B8C044750C00000003raj ani"
Message-ID: <8wSA1XvpF00000003@rajani>
Subject: Delivery Status Notification (Failure)

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

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

This is an automatically generated Delivery Status Notification.

Delivery to the following recipients failed.

wh***@habbox.net

"

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")
personalmessage=replace(request("txtmsg"),vbcrlf,"
")

with sndMail

.Fields("urn:schemas:mailheader:disposition-notification-to")=receiptto
.Fields("urn:schemas:mailheader:return-receipt-to") =receiptto
.From =session("email")
.To =receiptto
.CC="el****@tom.com.bn"
.BCC =session("email")
.Subject="Carton PO ( " & job & " ) from Montex"
.HTMLBody =personalmessage & "

" & request("txtbody")
.DSNOptions=14
.Fields.update
.Send
end with

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

whats the problem.Can anyone help me?

Jun 14 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Remon Huijts | last post: by
6 posts views Thread by John J. Hughes II | last post: by
9 posts views Thread by Bob Jones | last post: by
8 posts views Thread by Andreas Klemt | last post: by
5 posts views Thread by Martin Robins | last post: by
1 post views Thread by =?Utf-8?B?c2VjYWc=?= | last post: by
5 posts views Thread by =?Utf-8?B?bW9tbw==?= | last post: by
reply views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.