Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    ASP & have generously sponsored dedicated servers and web hosting to ensure a reliable and scalable dedicated hosting solution for

Sending Mail From ASP With CDONTS.NewMail Object

I use the following code to send email from an ASP page:

Dim objSendMail
Set objSendMail = Server.CreateObject("CDONTS.NewMail")

objSendMail.From = ""
objSendMail.To = ""
objSendMail.Subject = "Form Results - Get a Quote"
objSendMail.Body = "This is the Body text of this test mail."
Set objSendMail = Nothing

Of course, the the email addresses above are real on my ASP page.

After the above code is executed, I don't receive any email.

What is the problem?

View Complete Forum Thread with Replies
Sponsored Links:

Related Messages:
CDONTS.NewMail Object
The following is the code to send the email. It sent successfully. but I got the wrong result. I got this in my email:

vi assign

*** Why the dot "." is disappeared after john ? It should be "...../john.mathews"

*** What wrong on my code?

*** How to fix the problem?

View Replies !   View Related
CDONTS.NewMail Object
I am using the CDONTS.NewMail object to send e-mail programmatically. We upgraded our IIS server from NT to Windows 2003 Server. Now it does not appear that the CDONTS object is available on the 2003 Server? Is this correct? If so, how does one send e-mail programmatically on 2003 Server using "Classic ASP" (not .NET). Which object do I use?

View Replies !   View Related
Send Method (CDONTS NewMail Object)
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 do not see a way to determine this by code. Does anyone know of a way?

View Replies !   View Related
Unable To Create Cdonts.newmail Object
I'm having a problem with cdonts.newmail. quite simply when i try to use the server.createobject method to create it it gives me an invalid progid error. it works fine on the test server so the problem is somewhere in the server settings and not with the code. both servers use win2k advanced server.

I'm not sure what information is relevent to this problem so if you need more information please just ask.

specifically I'm wondering if it's possible to dissable the object, preventing it to be created. if this can be done where would you do it?

View Replies !   View Related
ActiveX Component Can't Create Object: 'CDONTS.NewMail'
Does someone know the cause of this error? I'm developing a simple christian site for our church and it needs to have an email functionality. When I submit the form I receive this error. Can anyone give me some tips?

View Replies !   View Related
Error: CDONTS.NewMail.1, ASP 0220 (0x80020009), This ASP File Must Be Transacted In Order To Use The ObjectContext Object.
Hey people,

I have just tested code I pulled from the chilli!Mail tutorial to email data via an ASP page.

It worked perfectly the first time the page was loaded, however now I am getting the following error:

Error Type:
CDONTS.NewMail.1, ASP 0220 (0x80020009)
This ASP file must be transacted in order to use the ObjectContext object.
/ContinuousImprovements/test.asp, line 29

I haven't seen this error before and am not too sure what it means, any help would be appreciated.

The code is below:...

View Replies !   View Related
Sending CDONTS Mail Within Loop
I am trying to send e-mails to customers in a database. Each e-mail is customised for each customer, so I cannot simply copy all customers on the same e-mail. My logic loops through the appropriate recordset and attempts to send a notification e-mail to each customer. The problem is that about 10 - 20% of the e-mails do not get sent! (I know this because I :bcc myself on all the e-mails.) I also know that there is no problem with the e-mail addresses because when I try again to run the program with the same addresses but a smaller list of customers, those mails go out just fine.

The program generates a report which shows that it tried to send all the appropriate e-mails, but in reality several of the mails were not sent. What's interesting is that all of the e-mails near the beginning of the program execution get sent. But as the program goes on, more and more get skipped. It seems that CDONTS cannot keep up with the program execution.

Does anyone know of a way to solve this? What would be great would be a DO... WHILE loop that kept trying until the e-mail was sent successfully. But, for that approach to work, there would have to be some way for the program to check if the e-mail had gone out successfully. Another option would be a loop that waited until the *previous* e-mail had been sent successfully before attempting to send the next one.

Does anyone know of a way to test either of those conditions or of an alternate approach to avoid this problem I am having?

View Replies !   View Related
CDONTs Mail Object
When I sent the below statement in body of the CDONTs mail object it replaced the hyphens with question marks.Actual sent message: "Thursday, June 10, 1 - 3 pm"
Actual recieved message: "Thursday, June 10, 1 ? 3 pm"

View Replies !   View Related
CDONTS Mail Object
I am working with CDONTS mail object. The code doesn't give any syntax error; but, actually it doesn't work because I don't know how to give my local sever's machine name in the Mail Object's .From property. :P What is the machine name? Could any one give me the right format? Where do I know the machine name from? I tired by right clicking "My Computer" and seeing it's properties. But, I think that's not the machine name.

View Replies !   View Related
CDONTS.newMail Help
Set Mail=Server.CreateObject("CDONTS.NewMail")
Mail.Subject="Just testing my script"
Mail.Body="Hey! I am sending this email through an ASP Page and guess what? I haven’t learnt much yet, but know that ASP is very powerful."
Set Mail=nothing

This is the Code and when i Refresh nothing happens, and i didnt receive any emails.
i am using IIS 4.0.

View Replies !   View Related
When I use NewMail objec without att everything is ok, but when I try to send at I got Page Not Found Error.

View Replies !   View Related
I'm sending email in the following code:

dim objCDO
Set objCDO = Server.CreateObject("CDONTS.NewMail")
objCDO.To = ""
objCDO.From = ""
objCDO.Importance = 2 'High importance!
Dim txtSubject
txtSubject = "Hello Scott! We were wanting your advice on some programming issues. Please come to Redmond at your earliest convenience for a very fat check!"

objCDO.Subject = "Attn: Scott, we need you!!"
objCDO.Body = txtSubject

I get no error but i don not get the mail too...

View Replies !   View Related
I created an ASP application, everything worked in test-environment. Today we put it on the intranet server and now the mails aren't send anymore... I use the CDONT object to send the mails...

I've been looking around for a solution, but I can't find one for my problem... this is what I found and already checked:

-the domain addresses are both the same (to and from) and the domain is internal... the smtp server is working as well (it worked in test environment, so...)

-IIS versions on test and intranet are the same, both 5.

View Replies !   View Related
Is it possible to set the font size of the body of the text?

View Replies !   View Related
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?

View Replies !   View Related
I have a form mail that uses CDONTS ,but when i send the form it displays this message

Error Type:
Server object, ASP 0177 (0x800401F3)
Invalid class string
/, line 25

Line 25 is -->Set mail = Server.CreateObject("CDONTS.NewMail")

View Replies !   View Related
CDONTS.Newmail With Message ID
Does anyone know if it is possible to send a message ID to the mail server using CDONTS? or even append something to the message ID that the mailserver assigns to the message.

I am starting to get duplicate message ID's which has been causing many problems down stream.

View Replies !   View Related
Alternative For CDONTS.NewMail
Is there an alternative for CDONTS.NewMail for sending email? according to this article , CDONTS.NewMail works only on Windows NT/2000 Operating Systems.

Is there an alternative class that works on Windows XP to send email?

View Replies !   View Related
Query About Using CDONTS.NewMail
I'm sending out a monthly newsletter to a whole bunch of clients of my company, by using the CDONTS.NewMail Object in ASP. I've added some email addresses of some of my co-workers to my database to see if the message comes out right in their mailboxes.

Most of them received it right, but there were a few cases where, if their Outlook settings were set to the "Rich Text" option in their Mail settings, it came out as scibberish code. Freaked me out!

I was under the impression that by using the CDONTS.NewMail object, and setting the MailFormat and BodyFormat to HTML it should appear right in the receipients inbox. I understand that if it is set to "Plain Text" that it would come out as plain text, but "Rich Text"? And how would I know how many people receives it this way?

In addition to this, I have added the option to receive a Plain Text version of my newsletter, but the problem is that most of the email addresses in my database were manually added, since the newsletter is being sent to selected corporate groups.

Thus, we set all entries to send it as HTML, and if they would like to receive Plain Text, they can update their subscription on our website by clicking a link provided within the distribution.

View Replies !   View Related
Send Method CDONTS.NewMail
I am running the following script for sending e-mail thro web

Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
objCDOMail.From = ""
objCDOMail.To = ""
objCDOMail.Subject = "Library books"
objCDOMail.BodyFormat = 0
objCDOMail.MailFormat = 0
objCDOMail.Body = "hi"
Set objCDOMail = Nothing
I get the following error, when I call send method of CDONTS.NewMail object
Microsoft VBScript runtime error '800a0046'
Permission denied

/cae/library/issueupdate.asp, line 61


I tried both the following. Everything looks fine. My OS is windows200

Can somebody give a clue, what is going wrong....

View Replies !   View Related
CDONTS.NewMail.1 Error '80020009'
Set Mail = Server.CreateObject("CDONTS.NewMail")
Mail.From = ""
Mail.To = ""
Mail.BCC= email
Mail.Subject = "Welcome to Kindis website"
Mail.BodyFormat = 0
Mail.MailFormat = 0
Mail.Body = "<h2>Hello</h2><br><b>This is my e-mail in HTML format</b>"
Set Mail = Nothing <---- Line 121

when i try sending the email i get this error:

CDONTS.NewMail.1 error '80020009'

Unable to connect to server

/kindis/register4.asp, line 121

does it have to be with the mail server im sending to or should i be including a file in this file?

View Replies !   View Related
CDONTS.NewMail MIME Type Problem?
I've got an asp page with a CDONTS object sending HTML mails with proper attachments on them... thing is, some mail recipients get the full attach ok, and some don't (but still get the HTML ok)! (all recipients added to the same object... no more than 10 recipients)

i believe it's got something to do with MIME types and stuff, but i've got no ideia on how to solve this problem...

View Replies !   View Related
Error: CDONTS.NewMail.1 (0x80020009) Component Is Disabled.
I have just inherited a web site with ASP coding. There is a contact form that when submitted sends an e-mail to the administrator. The site was on a Windows server and is now on a Apache *nix server using Sun ONE ASP. I've included the code and error I am receiving. Some suggestions/directions would be much appreciated.

I also have included the original error and line of code I changed it from in case it was necessary?


CDONTS.NewMail.1 (0x80020009)
Component is disabled
/thankyou.asp, line 61


View Replies !   View Related
CDOnts.newmail Attachfile Don't Work When File Is Large
I am using the CDONTS.newmail object to send file as an attachment so I
used attachfile method. it seems the attach file wont work if the file size
more than 100 KB , does anybody know if there is a size limit or where to
change it I am using the SMTP server included with IIS 5.0.

PS when file is sent, it will show on the EMAIL as an attachment only with 0

View Replies !   View Related
CDONTS.NewMail.1 Error '80020009' Unable To Connect To Server
I get the follow error on a linux box that is running sun asp:

CDONTS.NewMail.1 error '80020009' unable to connect to server

The error occurs when the Send Command is Executed. Here is my code:

View Replies !   View Related
Sending Mail Using ASP/VBScript To Exchange Mail Box
Here's the scenario. I'm currently using cdosys/asp to send mail to
our SMTP server. We use a product called MailFilter to check for SPAM.
It doesn't work very well. If MailFilter isn't working cdosys also has
problems and emails don't get sent. As these email are confirmations
for customer's bookings this means lots of customers calling to see
where their confirmation emails have gone. The root of the problem is
MailFilter but that here to stay. So I had this thought of sending the
message to a queue of some sort so at least they will get to the
customer eventually rather than being lost for good. So here's the

Can I/How do I send messages to a mailbox on our exchange server using

View Replies !   View Related
can i type the whole code and run it on my own computer using IIS 5.1 to send mails? cos i get an error message everytime i execute the codes:

Error Type:
Server object, ASP 0177 (0x800401F3)
Invalid class string
/news/newslettercreate.asp, line 22

can someone help me please?

View Replies !   View Related
CDONTS Email Not Sending
my CDONTS email isn't sending.. I think the code is set up correctly but I'm not positive. Is there a way to specify a mail server, if necessary? It seems to be going through without a hitch but the emails are never arriving, to any box I send them to. So perhaps our server needs some sort of authentication before permitting outgoing mails, I'm not really sure. Is there a way to check this?

I have our form set up on a standard html page, with a "action=process.asp" command..

here's the process.asp file..

'Option Explicit
Dim objIndexMail
Set objIndexMail = Server.CreateObject("CDONTS.NewMail")
objIndexMail.From = Request.Form("email")
objIndexMail.To = ""
objIndexMail.Cc = ""

objIndexMail.Subject = "New Inquiry from" & Request.Form("parents")

Response.Write("Ready to create body")

objIndexMail.Body = "bunch of body text here"

Response.Write("body Created")


Set objIndexMail = Nothing
Response.Write("Thank You")

it gets to the thank you message every time, but nothing ever arrives in my mailboxes...

View Replies !   View Related
Need Help For Sending Emails By CDONTS
I am using CDONTS object to send emails to a person when he is registered with the web portal,but the problem is the mail is getting filtered as a spam or junk mail, and does not land in the Inbox,how to send this auto generated email into the inbox and not as a spam or bulk mail.

View Replies !   View Related
Sending Email Using CDONTS
Can someone review and give me some hints. Also when I define my mail object using, "Dim objCDOMail As CDONTS.NewMail", I receive an http error. Code:

View Replies !   View Related
Using CDONTS For Sending Mails
I am writing an ASP page for sending mails using CDONTS component. Is there any way to capture errors if the components fails to send mails?

View Replies !   View Related
Sending Email Using CDONTS Obj.
I'm running Win2K... and have an ASP script that uses the CDONTS object properties to send email from a web-enabled ASP form. Problem is, the page is loading fine, with no errors. However, when I check the '/queue' folder in my Inetpub directory, I see all my mail queued there. It never gets sent. There are no emails in the '/badmail' folder, or in any other folder in '/mailroot'. What gives?

I'm kinda vague on how SMTP works exactly, in Win2K. What I'm trying to do is to send email over a LAN to a client. I want to avoid installing MS Exchange Server if possible. Am just trying to have a client on the LAN send email, and then have the client's Outlook retrieve said mail. All this done offline, without ever connecting to the Net.

View Replies !   View Related
Sending Through Mail
I have already made the form to save itself in an online database. I need to mail it to myself too, what do you recommend me to do?

Some people recommended me ASPEmail, but I didnt understood how to make it works....

View Replies !   View Related
Sending Mail
I' m using opertion system XP PRO,i have instelled the IIs 5.1. im trying to simulate sending email to my outlook express but it'snt working,somebody can tell me if i need to install any other componente?

how to conigurate my smtp(what is my host name,how can i find it)?

I dont want to use external component.

View Replies !   View Related
Sending Mail With PWS
i use a personal web server and i'd like to send a mail into an ASP page.
Usually, i use CDONT component but it seems it does not work on Personal Web

Could anyone tell me what i could use instead?

View Replies !   View Related
E-mail Sending And DSN
Our server is a Windows 2000 Server with Service Pack 3, IIS 5 with Lockdown
Wizard applied.

My first problem is related to CDONTS.NewMail.
Up until recently, I had no problems sending e-mail with this little
utility. Our current development efforts are moving to .NET so it didn't
matter to us that this is something that won't be supported anymore by MS.
However, while we are in the process of flipping to .NET, this is something
we're still using for the time being.

The problem I'm having is that the e-mail is not getting sent at all! I
don't get any errors or anything like that, and when I look at our IIS 4
relaying SMTP mail server, and then look at our big outgoing mail server, I
can't find the e-mail anywhere in there. It's like it vanishes. Can anyone
give any insights?

Secondly, we have an older Access based training application that again, up
until recently was working just fine. I don't know if the IIS lockdown
wizard did something I'm not aware of, but now on the line in the ASP file
where the server goes to open the database using the DSN, I get an
"Unspecified Error"

I checked and found the article about this and tried all of
the tricks mentioned there for this error message. Granting the
IUSR_machinename account read/write access toe the TEMP directory got me
further into the file, but it didn't get me far enough to finish it because
later on in the file, when the server goes to open another connectio nthe
the database, I get he same problem. I cannot modify the source code on
this page without killing our support contract or warranty on the product.
Can anyone give me any thoughts on this one?

View Replies !   View Related
Sending ASP Mail
I am trying to send an email from ASP and get the following error

jmail.Message error '8000ffff'

The message was undeliverable. All servers failed to receive the message

/accountDetails2.asp, line 73

My code lookd like: Line 73 is Code:

View Replies !   View Related
Sending Mail Using CDO
I am using CDONTS to send a mail.There is no error in the code and it says that the mail has been send successfully,But i am not receiving any mails .The Code

Set vobjMail = CreateObject("CDO.Message")
vobjMail.From= Email address
vobjMail.To= Email address
vobjMail.Subject= The subject
vobjMail.TextBody= The Body

set vobjMail=nothing

View Replies !   View Related
Sending Mail Can You Help Me
i m developing EMail sending application but i m failed plz send me html,asp form email page that i can complete my work (Codnts,aspmailer,aspmail)

View Replies !   View Related
Sending E-mail To Different Mail Box!
I would like to know if this can be achieved! On the form I a drop down menu that's called ("Escalation_type") the values are eta, hdtv, and supervisors. I have some ideas but I am not sure if it will work or not. If the use chooses an eta as a value I would like it to be sent a mailbox for exam: If they choose hdtv as value I would like it to be sent to a different mailbox. Can this be achieve by using the case statement or the if statement?

View Replies !   View Related
Email Sending Problem With CDONTS
Hey all, I'm having trouble getting email to be sent using CDONTS. I've done this many times before with no problem, but this one just seems to want to be a pain..

The site is just on an IP address right now, but it still has access to a mail server and all. Everything seems to go correctly, but the mail server has no logs of cdonts trying to send anything. the script isn't generating any errors though.

<%@ language="VBscript" %>

'Option Explicit

Dim objIndexMail
Dim body

Set objIndexMail = Server.CreateObject("CDONTS.NewMail")
objIndexMail.From = Request.Form("email")
objIndexMail.To = "my email address"
objIndexMail.Subject = "New Inquiry from" & Request.Form("parents")
Response.Write("Ready to create body <br><br>")

body = "bunch of body text here"
objIndexMail.Body = body

Response.Write("body Created <br><br>")
Response.Write(body & "<br><br>")

Response.Write("<br><br>Thank You")


Anyone see any problems? there are no messages waiting to be sent in the outbox, and nothing is getting delivered to the badmessages folder either..

View Replies !   View Related
Sending Emails With CDONTs In Russian
I'm sending Russian text in an email generated from the website which displays in the email as ??

The website is set to codepage 65001 and the charset to utf-8.

View Replies !   View Related
IS the code for sending email using cdonts different if you are running a windows 2000 server with exchange 2000 as opposed to running a different windows server (NT) with exchange 5.5?

if I upgrade the server to exchange 2000 from 5.5 do i have to reinstall the cdo.dll on the server??? do i need to somehow reinitialize the cdo so it's active?

View Replies !   View Related
Catching an error from CDONTS New Mail
I need to find away to catch an error if CDONTS” New Mail dose not deliver the email. I have searched for manuals on this but have only found short references on how to send email, nun of them say anything a bought returning an error

View Replies !   View Related
I had a webmail CDONTS script working.quite well too I think
I had an error saying had a type mismatch. I went through the database (it's a web form mailing list for a client) and found what I thought to be bad email addresses. Tried it again and it works fine.
My question, is there anyway to validate the email address? I am assuming that CDONTS wants the text string to be in a certain format. How can I test the data for a valid format, and then throw out that email address if it is not in the expected format?

View Replies !   View Related
Sending Page By E-mail
I'm working on a few intranet pages and have a doubt on how to send e-mails ( i have the aspemail component installed) to outside clients including the invoice for services payment.So differently from Intranet issues where you easily provide a link embeedded on the e-mail, I can't figure how to show the info from outside offices network.
Does anyone knows how to do it? perhaps printingscreen the html page by code and then send to the client as a embedded image or something....?

View Replies !   View Related
Sending Attachment With Mail
I use the following code to attach a file to my mail

Dim objMail
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.From = Request("email")
objMail.Subject = "subject"objMail.AttachFile Server.MapPath("./Uploads/"&file_name)

objMail.To = ""
objMail.MailFormat = 0
objMail.BodyFormat = 0
objMail.Body = strBody

I attach files from the folder uploads which r uploaded there by the user. The problem is that when i recieve the attachment i get a .dat extension with it for eg ;if i attach a.txt i recieve a.txt.dat....

View Replies !   View Related
CDOSYS - Not Sending Mail?
I am usually a CDONTS man but the hosting company say I must use CDOSYS. The following code seems to only work correctly when the recipients email address is the same as the sender address.

I have tried to send the email to Hotmail, Yahoo and GMail accounts and it does not send. No error messages, just is not received in the inbox of the account.....

View Replies !   View Related
Sending Mail Using CDOS
I'm trying to send mail from my ASP page using CDO, but when I execute the query no mail is sent. How do I set up my internet incoming mail server and outgoing SMTP server?

Here is the code: .....

View Replies !   View Related
Problems Sending Mail Using CDO
I'm having a few problems sending an email using CDO from a webpage , just wondered if anyone knew what the error message i'm getting could mean , and if the code i'm using looks ok.

Set ObjMail = Server.CreateObject("CDO.Message")
Set iConf = CreateObject("CDO.Configuration")
Set Flds = iConf.Fields .....

View Replies !   View Related
Sending Mail With Images
HiI'm using ASP 3 and I send mail with CDONTS.NewMail or CDO.Message.

If my mail contains some html code with images like <img src="URL">, OE blocks image's visualization.

If i want to avoid this, when i send my mail from OE i flag "send images with message" option.

How can i realize this when i send the mail with ASP?

View Replies !   View Related
IIS & SMTP Mail Sending
I tried to cend mails with CDONTS.NewMail and the local smtp service of the iis. It works. BUT I tried to send a mail to a invalid address. I got an email (like I configured at the smtp) but the badmail directory is allready empty! I nned the entries for a bounce-management!

View Replies !   View Related

Copyright © 2005-08, All rights reserved