Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Bad Mails in CDONTS???


Message #1 by "NaveenG" <naveeng@s...> on Thu, 24 Jan 2002 00:04:41 +0530
This is a multi-part message in MIME format.



------=_NextPart_000_0011_01C1A46A.B8DC2B90

Content-Type: text/plain;

	charset="iso-8859-1"

Content-Transfer-Encoding: quoted-printable



Hi

I'm trying using CDONTS mail. I have to call CDONTS object in loop. I 

tried calling it using,

for i =3D 0 to 5

    Set objCDONTS =3D Server.CreateObject("CDONTS.NewMail")

    objCDONTS.From =3D strFromName & " <" & strFromEmail & ">"

    objCDONTS.To =3D strToEmail

    objCDONTS.Subject =3D strSubject

    objCDONTS.Body =3D strBody

    objCDONTS.Send

    Set objCDONTS =3D Nothing

next i

It didn't work.

But I noticed a strange thing. I removed loop and tried executing it 

once. The mail is going to the bad mail folder in the server. I stopped 

the SMTP service and restarted but no use. Please help me for both of my 

problems



Thanks in advance,

-Nav






Message #2 by Nikos <pappas@c...> on Wed, 23 Jan 2002 22:09:38 +0200
--=====================_169461502==_.ALT

Content-Type: text/plain; charset="iso-8859-1"; format=flowed

Content-Transfer-Encoding: quoted-printable



Hi

I don;t know if it will help but If it comes after a data posted from a form

try your code like this:



dim     strFromEmail ,strToEmail etc....



      strFromEmail =3D Request.Form("strFromEmail ") etc..



then in the rest code use them like



     objCDONTS.From=3D "" & strFromEmail

     objCDONTS.To =3D "" & strToEmail

etc. ...

distroy the objects ok.

loop like you do.



Cheers

Nikos



At 08:34 =EC=EC 23/1/2002, you wrote:

>Hi

>I'm trying using CDONTS mail. I have to call CDONTS object in loop. I

>tried calling it using,

>for i =3D 0 to 5

>     Set objCDONTS =3D Server.CreateObject("CDONTS.NewMail")

>     objCDONTS.From =3D strFromName & " <" & strFromEmail & ">"

>     objCDONTS.To =3D strToEmail

>     objCDONTS.Subject =3D strSubject

>     objCDONTS.Body =3D strBody

>     objCDONTS.Send

>     Set objCDONTS =3D Nothing

>next i

>It didn't work.

>But I noticed a strange thing. I removed loop and tried executing it once.



>The mail is going to the bad mail folder in the server. I stopped the SMTP



>service and restarted but no use. Please help me for both of my problems

>

>Thanks in advance,

>-Nav




>$subst('Email.Unsub').






Message #3 by "Vinod T.G" <vinodtg@h...> on Thu, 24 Jan 2002 03:30:13 +0000

hi ,

I think you have not set up the SMTP service properly that is why it is 

going to the bad mail directory.



try these links

1)http://river.ktnet.co.kr/articles/2000032170903.htm

2)http://river.ktnet.co.kr/articles/2000032171257.htm



Hope it helps



Vinod T.G



>From: "NaveenG" <naveeng@s...>

>Reply-To: "ASP Web HowTo" <asp_web_howto@p...>

>To: "ASP Web HowTo" <asp_web_howto@p...>

>Subject: [asp_web_howto] Bad Mails in CDONTS???

>Date: Thu, 24 Jan 2002 00:04:41 +0530

>

>Hi

>I'm trying using CDONTS mail. I have to call CDONTS object in loop. I tried 

>calling it using,

>for i = 0 to 5

>     Set objCDONTS = Server.CreateObject("CDONTS.NewMail")

>     objCDONTS.From = strFromName & " <" & strFromEmail & ">"

>     objCDONTS.To = strToEmail

>     objCDONTS.Subject = strSubject

>     objCDONTS.Body = strBody

>     objCDONTS.Send

>     Set objCDONTS = Nothing

>next i

>It didn't work.

>But I noticed a strange thing. I removed loop and tried executing it once. 

>The mail is going to the bad mail folder in the server. I stopped the SMTP 

>service and restarted but no use. Please help me for both of my problems

>

>Thanks in advance,

>-Nav

>

>




>$subst('Email.Unsub').





_________________________________________________________________

Chat with friends online, try MSN Messenger: http://messenger.msn.com



Message #4 by "Gerhard Wentink" <data@w...> on Thu, 24 Jan 2002 06:50:10 +0100
This is a multi-part message in MIME format.



------=_NextPart_000_003D_01C1A4A3.5DD43F60

Content-Type: text/plain;

	charset="iso-8859-1"

Content-Transfer-Encoding: quoted-printable



This behaviour will also occur when you forget to assign an e-mail 

adress to the .From property.



Gergard Wentink

  ----- Original Message -----

  From: NaveenG

  To: ASP Web HowTo

  Sent: Wednesday, January 23, 2002 7:34 PM

  Subject: [asp_web_howto] Bad Mails in CDONTS???





  Hi

  I'm trying using CDONTS mail. I have to call CDONTS object in loop. I 

tried calling it using,

  for i =3D 0 to 5

      Set objCDONTS =3D Server.CreateObject("CDONTS.NewMail")

      objCDONTS.From =3D strFromName & " <" & strFromEmail & ">"

      objCDONTS.To =3D strToEmail

      objCDONTS.Subject =3D strSubject

      objCDONTS.Body =3D strBody

      objCDONTS.Send

      Set objCDONTS =3D Nothing

  next i

  It didn't work.

  But I noticed a strange thing. I removed loop and tried executing it 

once. The mail is going to the bad mail folder in the server. I stopped 

the SMTP service and restarted but no use. Please help me for both of my 

problems



  Thanks in advance,

  -Nav




$subst('Email.Unsub').







  Return to Index