473,394 Members | 1,724 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,394 software developers and data experts.

CDONTS create object but mail not sent

Im trying to post from a form to send an email, im using CDONTS ( I have to as it will be running on NT4), the object appears to get created fine, however the email is not sending, its generates 3 files in the C:\Inetpub\mailroot\Badmail directory they are .BDR, .BDP & .BAD files, here is the text of the .bad:

From: postmaster@SERVERMNAME
To: myemail@domain.com
Date: Fri, 14 Dec 2007 13:55:07 +0000
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="9B095B5ADSN=_01C83E27410D423600000039SER VERMNAME"
Message-ID: <Aztxc1o8y0000001d@SERVERMNAME>
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=_01C83E27410D423600000039SERVERMNAME
Content-Type: text/plain; charset=unicode-1-1-utf-7

This is an automatically generated Delivery Status Notification.

Delivery to the following recipients failed.

myemail@domain.com


--9B095B5ADSN=_01C83E27410D423600000039SERVERMNAME
Content-Type: message/delivery-status

Reporting-MTA: dns;SERVERMNAME
Received-From-MTA: dns;SERVERMNAME
Arrival-Date: Fri, 14 Dec 2007 13:55:05 +0000

Final-Recipient: rfc822;myemail@domain.com
Action: failed
Status: 5.0.0

--9B095B5ADSN=_01C83E27410D423600000039SERVERMNAME
Content-Type: message/rfc822

Received: from mail pickup service by SERVERMNAME with Microsoft SMTPSVC;
Fri, 14 Dec 2007 13:55:05 +0000
Reply-To: <myemail@domain.com>
From: <myemail@domain.com>
To: <myemail@domain.com>
Subject: Subject of the message
Date: Fri, 14 Dec 2007 13:55:05 -0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
Message-ID: <SERVERMNAMETbdkSmL00000011@SERVERMNAME>
X-OriginalArrivalTime: 14 Dec 2007 13:55:05.0546 (UTC) FILETIME=[EE42D2A0:01C83E58]

Dear Sir,

This is a new mail
Thank you.



--9B095B5ADSN=_01C83E27410D423600000039SERVERMNAME—

Here is myasp code:
<%
On Error resume Next
Dim TBdy
Dim MyCDO
CR = Chr(13)
Set MyCDO = Server.CreateObject("CDONTS.NewMail")
If IsObject (MyCDO) Then
MyCDO.From = "myemail@domain.com"
MyCDO.To = "myemail@domain.com"
MyCDO.Subject = "Subject of the message"
TBdy = "Dear Sir," & CR & CR & "This is a new mail" & CR
TBdy = TBdy & "Thank you."
MyCDO.Body = TBdy
MyCDO.Importance = 2 (High)
MyCDO.value("Reply-to")="myemail@domain.com"
MyCDO.Send
Set MyCDO = nothing
Response.Write("Message sent")
Response.Write (MyCDO.Value)
Else
Response.Write("Message not sent")
End If
%>

BDR file:
Unable to deliver this message because the follow error was encountered: "This message is a delivery status notification that cannot be delivered.".

The specific error code was 0xC00402C7.


The message sender was <>.


The message was intended for the following recipients.
<email address removed>


any help would be grateful.
Dec 14 '07 #1
2 2600
Nicodemas
164 Expert 100+
-- edited: I had an answer, but it turned out to be wrong --
Dec 14 '07 #2
JamieHowarth0
533 Expert 512MB
Hi Hughesie,

One of the experts asked me to take a look over this one.

If you remove the On Error Resume Next, and run the script again, what happens?
Also, what mail server are you using (Windows POP3/SMTP, Exchange Server etc.)?

Best regards,

medicineworker
Dec 17 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Guillaume Hanique | last post by:
Hello! Could anybody help me. I wrote a program that interprets information in a database, and can send information via email. The program works fine on my developer machine, but when I run...
4
by: Steve | last post by:
objNewMail = Server.CreateObject("CDONTS.NewMail") How do I know whether the "Send" command from a CDONTS object actually was sent? Is there a status variable that can be checked? Or a log...
6
by: George Viveiros | last post by:
Is there a way to determin if the email message was sent? I have a numnber of applications that use CDONTS to send mail from both ASP and ASPX pages. If the server is down mail does not get sent. I...
2
by: Marty | last post by:
ASP.Net, C#, Email message, CDonts not CDO I am writing an ASP.Net application where I cannot use CDO. I must use CDonts. I cannot find an example of this on the Internet. I only see examples...
6
by: DigitalRick | last post by:
I have been running CDONTS in my ASPpages to send emails to me sent from my guestbook. It had been working fine untill I upgraded to Server 2003 (I am also running Exchange 2003) all locally. I...
2
by: microsoft.public.dotnet.languages.csharp | last post by:
ASP.Net, C#, Email message, CDonts not CDO I am writing an ASP.Net application where I cannot use CDO. I must use CDonts. I cannot find an example of this on the Internet. I only see examples...
6
by: kevin | last post by:
Hi I have just changed hosting companys and my mail forms I find this is because new provider does not support CDONT anymore. Below is my original sent asp using CDONT and below that is my attemt...
3
by: Prasad | last post by:
Hi all, I had to write a page in ASP which sends an email. I googled and was able to write the following code: <html> <body> <% Set Mail = Server.CreateObject("CDONTS.NewMail") Mail.To =...
7
by: Jason1983 | last post by:
Hello sir, When iam trying to send emails to my user accounts which are gmail id's using my application it is giving me this error. Here is the error... Server object error 'ASP 0177 : 800401f3'...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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
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,...
0
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...
0
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,...
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.