Get .Send Status In CDONTS Or CDOSYS

I put the following code into my mailer: Code:

if objIndexMail.Send then
Response.Write("Mail Sent")
else
Response.Write("Failure. ")
end if

and it's coming up as Failure every time. Is there a way I can see the status of the .Send command, and why it came up as a failure? no errors are being generated, it's just not sending..

View Replies


ADVERTISEMENT

How To Send CDONTS Or CDOSYS Email With Specified Attachment?

I am trying to get a asp-mailer setup that will send a specified attachment.
I have tried both CDONTS and CDOSYS methods ... both are giving me headaches.

And the best part is how incredibly helpful the error is: (Sarcasm Intended)

Error Type:
(0x80004005)
Unspecified error <-- They should change that error to ... "Good Luck!"
/knowledgetree/emailer-drivers.asp, line 90
I hilighted the above line in the code as well.

Here is the code I am working with: Code:

View Replies View Related

Send Email Upon Project Status Update

Currently have a change request process. Requestor completes a form which populates a db, sends an email to a project manager, and lists the project in a master list. The project manager asigns open, in review, rejected, or closed based on criteria. Is there a way to automatically send an email to teh requestor when teh status of teh request changes?

View Replies View Related

CDONTS To CDOSYS

I have an email script that used to work but now doesn't, my web host told me I have to use CDOSYS instead of CDONTS.If it's not to much trouble could someone look at my script below and make it CDOSYS compliant.Thanks

<%@LANGUAGE="VBSCRIPT"%>
<%
Dim usxCDO
Set usxCDO = Server.CreateObject("CDONTS.NewMail")
usxCDO.From = cStr(Request("email"))
usxCDO.To = "someone@somewhere.com"
usxCDO.Subject = "Subscription To Magazine"
usxCDO.Body = Chr(13) & Chr(10) &_
"Name: " & cStr(Request("name")) & Chr(13) & Chr(10) &_
"Company: " & cStr(Request("company")) & Chr(13) & Chr(10) &_
"Email: " & cStr(Request("email")) & Chr(13) & Chr(10) &_
"Instructions: " & cStr(Request("instructions")) & Chr(13) & Chr(10) &_
"A SUBSCRIPTION ORDER HAS BEEN PLACED."
If (cStr(Request("Submit")) <> "") Then

View Replies View Related

Cdonts To Cdosys

I'm trying to convert this code and after several attempts at tutorials I am still scratching my head I am using XP pro IIS

Dim objCDO
Set objCDO = Server.CreateObject("CDONTS.NewMail")
body = body & " Your username is: " & user & vbCrLf
body = body & " Your password is: " & PasswordTemp & vbCrLf

objCDO.To = email
objCDO.From = "user@wherever.com"
objCDO.Subject = "hello"
objCDO.Body = body
objCDO.Send

View Replies View Related

Cdonts And CDOSYS

I am using Cdonts and CDOSYS to send email. Script runs without any error, but some of the reason I am not receiving any e mails. I am using window 2000 on exchange 2000 sercer, Code:

View Replies View Related

CDONTS To CDOSYS

Is it necessary to set field configurations for CDOSYS?

I have yet to recode all my existing uses of CDONTS over to CDOSYS. In most
of the sample code I've seen on the usual ASP sites, there is code to set
field configurations for CDOSYS (usually using With... End With). However,
in a number of CDOSYS-related code samples offered within this news group,
the field configuration code is absent.

View Replies View Related

Cdonts And Cdosys

could someone please explain the difference between CDO, CDONTS and CDOSYS. I was just wondering why they don't just have one instead of many. Code:

View Replies View Related

CDONTS And CDOSYS

For send mail from a web page is there any benefit in using CDOSYS over CDONTS? Are the methods the same? How do you Set the object?

View Replies View Related

CDONTS, CDOSYS & JMail

I've been searching high and low for a decent comparitive analysis of the various e-mail components for IIS (specifically for use with ASP).

Here are a few that are pretty common: ASPMail - I've been using this, but it seems that if the SMTP server is backed up, it slows down ASP page that submits the mail, apparently because this version does NOT provide message queuing
ASPQMail - This component provides the queuing options, which theoretically would avoid ASP slowdown when the SMTP server backs up. Unfortunately my host doesn't offer this component.

CDONTS - Comes with IIS, so widely supported
CDOSYS - Comes with IIS 5 & later
JMail - A free component, also widely used. Documentation is poorly translated into English and difficult to follow.

Putting aside the fact that every web host supports a different set of mail components and "your mileage may vary"...

What is the best-performing solution?

View Replies View Related

CDONTS Or CDOSYS UTF-8 Email

I have a form that needs to handle international characters withing the UTF-8
character set. I have tried all the recommended strategies for getting utf-8
characters from form input to email message and I cannot get it to work. I
need to stay with classic asp for this.

Here are some things I tried:

'CDONTS
Call msg.SetLocaleIDs(65001)

'CDOSYS
msg.HTMLBodyPart.Charset = "utf-8"

I included the following meta tag in the email HTML:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

I also tried modifying the CharSet and CodePage of all involved Request and
Responses.

I was able to Response.Write the form content on post back to the screen and
it was properly rendered. However, none of my efforts can get the email to
render with the correct codebase. I have tried opening the email in Outlook
and Thunderbird. Neither one picks up on the UTF-8 charset meta tag.

View Replies View Related

CDOSYS And CDONTS Quirks

When using CDOSYS, if an email address contains a hyphen(-) prior to the @ sign, the form will fail. Can anyone reading this who uses CDOSYS test this same scenario in their environment? I wonder if this is a CDOSYS issue, or something specific to my situation.

When using CDONTS, we can only send to email addresses that are internal to our company. For example, any emails addressed to(E-Mail address blocked: See forum rules) go through fine. For all non widgetsRus email addresses, such as Internet addresses, the form submits but the delivery never occurs and so failure messages are returned.

This single form has been setup on two servers, on the one server it works fine and can be sent to non widgetsRus recipients. The same form on a different server does not. I know it's not the code so I'm wondering if there are some SMTP settings that could be the problem?

View Replies View Related

Blocking CDONTS/CDOSYS Mail

I run a web site that uses various forms to send email to customers. For example, I have a "Forgot your password?" script and a "Email this page" script.I've found out that when a user sends an email via my site to a Hotmail address, the email just "disappears." I'm assuming Hotmail is considering the email SPAM because it was send by my web server? The site uses ASP and I've tried using CDONTS and CDOSYS (which I specified a SMTP server for) and nothing seems to work for Hotmail.

A large portion of my customers user Hotmail, so banning it really isn't an option.Is there anything I can do to prevent Hotmail from blocking my site's emails?

View Replies View Related

CDOSYS AND CDONTS On W2K3 Machine

I have both cdosys.dll and cdonts.dll on my W2K3 server. We have been told by our web authors that their asp code won't work on our machine and that we don't have CDONTS installed on our machine. They're getting an error from:

Set objCDOMail = Server.CreateObject("CDONTS.NewMail")

I know that the new format is:

Set objCDOMail = Server.CreateObject("CDO.Message")

Is there something special that we have to have installed to make CDONTS work?

View Replies View Related

Hotmail Blocks Emails Sent W/ CDONTS/CDOSYS?

For some reason, the email scripts on my web site can't send emails to
Hotmail accounts. No error is generated, but no email is sent either. I've
done some searching on this matter, and it appears as though I'm not the
only one having this problem, but I have yet to find a solution :(

Below is my CDOSYS script that was *supposed to* resolve the problem by
passing the SMTP server's along with the email, but it doesn't work :(

Have any of you had success with sending emails to Hotmail accounts via CDO?
I don't have control over the server's setup because it's a hosted account...

View Replies View Related

Changing CDONTS Email Form To CDOSYS

i recently finished a tutorial on cdonts and finished putting together the page and form etc. now ive been reading and it seems cdonts is being discontinued and cdosys is taking over. does this mean that my cdonts will not work and i have to trnasfer it to cdosys ?

how can i transfer it to cdosys ? or do i have to make a completely new mail script?

Code: ....

View Replies View Related

How To Replace CDONTS With CDOSYS And Set The Server Name Property

I was told that I need to replace CDONTS with CDOSYS. Code:

View Replies View Related

Use CDOSYS To Send Email On Different Server

I've set up a website contact page which uses CDOSYS to send form details to an email address.

However, the domain is set up such as the client is using their own mail server, and using my server only to host the website.

Ordinarily I would set up hosting with email and change the nameservers of the domain to point to my server, but in this case the client is keeping the nameserver details the same, but just updating the A record to point to my server to display the website.

Trouble is, the CDOSYS email doesn't seem to work with this set-up. Do I need to hard code their mail server IP somewhere to get it to work?

View Replies View Related

Using CDOSYS And The SMTP Service To Send Email

I am running Win XP and have installed the IIS SMTP service, however I'm not sure what I need to do to configure both the SMTP service and CDOSYS properly to allow me to send out email from an ASP script.

THE PROBLEM:

What is happening is the email is not sent and goes to the 'c:InetpubmailrootQueue' folder. I have checked the event viewer and the error I receive is:

Message delivery to the remote domain 'yahoo.com' failed for the following reason: The remote server did not respond to a connection attempt.

I believe the SMTP service isn't setup correctly or I haven't configured CDOSYS properly in my ASP script.

The CDOSYS part of my ASP script is setup as follows (I am using Javascript with ASP btw):

Code: .....

View Replies View Related

How Can We Send Email With Links And Images By Using CDOSYS?

I have a CDOSYS mail and it's working ok but it sends plain text massage. But i want to send with images and links. But when i put a link with image in the .HTMLBody field like <a href="http://www.mysite.com/"><img src="file:///C:/My Documents/image.gif" border="0"></a> so, i got an error message.

Microsoft VBScript compilation error '800a0401'

Expected end of statement

/cdo/cdosys.asp, line 41 .....

View Replies View Related

Upload Files And Send E-mail Using CDOSYS

What I am trying to do is to upload 4 files to my server (Windows 2003 Server Edition , IIS 6.0) and then e-mail them to my e-mail account. I use 2 files. The first is uploadTester.asp...

View Replies View Related

CDOSYS Access Denied On ObjMail.Send

I'm running IIS 6.0 with Exchange 2003. One web site that is hosting is trying to use the new CDO method of sending e-mail.

SMTP Service is working fine for Exchange, but for web sites on the same box using code below generates:

CDO.Message.1 error '80070005'

Access is denied.

/test.asp, line 15

Site: http://www.ytr.com/test.asp

Code: ....

View Replies View Related

CDONTS.Send Ignored

I did a working code with CDONTS on NT4 Now I am testing is on w2k and it looks like objCDONTS.Send is completely ignored.

I think is it ignored because it throws no errors, neither does the rest of
the code setting:

objCDONTS=Server.CreateObject("CDONTS.NewMail") and then manipulating its
properties.

Do I need to somehow set IIS5 to make objCDONTS. Send work?

View Replies View Related

CDONTS.Send

I have a page that sends user comments with CDONTS, works fine.Until I put a URL (http://192.168.0.1).If I use http://domain.com it works fine.Why with the numeric URL, CDONTS does not send the mail?

View Replies View Related

How Can We Send E-Mails With ASP Without Using CDONTS?

Can somebody tell me, How can we send e-Mails with ASP without using CDONTS?
Because some one told me that, it's possible to send e-Mails without using CDONTS. But i don't know how.

View Replies View Related

Send Mail In ASP Using CDONTS

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 = "XXXXXXXXXXXX@XXXXXX.COM"
Mail.From = "YYYYYYYYY@YYYYY.COM"
Mail.Subject = "Test MAIL Subject"
Mail.Body = " Body Body Body Body Body Bodyody Body Body"
If Mail.Send Then
Response.Write("Mail has been sent successfully")
Else
Response.Write("Mail Sending Failed")
End If
Set Mail = nothing
%>
</body>
</html>

When I run this script on a shared hosting server, It's saying "Mail
Sending Failed". I had never written ASP code before and couldn't find
what the reason is.. I also checked whether CDONTS.NewMail component
is available.

View Replies View Related

Send Email With Cdonts

I've tried to send a mail using CDONTS.DLL but the mail goes in to
C:InetpubmailrootQueue"

Here is my code

Dim Mailer
Set Mailer = Server.CreateObject("CDONTS.NewMail")
Mailer.To = "testemail@hotmail.com"
Mailer.From = "expediteur@email.com"
Mailer.Subject = "Titre du message"
Mailer.Body = "Le texte qui sera envoyé"
Mailer.Importance = 0
Mailer.BodyFormat = 0
Mailer.MailFormat = 0
if not Mailer.Send then
response.write ("mail envoye")
else
response.write ("Mail non envoyé. Erreur : ") & Err.Description
end if
Set Mailer = Nothing


I work with win xp pro, do can I use CDONTS or CDO?
I work on local (the webserver is located:C:Inetpubwwwroot)

View Replies View Related

Send Mail With CDONTS

I just found out that CDONTS was indeed installed on our web server so I've been playing around with some easy sample codes. However, when I run the code, nothing happens. I get no errors, it seems like everything went OK, but no email! Are there firewall issues with CDONTS? If so, how can I work around them?

View Replies View Related

CDONTS TO SEND MAIL

I'm not sure if CDONTS is loaded or what is wrong. On a new 2003 Web server w/FP extentions but mail is not being sent. In and ASP page I have:

set objSendMail = CreateObject("CDONTS.NewMail")

Which worked fine when I was using an NT 4 and IIS 4 or 5

View Replies View Related

Can Not Send Attachment With CDONTS

Set mail = Server.CreateObject("CDONTS.Newmail")
mail.From = janki@yahoo.co.in
mail.To = sender@yahoo.com
mail.Subject = "Subject"
mail.Body = "newsletter"
mail.AttachFile = "C: est.zip"
mail.BodyFormat = 0 'CdoBodyFormatHTML
mail.Send
Set mail = Nothing
this code is not working please help.....

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 = "vkumar@ugs.com"
objCDOMail.To = "vkumar@ugs.com"
objCDOMail.Subject = "Library books"
objCDOMail.BodyFormat = 0
objCDOMail.MailFormat = 0
objCDOMail.Body = "hi"
objCDOMail.Send
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
server

http://support.microsoft.com/defaul...kb;en-us;286301

http://support.microsoft.com/defaul...kb;en-us;197619

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

View Replies View Related

How Do I Use CDONTS.new To Send An Email With Attachment?

Can someone give me some sample code to use CDONTS.new to send email with an attachment?

I've got sample code from the following website;

http://msdn.microsoft.com/library/e...sp?frame=true

But, I'm having trouble GETTING the relevant field from my HTML form! I can't seem to be able to get the field property. It just comes up as a blank.

View Replies View Related

How To Send Name Of Email Sender Using CDONTS.

I'm not new about send email with CDONTS. But one thing I don't
know.. How to send name of email sender with email. As All command
I used to use is as follow.

Dim myMail
Set myMail = CreateObject("CDONTS.NewMail")
myMail.From="tom@hotmail.com"
myMail.To="paul@hotmail.com"
myMail.Subject="Hello :-)"
myMail.BodyFormat=0
myMail.MailFormat=0
myMail.Body=HTML
myMail.Send

when the reciever recieve email. Such as in hotmail box. It will show
tom@hotmail.com as sender. But I want it to show name such as
...Tom Hariton not tom@hotmail.com But I don't know that command
to add in the script.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved