This is a multi-part message in MIME format.

------=_NextPart_000_0008_01C6378C.DD4AE520
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I have used the following code in the expectation that I can send mail =
from an .asp page using VB Script
It doesn't live up to my expectations
I would appreciate advice as to why.

'Win 2000 (NOT Server Version)
' In Sys32
'cdonts.dll and cdosys.dll
'Permenant connection to the internet

Dim txtBody
Dim objCDOMail

Set objCDOMail =3D Server.CreateObject("CDONTS.NewMail")
objCDOMail.To =3D "jBuntxx@Blueyonder.co.uk" 'the destination
objCDOMail.From =3D "jBuntxx@BlueYonder.co.uk" 'the sender
objCDOMail.cc =3D "Hartdxxx@BlueYonder.co.uk" 'carbon copy

txtBody =3D "This email has been sent by an asp script"
objCDOMail.Subject =3D "CDONTS" 'the subject
objCDOMail.Body =3D txtBody 'the body
objCDOMail.Send 'fire off the email
'No sign of any mail being sent

response.write objCDOMail.To
'GIVES ERROR > Object doesn't support this property or method: 'To'

'HELP!!!


Jim Bunton

------=_NextPart_000_0008_01C6378C.DD4AE520
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1528" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>I have used the following code in the =
expectation=20
that I can send mail from an .asp page using VB Script</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>It doesn't live up to my =
expectations</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I would appreciate advice as to =
why.</FONT></DIV>
<DIV><BR><FONT face=3DArial size=3D2>&nbsp;<STRONG>'Win 2000 (NOT Server =

Version</STRONG>)<BR>&nbsp;<STRONG>' In Sys32<BR>&nbsp;'cdonts.dll and=20
cdosys.dll</STRONG></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>'Permenant&nbsp;connection to =
the=20
internet</STRONG></FONT></DIV>
<DIV><STRONG><FONT face=3DArial size=3D2></FONT></STRONG>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Dim txtBody
<DIV><FONT face=3DArial size=3D2>Dim =
objCDOMail</FONT></DIV><BR>&nbsp;Set objCDOMail=20
=3D Server.CreateObject("CDONTS.NewMail")<BR>&nbsp;objCDOMail.To =3D =
"</FONT><A=20
href=3D"mailto:jBuntxx@Blueyonder.co.uk"><FONT face=3DArial=20
size=3D2>jBuntxx@Blueyonder.co.uk</FONT></A><FONT face=3DArial =
size=3D2>"&nbsp;&nbsp;=20
'the destination<BR>&nbsp;objCDOMail.From =3D "</FONT><A=20
href=3D"mailto:jBuntxx@BlueYonder.co.uk"><FONT face=3DArial=20
size=3D2>jBuntxx@BlueYonder.co.uk</FONT></A><FONT face=3DArial =
size=3D2>"&nbsp;&nbsp;=20
'the sender<BR>&nbsp;objCDOMail.cc =3D "</FONT><A=20
href=3D"mailto:Hartdxxx@BlueYonder.co.uk"><FONT face=3DArial=20
size=3D2>Hartdxxx@BlueYonder.co.uk</FONT></A><FONT face=3DArial =
size=3D2>"&nbsp;&nbsp;=20
'carbon copy</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;txtBody =3D "This email has been =
sent by an asp=20
script"<BR>&nbsp;objCDOMail.Subject =3D "CDONTS"&nbsp;&nbsp; 'the=20
subject<BR>&nbsp;objCDOMail.Body =3D txtBody&nbsp;&nbsp; 'the=20
body<BR>&nbsp;objCDOMail.Send&nbsp;&nbsp; 'fire off the =
email<BR><U>&nbsp;'No=20
sign of any mail being sent</U></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><U></U><BR>&nbsp;response.write=20
objCDOMail.To</FONT><FONT face=3DArial size=3D2><BR>&nbsp;<U>'GIVES =
ERROR</U> &gt;=20
Object doesn't support this property or method: 'To'<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>'HELP!!!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;</DIV></FONT>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Jim =
Bunton<BR></FONT></DIV></BODY></HTML>

------=_NextPart_000_0008_01C6378C.DD4AE520--

Re: Sendin Mail From a Script by Darko

Darko
Wed Feb 22 04:17:37 CST 2006


"Jim Bunton" <jBunton@BlueYonder.co.uk> wrote in message
news:cAVKf.39087$DM.19854@fe3.news.blueyonder.co.uk...
I have used the following code in the expectation that I can send mail from
an .asp page using VB Script
It doesn't live up to my expectations
I would appreciate advice as to why.

'Win 2000 (NOT Server Version)
' In Sys32
'cdonts.dll and cdosys.dll
'Permenant connection to the internet

Dim txtBody
Dim objCDOMail

Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
objCDOMail.To = "jBuntxx@Blueyonder.co.uk" 'the destination
objCDOMail.From = "jBuntxx@BlueYonder.co.uk" 'the sender
objCDOMail.cc = "Hartdxxx@BlueYonder.co.uk" 'carbon copy

txtBody = "This email has been sent by an asp script"
objCDOMail.Subject = "CDONTS" 'the subject
objCDOMail.Body = txtBody 'the body
objCDOMail.Send 'fire off the email
'No sign of any mail being sent

response.write objCDOMail.To
'GIVES ERROR > Object doesn't support this property or method: 'To'

'HELP!!!


Jim Bunton


Hi Jim,

maybe this will help
http://support.microsoft.com/default.aspx?scid=kb;en-us;189945



Re: Sendin Mail From a Script by Jim

Jim
Wed Feb 22 04:42:19 CST 2006

Dear Darko,
Thanks for your prompt reply.
It's better than mine in so far as it does proclaim "Message Sent". Howver -
it lies! No message sent at all! I did remember to ensure that I changed the
email addresses.


"Darko Bazulj" <Darko.Bazulj@discussions.microsoft.com> wrote in message
news:uvTX0k5NGHA.2336@TK2MSFTNGP12.phx.gbl...
>
> "Jim Bunton" <jBunton@BlueYonder.co.uk> wrote in message
> news:cAVKf.39087$DM.19854@fe3.news.blueyonder.co.uk...
> I have used the following code in the expectation that I can send mail
from
> an .asp page using VB Script
> It doesn't live up to my expectations
> I would appreciate advice as to why.
>
> 'Win 2000 (NOT Server Version)
> ' In Sys32
> 'cdonts.dll and cdosys.dll
> 'Permenant connection to the internet
>
> Dim txtBody
> Dim objCDOMail
>
> Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
> objCDOMail.To = "jBuntxx@Blueyonder.co.uk" 'the destination
> objCDOMail.From = "jBuntxx@BlueYonder.co.uk" 'the sender
> objCDOMail.cc = "Hartdxxx@BlueYonder.co.uk" 'carbon copy
>
> txtBody = "This email has been sent by an asp script"
> objCDOMail.Subject = "CDONTS" 'the subject
> objCDOMail.Body = txtBody 'the body
> objCDOMail.Send 'fire off the email
> 'No sign of any mail being sent
>
> response.write objCDOMail.To
> 'GIVES ERROR > Object doesn't support this property or method: 'To'
>
> 'HELP!!!
>
>
> Jim Bunton
>
>
> Hi Jim,
>
> maybe this will help
> http://support.microsoft.com/default.aspx?scid=kb;en-us;189945
>
>



Re: Sendin Mail From a Script by Darko

Darko
Wed Feb 22 05:22:24 CST 2006


"Jim Bunton" <jBunton@BlueYonder.co.uk> wrote in message
news:feXKf.44930$YJ4.37421@fe2.news.blueyonder.co.uk...
> Dear Darko,
> Thanks for your prompt reply.
> It's better than mine in so far as it does proclaim "Message Sent".
> Howver -
> it lies! No message sent at all! I did remember to ensure that I changed
> the
> email addresses.
>
>
> "Darko Bazulj" <Darko.Bazulj@discussions.microsoft.com> wrote in message
> news:uvTX0k5NGHA.2336@TK2MSFTNGP12.phx.gbl...
>>
>> "Jim Bunton" <jBunton@BlueYonder.co.uk> wrote in message
>> news:cAVKf.39087$DM.19854@fe3.news.blueyonder.co.uk...
>> I have used the following code in the expectation that I can send mail
> from
>> an .asp page using VB Script
>> It doesn't live up to my expectations
>> I would appreciate advice as to why.
>>
>> 'Win 2000 (NOT Server Version)
>> ' In Sys32
>> 'cdonts.dll and cdosys.dll
>> 'Permenant connection to the internet
>>
>> Dim txtBody
>> Dim objCDOMail
>>
>> Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
>> objCDOMail.To = "jBuntxx@Blueyonder.co.uk" 'the destination
>> objCDOMail.From = "jBuntxx@BlueYonder.co.uk" 'the sender
>> objCDOMail.cc = "Hartdxxx@BlueYonder.co.uk" 'carbon copy
>>
>> txtBody = "This email has been sent by an asp script"
>> objCDOMail.Subject = "CDONTS" 'the subject
>> objCDOMail.Body = txtBody 'the body
>> objCDOMail.Send 'fire off the email
>> 'No sign of any mail being sent
>>
>> response.write objCDOMail.To
>> 'GIVES ERROR > Object doesn't support this property or method: 'To'
>>
>> 'HELP!!!
>>
>>
>> Jim Bunton
>>
>>
>> Hi Jim,
>>
>> maybe this will help
>> http://support.microsoft.com/default.aspx?scid=kb;en-us;189945
>>
>>
>
>

Hi Jim,

check SMTP service config and maybe next link help
http://support.microsoft.com/default.aspx?scid=kb;en-us;324649



Re: Sendin Mail From a Script by Ken

Ken
Wed Feb 22 05:39:12 CST 2006

Check the "drop" and "queue" folders in c:\inetpub\mailroot

All this script does is create a text file that gets dropped into the
c:\inetpub\mailroot\drop folder. The SMTP Service is then responsible for
delivering the message.

Cheers
Ken


"Jim Bunton" <jBunton@BlueYonder.co.uk> wrote in message
news:feXKf.44930$YJ4.37421@fe2.news.blueyonder.co.uk...
: Dear Darko,
: Thanks for your prompt reply.
: It's better than mine in so far as it does proclaim "Message Sent".
Howver -
: it lies! No message sent at all! I did remember to ensure that I changed
the
: email addresses.
:
:
: "Darko Bazulj" <Darko.Bazulj@discussions.microsoft.com> wrote in message
: news:uvTX0k5NGHA.2336@TK2MSFTNGP12.phx.gbl...
: >
: > "Jim Bunton" <jBunton@BlueYonder.co.uk> wrote in message
: > news:cAVKf.39087$DM.19854@fe3.news.blueyonder.co.uk...
: > I have used the following code in the expectation that I can send mail
: from
: > an .asp page using VB Script
: > It doesn't live up to my expectations
: > I would appreciate advice as to why.
: >
: > 'Win 2000 (NOT Server Version)
: > ' In Sys32
: > 'cdonts.dll and cdosys.dll
: > 'Permenant connection to the internet
: >
: > Dim txtBody
: > Dim objCDOMail
: >
: > Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
: > objCDOMail.To = "jBuntxx@Blueyonder.co.uk" 'the destination
: > objCDOMail.From = "jBuntxx@BlueYonder.co.uk" 'the sender
: > objCDOMail.cc = "Hartdxxx@BlueYonder.co.uk" 'carbon copy
: >
: > txtBody = "This email has been sent by an asp script"
: > objCDOMail.Subject = "CDONTS" 'the subject
: > objCDOMail.Body = txtBody 'the body
: > objCDOMail.Send 'fire off the email
: > 'No sign of any mail being sent
: >
: > response.write objCDOMail.To
: > 'GIVES ERROR > Object doesn't support this property or method: 'To'
: >
: > 'HELP!!!
: >
: >
: > Jim Bunton
: >
: >
: > Hi Jim,
: >
: > maybe this will help
: > http://support.microsoft.com/default.aspx?scid=kb;en-us;189945
: >
: >
:
:



Re: Sendin Mail From a Script by Jim

Jim
Wed Feb 22 06:39:45 CST 2006

Thanks again for the prompt response

My Default SMTP Virtual server is dead!
It doesn't want to restart

I'm not at all sure what I need to do to resurect it!

Its Properties:- IP Address (All Unassigned) --the only alternative is
192.168.0.200 (which I think is me)

?? does it need to know the IP address of my email provider??
nslookup says>
can't find server for 62.30.64.113

default server ns1-tel.blueyonder.nat address194.117.134.19 (which is my
internet provider

where it has got 62.30.64.113 I have no idea!


"Darko Bazulj" <Darko.Bazulj@discussions.microsoft.com> wrote in message
news:O$w4BJ6NGHA.1124@TK2MSFTNGP10.phx.gbl...
>
> "Jim Bunton" <jBunton@BlueYonder.co.uk> wrote in message
> news:feXKf.44930$YJ4.37421@fe2.news.blueyonder.co.uk...
> > Dear Darko,
> > Thanks for your prompt reply.
> > It's better than mine in so far as it does proclaim "Message Sent".
> > Howver -
> > it lies! No message sent at all! I did remember to ensure that I changed
> > the
> > email addresses.
> >
> >
> > "Darko Bazulj" <Darko.Bazulj@discussions.microsoft.com> wrote in message
> > news:uvTX0k5NGHA.2336@TK2MSFTNGP12.phx.gbl...
> >>
> >> "Jim Bunton" <jBunton@BlueYonder.co.uk> wrote in message
> >> news:cAVKf.39087$DM.19854@fe3.news.blueyonder.co.uk...
> >> I have used the following code in the expectation that I can send mail
> > from
> >> an .asp page using VB Script
> >> It doesn't live up to my expectations
> >> I would appreciate advice as to why.
> >>
> >> 'Win 2000 (NOT Server Version)
> >> ' In Sys32
> >> 'cdonts.dll and cdosys.dll
> >> 'Permenant connection to the internet
> >>
> >> Dim txtBody
> >> Dim objCDOMail
> >>
> >> Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
> >> objCDOMail.To = "jBuntxx@Blueyonder.co.uk" 'the destination
> >> objCDOMail.From = "jBuntxx@BlueYonder.co.uk" 'the sender
> >> objCDOMail.cc = "Hartdxxx@BlueYonder.co.uk" 'carbon copy
> >>
> >> txtBody = "This email has been sent by an asp script"
> >> objCDOMail.Subject = "CDONTS" 'the subject
> >> objCDOMail.Body = txtBody 'the body
> >> objCDOMail.Send 'fire off the email
> >> 'No sign of any mail being sent
> >>
> >> response.write objCDOMail.To
> >> 'GIVES ERROR > Object doesn't support this property or method: 'To'
> >>
> >> 'HELP!!!
> >>
> >>
> >> Jim Bunton
> >>
> >>
> >> Hi Jim,
> >>
> >> maybe this will help
> >> http://support.microsoft.com/default.aspx?scid=kb;en-us;189945
> >>
> >>
> >
> >
>
> Hi Jim,
>
> check SMTP service config and maybe next link help
> http://support.microsoft.com/default.aspx?scid=kb;en-us;324649
>
>



Re: Sendin Mail From a Script by Jim

Jim
Wed Feb 22 06:48:10 CST 2006

Hi Ken - thanks for your reply
All these directories are empty!

But my SMTP service is dead! won't restart - see thread above



"Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message
news:uPMXcS6NGHA.428@tk2msftngp13.phx.gbl...
> Check the "drop" and "queue" folders in c:\inetpub\mailroot
>
> All this script does is create a text file that gets dropped into the
> c:\inetpub\mailroot\drop folder. The SMTP Service is then responsible for
> delivering the message.
>
> Cheers
> Ken
>
>
> "Jim Bunton" <jBunton@BlueYonder.co.uk> wrote in message
> news:feXKf.44930$YJ4.37421@fe2.news.blueyonder.co.uk...
> : Dear Darko,
> : Thanks for your prompt reply.
> : It's better than mine in so far as it does proclaim "Message Sent".
> Howver -
> : it lies! No message sent at all! I did remember to ensure that I changed
> the
> : email addresses.
> :
> :
> : "Darko Bazulj" <Darko.Bazulj@discussions.microsoft.com> wrote in message
> : news:uvTX0k5NGHA.2336@TK2MSFTNGP12.phx.gbl...
> : >
> : > "Jim Bunton" <jBunton@BlueYonder.co.uk> wrote in message
> : > news:cAVKf.39087$DM.19854@fe3.news.blueyonder.co.uk...
> : > I have used the following code in the expectation that I can send mail
> : from
> : > an .asp page using VB Script
> : > It doesn't live up to my expectations
> : > I would appreciate advice as to why.
> : >
> : > 'Win 2000 (NOT Server Version)
> : > ' In Sys32
> : > 'cdonts.dll and cdosys.dll
> : > 'Permenant connection to the internet
> : >
> : > Dim txtBody
> : > Dim objCDOMail
> : >
> : > Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
> : > objCDOMail.To = "jBuntxx@Blueyonder.co.uk" 'the destination
> : > objCDOMail.From = "jBuntxx@BlueYonder.co.uk" 'the sender
> : > objCDOMail.cc = "Hartdxxx@BlueYonder.co.uk" 'carbon copy
> : >
> : > txtBody = "This email has been sent by an asp script"
> : > objCDOMail.Subject = "CDONTS" 'the subject
> : > objCDOMail.Body = txtBody 'the body
> : > objCDOMail.Send 'fire off the email
> : > 'No sign of any mail being sent
> : >
> : > response.write objCDOMail.To
> : > 'GIVES ERROR > Object doesn't support this property or method: 'To'
> : >
> : > 'HELP!!!
> : >
> : >
> : > Jim Bunton
> : >
> : >
> : > Hi Jim,
> : >
> : > maybe this will help
> : > http://support.microsoft.com/default.aspx?scid=kb;en-us;189945
> : >
> : >
> :
> :
>
>



Re: Sendin Mail From a Script by jeff

jeff
Thu Feb 23 22:39:08 CST 2006

>My Default SMTP Virtual server is dead!
>It doesn't want to restart

How do you know? Check the event log for the reason.

Jeff

Re: Sendin Mail From a Script by Jim

Jim
Fri Feb 24 10:17:30 CST 2006

Thanks for the reply Ken
Nothing in the drop and queue directories!!

"Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message
news:uPMXcS6NGHA.428@tk2msftngp13.phx.gbl...
> Check the "drop" and "queue" folders in c:\inetpub\mailroot
>
> All this script does is create a text file that gets dropped into the
> c:\inetpub\mailroot\drop folder. The SMTP Service is then responsible for
> delivering the message.
>
> Cheers
> Ken
>
>
> "Jim Bunton" <jBunton@BlueYonder.co.uk> wrote in message
> news:feXKf.44930$YJ4.37421@fe2.news.blueyonder.co.uk...
> : Dear Darko,
> : Thanks for your prompt reply.
> : It's better than mine in so far as it does proclaim "Message Sent".
> Howver -
> : it lies! No message sent at all! I did remember to ensure that I changed
> the
> : email addresses.
> :
> :
> : "Darko Bazulj" <Darko.Bazulj@discussions.microsoft.com> wrote in message
> : news:uvTX0k5NGHA.2336@TK2MSFTNGP12.phx.gbl...
> : >
> : > "Jim Bunton" <jBunton@BlueYonder.co.uk> wrote in message
> : > news:cAVKf.39087$DM.19854@fe3.news.blueyonder.co.uk...
> : > I have used the following code in the expectation that I can send mail
> : from
> : > an .asp page using VB Script
> : > It doesn't live up to my expectations
> : > I would appreciate advice as to why.
> : >
> : > 'Win 2000 (NOT Server Version)
> : > ' In Sys32
> : > 'cdonts.dll and cdosys.dll
> : > 'Permenant connection to the internet
> : >
> : > Dim txtBody
> : > Dim objCDOMail
> : >
> : > Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
> : > objCDOMail.To = "jBuntxx@Blueyonder.co.uk" 'the destination
> : > objCDOMail.From = "jBuntxx@BlueYonder.co.uk" 'the sender
> : > objCDOMail.cc = "Hartdxxx@BlueYonder.co.uk" 'carbon copy
> : >
> : > txtBody = "This email has been sent by an asp script"
> : > objCDOMail.Subject = "CDONTS" 'the subject
> : > objCDOMail.Body = txtBody 'the body
> : > objCDOMail.Send 'fire off the email
> : > 'No sign of any mail being sent
> : >
> : > response.write objCDOMail.To
> : > 'GIVES ERROR > Object doesn't support this property or method: 'To'
> : >
> : > 'HELP!!!
> : >
> : >
> : > Jim Bunton
> : >
> : >
> : > Hi Jim,
> : >
> : > maybe this will help
> : > http://support.microsoft.com/default.aspx?scid=kb;en-us;189945
> : >