Yes, that last one worked!!!  Thanks.  I don't know why those commands are 
necessary, but as long as it works I guess it doesn't matter.  Will this 
work on any computer, even if Outlook has not been installed?

Bill


> Oh.. Still missing something
> oConfig.Fields.Update() after setting the fields.
>
> Tracy
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> On
> Behalf Of Tracy Pearson
> Sent: Tuesday, October 09, 2007 1:24 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Email confusion
>
> Looks like one piece has been forgotten, I apologize I didn't catch it
> earlier.
>
>  oMessage.Configuration = oConfig
> needs to be set before send() is called.
>
> HTH,
>
> Tracy
>
> -----Original Message-----
> From: Bill Kressbach
> Sent: Tuesday, October 09, 2007 11:17 AM
>
> It still doesn't work.  Here's the code I used:
>
> oMessage=Createobject('CDO.Message')
> oConfig=Createobject('CDO.Configuration')
> oConfig.Fields.Item
> ("http://schemas.microsoft.com/cdo/configuration/sendusing";).value = 2
> oConfig.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserv
> erport").value
> = 25
> With oMessage
>    .From = '[EMAIL PROTECTED]'
>    .To = '[EMAIL PROTECTED]'
>    .Subject = "Reboot Notify"
>    .TextBody = 'Reboot - '+SYS(0)+' '+TTOC(DATETIME())
>    .Send()
> ENDWITH
>
> I have two computers each running XP Pro.  Both on the same network.  It
> works on one but will not work on the other.  There are no error messages,
> just doesn't send the email.  I know that XP doesn't ship with CDO any 
> more
> but all the literature I've found indicates that if you install Outlook it
> also installs CDO.  That's how I got it to work on the first computer but
> now that I've installed Outlook on the second computer it doesn't work. 
> The
> version of Outlook is 2003.  The computer that works may have an earlier
> version of Outlook.
>
> Ideas?
>
> Bill
>
>
>
>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to