PS
Just out of interest does anyone know if its possible to turn off CDO
sender address checking (.From property) ?
From
E-mail address of the primary author of the message. This property is
optional; if left blank, the From property will be set to the value of the
Sender property, assuming a value for this property has been configured. If
neither the From property nor the Sender property is configured, the script
will fail.
It only appears to accept an "email type" syntax rather than plain text.
However most of the emails I recieve tend to have the From content in plain
text so I assume this is possible?.
"rvj" <rv*@rolemodels.netwrote in message
news:uS**************@TK2MSFTNGP05.phx.gbl...
>
Anyway - thanks to both of you !!!!
I finally managed to send an email !!!
"Anthony Jones" <An*@yadayadayada.comwrote in message
news:OV**************@TK2MSFTNGP02.phx.gbl...
>>
"Dave Anderson" <NY**********@spammotel.comwrote in message
news:12*************@corp.supernews.com...
>>"Anthony Jones" wrote:
You are going to need to find the constant and enumeration values
for all the cdo members you want to use and create variables to
hold them so that code such as the above will work.
No, he will not need to do that. He can use a TYPELIB declaration in
global.asa and drive right on as in his example.
You're quite right. I was under the impression for some reason that only
worked in the VBScript environment but it does indeed work with JScript
just
as well. Eg.:-
<%@language=JScript%>
<!-- METADATA NAME="Microsoft CDO For Exchange 2000 Library"
TYPE="TypeLib" UUID="{CD000000-8B95-11D1-82DB-00C04FB1625D}" -->
<%
Response.Write(cdoSMTPServer)
%>
If only one or two pages need the type library it might be better to just
place the METADATA directive in just those pages rather than in the
global.asa.