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

Could not create 'CDONTS.NewMail' object

Hi,
I wrote mailing service code for my Windows Application. When I was trying
to send a mail thru my application, an Error occurs only for Windows NT
saying that "Could not create 'CDONTS.NewMail' object". It works fine with
Windows 2000 and Windows XP. Could some one pls help to get rid of the
error?

Thanks in advance,
Kiran
Nov 22 '05 #1
7 2807
Cor
Hi Kiran,

True it started with NT/5x it is also not on W9x
I wrote mailing service code for my Windows Application. When I was trying to send a mail thru my application, an Error occurs only for Windows NT
saying that "Could not create 'CDONTS.NewMail' object". It works fine with Windows 2000 and Windows XP. Could some one pls help to get rid of the
error?


Cor

Nov 22 '05 #2
Thanks Cor,
Any alternative solution for this?

Kiran

"Cor" <no*@non.com> wrote in message
news:On*************@TK2MSFTNGP12.phx.gbl...
Hi Kiran,

True it started with NT/5x it is also not on W9x
I wrote mailing service code for my Windows Application. When I was

trying
to send a mail thru my application, an Error occurs only for Windows NT
saying that "Could not create 'CDONTS.NewMail' object". It works fine

with
Windows 2000 and Windows XP. Could some one pls help to get rid of the
error?


Cor

Nov 22 '05 #3
Cor
Hi Kiran,

True it started with NT/5x it is also not on W9x
I wrote mailing service code for my Windows Application. When I was trying to send a mail thru my application, an Error occurs only for Windows NT
saying that "Could not create 'CDONTS.NewMail' object". It works fine with Windows 2000 and Windows XP. Could some one pls help to get rid of the
error?


Cor

Nov 22 '05 #4
Cor
Hi Kiran,

For a real Cdonc (kind of sending batch mail) no?

I did not see it in this newsgroups also, the only simple thing I have for
you is this but that is not sending batch mail. (I did not try it on an NT4x
or a W9x, but I think it will go)
(I have also one from the webbrowser if this would not go, but I should not
know why this one would not go however I am not absolute sure as I said.)

\\\by Fergus Cooney & small corrections by Cor
'A reference to System.Web may be necessary
'in the Project for this Import to work.
Imports System.Web.HttpUtility

Public Sub StartDefaultMail (sTo As String, _
Optional sSubject As String = "", _
Optional sMessage As String = "")
Try
sTo = UrlEncode (sTo)
sSubject = sSubject
sMessage = sMessage
Process.Start ("mailto:" & sTo & "?subject=" _
& sSubject & "&body=" & sMessage)

Catch e As Exception
MsgBox ("Couldn't start default email application" _
& vbCrLf & e.Message)
'or
Throw New Exception ("Couldn't start default email app", e)
End Try
End Sub
///

I hope this helps a little bit?

Cor
Any alternative solution for this?

Kiran

Nov 22 '05 #5
Thanks Cor,
Any alternative solution for this?

Kiran

"Cor" <no*@non.com> wrote in message
news:On*************@TK2MSFTNGP12.phx.gbl...
Hi Kiran,

True it started with NT/5x it is also not on W9x
I wrote mailing service code for my Windows Application. When I was

trying
to send a mail thru my application, an Error occurs only for Windows NT
saying that "Could not create 'CDONTS.NewMail' object". It works fine

with
Windows 2000 and Windows XP. Could some one pls help to get rid of the
error?


Cor

Nov 22 '05 #6
Cor
Hi Kiran,

For a real Cdonc (kind of sending batch mail) no?

I did not see it in this newsgroups also, the only simple thing I have for
you is this but that is not sending batch mail. (I did not try it on an NT4x
or a W9x, but I think it will go)
(I have also one from the webbrowser if this would not go, but I should not
know why this one would not go however I am not absolute sure as I said.)

\\\by Fergus Cooney & small corrections by Cor
'A reference to System.Web may be necessary
'in the Project for this Import to work.
Imports System.Web.HttpUtility

Public Sub StartDefaultMail (sTo As String, _
Optional sSubject As String = "", _
Optional sMessage As String = "")
Try
sTo = UrlEncode (sTo)
sSubject = sSubject
sMessage = sMessage
Process.Start ("mailto:" & sTo & "?subject=" _
& sSubject & "&body=" & sMessage)

Catch e As Exception
MsgBox ("Couldn't start default email application" _
& vbCrLf & e.Message)
'or
Throw New Exception ("Couldn't start default email app", e)
End Try
End Sub
///

I hope this helps a little bit?

Cor
Any alternative solution for this?

Kiran

Nov 22 '05 #7
hi kiran,

i am facing almost the same problem. i made the file in windows 2000 and was working properly (perfectly). now when i try the same code in xp professional it says "Could not create".
Could u please send ur files which works on xp(ASAP). will be great help.

Regads
************************************************** ********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
Nov 22 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

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...
2
by: Tom Petersen | last post by:
Is there anyway to display the comma using CDONTS.NewMail on the from 'object' For example, when I send the email, I want it to say from: Petersen, Tom, but when I rec. it only shows Petersen. ...
5
by: Krishnan | last post by:
Hello I am trying have a feed back page and created an ASP page to send an email. But I get the following error: Error Type: Server object, ASP 0177 (0x800401F3) Invalid class string The...
1
by: aa | last post by:
I am using IIS5 on winXP, and when I using progrma writing with asp, I get the error ActiveX component can't create object: 'CDONTS.NewMail' whats wrong?
6
by: vasanth kumar | last post by:
I am running the following script for sending e-mail thro web Set objCDOMail = Server.CreateObject("CDONTS.NewMail") objCDOMail.From = "vkumar@ugs.com" objCDOMail.To = "vkumar@ugs.com"...
3
by: Robert Hogan | last post by:
Hello, I am attempting to send emails using T-SQL (in a SQLServerAgent Job) using the stored procedure sp_SendSMTPMail. I created the stored proc using the following script that I got off a post...
4
by: kiran | last post by:
Hi, I wrote mailing service code for my Windows Application. When I was trying to send a mail thru my application, an Error occurs only for Windows NT saying that "Could not create...
2
by: Anthony Boudouvas | last post by:
Hi to all, i am just try to send emails in a timer-loop fashion, using the code below and i get the following error message: Could not create 'CDONTS.NewMail' The problem is not happening...
5
by: MichaelK | last post by:
What do I need to do to enable CDONTS om my macine to make it working I'm testing the code: Dim objCDO Set objCDO = Server.CreateObject("CDONTS.NewMail") objCDO.To = "xyz@xxxxx.com"...
1
by: SSG | last post by:
Dear All, I am new to ASP , I am using Win XP pro .. I am trying to send mail thru ASP pgm... BW is the coding....... <% Sub send_email(email_from, email_to, email_subject, email_body)
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: 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
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.