My SMTP code is working well, IF I am logged into our LAN.
Is there any other code line(s) I can add that will get around this?
(This code sits in an Access FORM, which is triggered (weekly) by Windows' Scheduled Tasks and an Access macro).
strSch = "http://schemas.microsoft.com/cdo/configuration/"
Set objCDOConfig = CreateObject("CDO.Configuration")
With objCDOConfig.Fields
.Item(strSch & "sendusing") = 2
.Item(strSch & "smtpserver") = "smtp.xxxxx.xxx.gov"
.Item(strSch & "smtpserverport") = 25
.Item(strSch & "smtpconnectiontimeout") = 60
.Update
End With
'I added this to see if would run w/o me being logged into LAN--it did not; .Item(strSch & "smtpauthenticate") = cdoBasic
.Item(strSch & "sendusername") = "xxxx@xxxxx.xxx.gov"
.Item(strSch & "sendpassword") = "yyyyzzzz"
thanks,
SJL
Is there any other code line(s) I can add that will get around this?
(This code sits in an Access FORM, which is triggered (weekly) by Windows' Scheduled Tasks and an Access macro).
strSch = "http://schemas.microsoft.com/cdo/configuration/"
Set objCDOConfig = CreateObject("CDO.Configuration")
With objCDOConfig.Fields
.Item(strSch & "sendusing") = 2
.Item(strSch & "smtpserver") = "smtp.xxxxx.xxx.gov"
.Item(strSch & "smtpserverport") = 25
.Item(strSch & "smtpconnectiontimeout") = 60
.Update
End With
'I added this to see if would run w/o me being logged into LAN--it did not; .Item(strSch & "smtpauthenticate") = cdoBasic
.Item(strSch & "sendusername") = "xxxx@xxxxx.xxx.gov"
.Item(strSch & "sendpassword") = "yyyyzzzz"
thanks,
SJL