I had a script I was running in Notes 8.5 which started a notes session and sent an email with an attachment. It worked perfectly. Then I upgraded to Notes 9.0.1 and now when I try to start a notes session a null is returned. A snipped from the code I used is below. When I echo the server I see the null. Is there something new with Notes 9.0.1 that is required on the session, or are there additional parameters required on the GetEnvironmentString method that I need to provide? Thanks.
' Start a session to notes
wscript.echo "## Connecting to Lotus Notes session..."
Set oSession = CreateObject("Notes.NotesSession")
wscript.echo "## GetEnvironmentString..."
strServer = oSession.GetEnvironmentString("MailServer",True)
wscript.echo("Server :" & strServer)
strUserName = oSession.UserName
strMailDbName = Left(strUserName, 1) & Right(strUserName, (Len(strUserName) - InStr(1, strUserName, "")))&".nsf"
wscript.echo("MailDbName :" & strMailDbName)
wscript.echo "## Getting current Notes database..."
' open the mail database in Notes
set oCurrentMailDb = oSession.CurrentDatabase