Don't know if this going to help you, but give this a go.

Picked up the quoting information from -
http://www.experts-exchange.com/Databases/MS_Access/Q_20504381.html

Here is the changed code (I am at home now)..
code:
$objEmail=CreateObject("CDO.Message")
$objEmail.From="scripterror@mydomain.com"
$objEmail.To="myname@mydomain.com"
$objEmail.Subject="subject"
$objEmail.Textbody="The User: "+@userid+" on Worksation: "+@wksta+" could not get to subject"
"$objEmail.Configuration.Fields.Item"("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
"$objEmail.Configuration.Fields.Item"("http://schemas.microsoft.com/cdo/configuration/smtpserver")="mail.mydomain.com"
"$objEmail.Configuration.Fields.Item"("http://schemas.microsoft.com/cdo/configuration/smtpserverport")=25
"$objEmail.Configuration.Fields.Update"
$objEmail.Send

I hope I am not wrong while trying to illustrate this point. [Smile]

If we look at the following script - ADSearch() - Search for name or account name in Active Directory

We see the following work fine -
$AdoCommand.ActiveConnection = $AdoCon
^ Sect 1 ^ ^ Section 2 ^

There appears to be an issue with (maybe a bug?) -
$objEmail.Configuration.Fields.Item
^ Sect 1^ ^ Section 2 ^ ^sct3^ ^s4^

Thanks,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's