Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > CDONTS Issue

Reply
Thread Tools

CDONTS Issue

 
 
Eddie Price
Guest
Posts: n/a
 
      08-24-2005
I have a web database that just keeps users info for clients
uploading/downloading files. Whenever someone uploads a new file this
script sends out an email to notify the company. Script only works for a
short time once I change my email adddress, then just stops. Can't
figure it out, any help would be great.

Function SendMail(EmailComponent, RemoteHost, SenderAddress, SenderName,
RecipientAddress, RecipientName, strSubject, strBody, isHTML)

if SenderName = "" then SenderName = SenderAddress
if RecipientName = "" then RecipientName = RecipientAddress
IF EmailComponent = "CDONTS" THEN
Set mailObj = Server.CreateObject("CDONTS.NewMail")
mailObj.From = SenderAddress
mailObj.To = RecipientName
mailObj.Subject = strSubject
mailObj.Body = strBody
mailObj.BodyFormat = 0
mailObj.MailFormat = 0
mailObj.Send
 
Reply With Quote
 
 
 
 
Aaron Bertrand [SQL Server MVP]
Guest
Posts: n/a
 
      08-24-2005
(a) stop using CDONTS, use CDO.Message!
http://www.aspfaq.com/2026

(b) you need to narrow down what "stops" means.

Does the script return an error? If so, what is it?

Does the script have on error resume next, encounter an error silently, and
keep running? (hint: remove on error resume next)

Is it your e-mail address only? Have you tried other accounts at the same
domain, and other domains entirely (e.g. hotmail)?
http://www.aspfaq.com/2511

Does the mail get stuck in the queue or pickup folder? Have you looked
there?
http://www.aspfaq.com/2268

Does the mail end up in the badmail folder? Have you looked there?
http://www.aspfaq.com/2254

Have you tried both local and remote SMTP modes?
http://www.aspfaq.com/2339



"Eddie Price" <> wrote in message
news:...
>I have a web database that just keeps users info for clients
>uploading/downloading files. Whenever someone uploads a new file this
>script sends out an email to notify the company. Script only works for a
>short time once I change my email adddress, then just stops. Can't figure
>it out, any help would be great.
>
> Function SendMail(EmailComponent, RemoteHost, SenderAddress, SenderName,
> RecipientAddress, RecipientName, strSubject, strBody, isHTML)
>
> if SenderName = "" then SenderName = SenderAddress
> if RecipientName = "" then RecipientName = RecipientAddress
> IF EmailComponent = "CDONTS" THEN
> Set mailObj = Server.CreateObject("CDONTS.NewMail")
> mailObj.From = SenderAddress
> mailObj.To = RecipientName
> mailObj.Subject = strSubject
> mailObj.Body = strBody
> mailObj.BodyFormat = 0
> mailObj.MailFormat = 0
> mailObj.Send



 
Reply With Quote
 
 
 
 
Eddie Price
Guest
Posts: n/a
 
      08-24-2005
"Stops" meaning the emails are not sent, sorry bout that =) As far as
errors, there are none and no idea about the error resume. Will check
out CDO.Message tonite=P


Aaron Bertrand [SQL Server MVP] wrote:
> (a) stop using CDONTS, use CDO.Message!
> http://www.aspfaq.com/2026
>
> (b) you need to narrow down what "stops" means.
>
> Does the script return an error? If so, what is it?
>
> Does the script have on error resume next, encounter an error silently, and
> keep running? (hint: remove on error resume next)
>
> Is it your e-mail address only? Have you tried other accounts at the same
> domain, and other domains entirely (e.g. hotmail)?
> http://www.aspfaq.com/2511
>
> Does the mail get stuck in the queue or pickup folder? Have you looked
> there?
> http://www.aspfaq.com/2268
>
> Does the mail end up in the badmail folder? Have you looked there?
> http://www.aspfaq.com/2254
>
> Have you tried both local and remote SMTP modes?
> http://www.aspfaq.com/2339
>
>
>
> "Eddie Price" <> wrote in message
> news:...
>
>>I have a web database that just keeps users info for clients
>>uploading/downloading files. Whenever someone uploads a new file this
>>script sends out an email to notify the company. Script only works for a
>>short time once I change my email adddress, then just stops. Can't figure
>>it out, any help would be great.
>>
>>Function SendMail(EmailComponent, RemoteHost, SenderAddress, SenderName,
>>RecipientAddress, RecipientName, strSubject, strBody, isHTML)
>>
>>if SenderName = "" then SenderName = SenderAddress
>>if RecipientName = "" then RecipientName = RecipientAddress
>>IF EmailComponent = "CDONTS" THEN
>>Set mailObj = Server.CreateObject("CDONTS.NewMail")
>>mailObj.From = SenderAddress
>>mailObj.To = RecipientName
>>mailObj.Subject = strSubject
>>mailObj.Body = strBody
>>mailObj.BodyFormat = 0
>>mailObj.MailFormat = 0
>>mailObj.Send

>
>
>

 
Reply With Quote
 
Aaron Bertrand [SQL Server MVP]
Guest
Posts: n/a
 
      08-24-2005
> "Stops" meaning the emails are not sent,

Yes, but you need to determine WHERE they stop. Are they in the
queue/pickup/badmail folder? Are they stuck in the smtp server?


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CDONTS issue - Not Working after server migration TWB ASP General 1 05-07-2009 01:57 PM
CDONTS issue (SMS) James ASP General 8 05-26-2005 01:44 PM
Sending CDONTS HTML email issue BaWork ASP General 5 03-26-2005 09:27 PM
Sending message to SMTP server using CDONTS component Chris Pearson ASP .Net 2 07-28-2003 12:06 PM
CDONTS object missing eddie wang ASP .Net 2 07-25-2003 07:07 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57