Home All Groups Group Topic Archive Search About


Author
21 Jun 2006 9:07 PM
Johnfli
Set ObjMail = CreateObject("CDONTS.NewMail")
ObjMail.From = emlFrom
ObjMail.To = emlAddress
ObjMail.Subject = emlSubject
ObjMail.Body = emlBody
ObjMail.Send
Set ObjMail = Nothing



I recently upgraded my webserver from NT4.0 to Windows 2003 Web Edition.
Now, the above code no longer works.
It worked great on NT4

What do I need to do to make it work with my new server?

Author
21 Jun 2006 9:18 PM
Mike Brind
Johnfli wrote:
Show quote
> Set ObjMail = CreateObject("CDONTS.NewMail")
>  ObjMail.From = emlFrom
>  ObjMail.To = emlAddress
>  ObjMail.Subject = emlSubject
>  ObjMail.Body = emlBody
>  ObjMail.Send
>  Set ObjMail = Nothing
>
>
>
> I recently upgraded my webserver from NT4.0 to Windows 2003 Web Edition.
> Now, the above code no longer works.
> It worked great on NT4
>
> What do I need to do to make it work with my new server?

Either get a copy cdonts.dll and register it on the server (quick
solution), or migrate your code to use cdosys.dll. (preferred solution)

http://www.aspfaq.com/show.asp?id=2026

--
Mike Brind
Author
21 Jun 2006 9:21 PM
Michael Kujawa
Hi John,

CDONTS is no longer supported on 2003
you have to use CDO

check this out
http://support.microsoft.com/?id=315197



Show quote
"Johnfli" <j***@ivhs.us> wrote in message
news:eq$o2aXlGHA.2304@TK2MSFTNGP02.phx.gbl...
> Set ObjMail = CreateObject("CDONTS.NewMail")
>  ObjMail.From = emlFrom
>  ObjMail.To = emlAddress
>  ObjMail.Subject = emlSubject
>  ObjMail.Body = emlBody
>  ObjMail.Send
>  Set ObjMail = Nothing
>
>
>
> I recently upgraded my webserver from NT4.0 to Windows 2003 Web Edition.
> Now, the above code no longer works.
> It worked great on NT4
>
> What do I need to do to make it work with my new server?
>
>
Author
21 Jun 2006 9:27 PM
Michael Kujawa
hmmm
tried to cancel my reply post after I saw Mike B
had already answered. There is a definite time lag
on this server.

msnews.microsoft.com does not allow canceling
messages?



Show quote
"Michael Kujawa" <nof at kujawas dot net> wrote in message
news:%23DM%23diXlGHA.2128@TK2MSFTNGP04.phx.gbl...
> Hi John,
>
> CDONTS is no longer supported on 2003
> you have to use CDO
>
> check this out
> http://support.microsoft.com/?id=315197
>
>
>
> "Johnfli" <j***@ivhs.us> wrote in message
> news:eq$o2aXlGHA.2304@TK2MSFTNGP02.phx.gbl...
> > Set ObjMail = CreateObject("CDONTS.NewMail")
> >  ObjMail.From = emlFrom
> >  ObjMail.To = emlAddress
> >  ObjMail.Subject = emlSubject
> >  ObjMail.Body = emlBody
> >  ObjMail.Send
> >  Set ObjMail = Nothing
> >
> >
> >
> > I recently upgraded my webserver from NT4.0 to Windows 2003 Web Edition.
> > Now, the above code no longer works.
> > It worked great on NT4
> >
> > What do I need to do to make it work with my new server?
> >
> >
>
>
Author
22 Jun 2006 2:18 AM
Kyle Peterson
http://www.powerasp.com/content/new/sending_email_cdosys.asp

Show quote
"Johnfli" <j***@ivhs.us> wrote in message
news:eq$o2aXlGHA.2304@TK2MSFTNGP02.phx.gbl...
> Set ObjMail = CreateObject("CDONTS.NewMail")
> ObjMail.From = emlFrom
> ObjMail.To = emlAddress
> ObjMail.Subject = emlSubject
> ObjMail.Body = emlBody
> ObjMail.Send
> Set ObjMail = Nothing
>
>
>
> I recently upgraded my webserver from NT4.0 to Windows 2003 Web Edition.
> Now, the above code no longer works.
> It worked great on NT4
>
> What do I need to do to make it work with my new server?
>
>

AddThis Social Bookmark Button