|
it
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Sending email via .asp
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? Johnfli wrote:
Show quote > Set ObjMail = CreateObject("CDONTS.NewMail") Either get a copy cdonts.dll and register it on the server (quick> 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? solution), or migrate your code to use cdosys.dll. (preferred solution) http://www.aspfaq.com/show.asp?id=2026 -- Mike Brind 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? > > 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? > > > > > >
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? > > |
|||||||||||||||||||||||