[python-win32] Python vs Outlook Question

2011-06-16 Thread Shashwat Sinha
Hi, I wrote this simple code that works fine: import win32com.client as W olook = W.gencache.EnsureDispatch("%s.Application" %profilename) mail = olook.CreateItem(W.constants.olMailItem) mail.Recipients.Add('x...@yahoo.com) mail.Subject = 'Hello' mail.Body = 'Hello' mail.Send() When I have Out

Re: [python-win32] Python vs Outlook Question

2011-06-16 Thread Shashwat Sinha
t other properties. Could you provide some more hints? I was also trying to add signature by doing: mail.AddBusinessCard = 'Signature1' but that too gave an error. Thanks for your help. Sinha. On Thu, Jun 16, 2011 at 4:21 PM, Tim Roberts wrote: > Shashwat Sinha wrote: > > Hi, &

Re: [python-win32] Python vs Outlook Question

2011-06-16 Thread Shashwat Sinha
Thanks Tim. On Thu, Jun 16, 2011 at 5:33 PM, Tim Roberts wrote: > Shashwat Sinha wrote: > > > > Thanks for your response. After sending the post I was able to do > > attachments but other properties like SenderEmailAddress are not > > working. It gives me a