473,581 Members | 2,891 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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\mail root\badmail contains the file(.bdr). The contents of
the file are

"From: postmaster@raja ni
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="9B095 B5ADSN=_01C680B 8C044750C000000 03rajani"
Message-ID: <8wSA1XvpF00000 003@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=_01 C680B8C044750C0 0000003rajani
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.ne t

"

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,cdoconf ig,personalmess age
set sndMail=server. CreateObject("C DO.Message")
set cdoconfig=serve r.CreateObject( "CDO.configurat ion")
personalmessage =replace(reques t("txtmsg"),vbc rlf,"
")

with sndMail

..Fields("urn:s chemas:mailhead er:disposition-notification-to")=receiptt o
.Fields("urn:sc hemas:mailheade r:return-receipt-to") =receiptto
.From =session("email ")
.To =receiptto
.CC="el****@tom .com.bn"
.BCC =session("email ")
.Subject="Carto n PO ( " & job & " ) from Montex"
.HTMLBody =personalmessag e & "

" & request("txtbod y")
.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 5913
http://www.aspfaq.com/2254


"Rajani" <Ra****@discuss ions.microsoft. com> wrote in message
news:84******** *************** ***********@mic rosoft.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\mail root\badmail contains the file(.bdr). The contents
of
the file are

"From: postmaster@raja ni
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="9B095 B5ADSN=_01C680B 8C044750C000000 03rajani"
Message-ID: <8wSA1XvpF00000 003@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=_01 C680B8C044750C0 0000003rajani
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.ne t

"

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,cdoconf ig,personalmess age
set sndMail=server. CreateObject("C DO.Message")
set cdoconfig=serve r.CreateObject( "CDO.configurat ion")
personalmessage =replace(reques t("txtmsg"),vbc rlf,"
")

with sndMail

.Fields("urn:sc hemas:mailheade r:disposition-notification-to")=receiptt o
.Fields("urn:sc hemas:mailheade r:return-receipt-to") =receiptto
.From =session("email ")
.To =receiptto
.CC="el****@tom .com.bn"
.BCC =session("email ")
.Subject="Carto n PO ( " & job & " ) from Montex"
.HTMLBody =personalmessag e & "

" & request("txtbod y")
.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****@discuss ions.microsoft. com> wrote in message
news:84******** *************** ***********@mic rosoft.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\mail root\badmail contains the file(.bdr). The contents
of
the file are

"From: postmaster@raja ni
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="9B095 B5ADSN=_01C680B 8C044750C000000 03rajani"
Message-ID: <8wSA1XvpF00000 003@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=_01 C680B8C044750C0 0000003rajani
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.ne t

"

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,cdoconf ig,personalmess age
set sndMail=server. CreateObject("C DO.Message")
set cdoconfig=serve r.CreateObject( "CDO.configurat ion")
personalmessage =replace(reques t("txtmsg"),vbc rlf,"
")

with sndMail

.Fields("urn:sc hemas:mailheade r:disposition-notification-to")=receiptt o
.Fields("urn:sc hemas:mailheade r:return-receipt-to") =receiptto
.From =session("email ")
.To =receiptto
.CC="el****@tom .com.bn"
.BCC =session("email ")
.Subject="Carto n PO ( " & job & " ) from Montex"
.HTMLBody =personalmessag e & "

" & request("txtbod y")
.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
2245
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 HTML message to some e-mailaccount other than on my online host, all is fine. But when I use php mail() in a script on my online host to send an...
8
5460
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 -------------------------------------------------------------------------------- Hello, I have a very simple problem but cannot seem to figure it out. I have a very simple php script that sends a test email to myself. When I...
6
3251
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 my customers are not really happy with having the IIS installed, not being used except to send e-mail this is becoming a problem. I have also...
9
4296
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, VisualStudio2002, VB as programing language. Our test/development version of the web app as hosted on our "localhost" works fine; our "Default SMTP...
8
24261
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 been sent like If response.IsSentHttpHeader then ....
5
2134
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 life of me remember what the solution was. I am trying to send an email from an ASP.net application. If I send the email with the...
5
23751
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 = MailFormat.Text; mail.Body = "body"; SmtpMail.SmtpServer = "smtp.server"; mail.Fields.Clear();
4
6880
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. System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage("test@testing.com", "test@test.com",
1
1452
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 desktop and then send it from there. Has anybody experienced this? As far as I can, all my settings are correct. It just started happening and I haven't...
5
11100
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 resolve this problem? Thank you very much in advance, Chieko
0
7876
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main...
0
7804
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8156
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7910
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5681
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5366
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3809
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1409
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1144
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.