Ive come a cross another issue when trying to convert CDO VB to JS
The basic send generated the SendUsing configuration is invalid which I
understand means I have to specify the smpt server (amongst other
things)using the configuration object
*************** *************** ****
Set objConfig = Server.CreateOb ject("CDO.Confi guration")
objConfig.Field s(cdoSendUsingM ethod) = cdoSendUsingPor t
objConfig.Field s(cdoSMTPServer )="smtp.server. co.uk"
objConfig.Field s(cdoSMTPServer Port)=25
objConfig.Field s(cdoSMTPAuthen ticate)=cdoBasi c
objConfig.Field s(cdoSendUserNa me) = "mxxxxxxxx-x"
objConfig.Field s(cdoSendPasswo rd) = "xxxxxxxx"
Set objMail.Configu ration = objConfig
*************** *********
so do I assume that the following COM syntax should work with JS and
are the cdoconstants script independent ?
*************** ********
var objConfig = Server.CreateOb ject("CDO.Confi guration")
objConfig.Field s(cdoSendUsingM ethod) = cdoSendUsingPor t
objConfig.Field s(cdoSMTPServer )="smtp.server. co.uk"
objConfig.Field s(cdoSMTPServer Port)=25
objConfig.Field s(cdoSMTPAuthen ticate)=cdoBasi c
objConfig.Field s(cdoSendUserNa me) = "mxxxxxxxx-x"
objConfig.Field s(cdoSendPasswo rd) = "xxxxxxxx"
objConfig.Field s.Update ()
var objMail.Configu ration = objConfig
Comment