[python-win32] Using CDO via COM
Bob Gailer
bgailer at alum.rpi.edu
Mon May 3 18:23:34 EDT 2004
At 03:26 PM 5/3/2004, Christian Wyglendowski wrote:
>Bob,
>
>I think you can ignore the ADODB.Fields bit. You have a fields collect
>in your Configuration object:
>
>c = win32com.client.Dispatch('CDO.Configuration')
>c.Fields.Item(cdoSendUsingMethod) = 2 #see link
>below
>c.Fields.Item('cdoSMTPServer').Value = 'smarthost'
>c.Fields.Item('cdoSMTPConnectionTimeout').Value = 10
>c.Fields.Update()
>
>m = win32com.client.Dispatch('CDO.Message')
>m.Configuration = c
That did it! Of course
c.Fields.Item(cdoSendUsingMethod) = 2 should be
c.Fields.Item('cdoSendUsingMethod').Value = 2
>See this link about cdoSendUsingMethod/cdoSendUsingPort:
>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cdosys/
>html/_cdosys_cdosendusing_enum.asp
[snip]
Bob Gailer
bgailer at alum.rpi.edu
303 442 2625 home
720 938 2625 cell
More information about the Python-win32
mailing list