473,387 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 5901
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Remon Huijts | last post by:
Hi, When I use php mail() in a script on my localhost to send an HTML message to an e-mailaccount on my online host, all is fine. When I use php mail() in a script on my online host to send an...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
6
by: John J. Hughes II | last post by:
I have a service that needs to send e-mail alerts. I have been attempting to use the System.Net.Mail function from .NET but this seems to require the IIS be installed and running. Since some of...
9
by: Bob Jones | last post by:
We have developed a commercial ASP.net application (personal nutrition management and tracking); we want to send smtp email from within it. For our development box, we use WinXP Pro, IIS 5.5,...
8
by: Andreas Klemt | last post by:
Hello, I get this error Message "cannot redirect after http headers have been sent" when I do this response.redirect ("home.aspx") How can I find out with vb.net if already a http header has...
5
by: Martin Robins | last post by:
I know that this has been asked before; and not only that, I know that it has been answered (successfully) as I myself have previously resolved the problem (with help) - however, I cannot for the...
5
by: Chris | last post by:
I am trying to send email in C#. I wrote 2 pieces of code: 1. MailMessage mail = new MailMessage(); mail.From = "from_address"; mail.To = "to_address"; mail.Subject = "subject"; mail.BodyFormat...
4
by: AndyNY | last post by:
We are using asp.net 2.0 to send email to the pickup folder but are getting an error: Cannot get IIS pickup directory the code is rather simple we are testing with. ...
1
by: =?Utf-8?B?c2VjYWc=?= | last post by:
Lately I cannot send a web page or link in e-mail using "File, Send, Link by e-mail. I get a message that says "the operation failed." HELP!! It's driving me nuts. I have to save it to my...
5
by: =?Utf-8?B?bW9tbw==?= | last post by:
Hello, I've been having a prlbem sending an email using ASP.net 2.0 I can send an email if “To” address is hotmail, gmail or yahoo but not other addresses. Does anyone know how I can...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.