Sure! Have an #include file that handles the mail with a function.
-- mail.asp
<%
Function SendMail(From, To, Subject, Body)
Set cdo = CreateObject("CDO.Message")
...
Set cdo = Nothing
End Function
%>
-- any other page
<!--#include file=mail.asp-->
<%
Call SendMail("yo*@me.com", "me@you.com", "This is a subject", "This is
a body")
%>
"Keith D" <Keith
D@discussions.microsoft.com> wrote in message
news:DB**********************************@microsof t.com...
I have multiple asp files which used CDONTS. As we are switching over to
CDOSYS these files need to be updated. Is there a way that the cdo
commands
can be called from one general area, rather then have to modify each file?
Thanks