469,609 Members | 1,376 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,609 developers. It's quick & easy.

how to get the recipients addresses of an outlook mail in python...

Hi all,
Can some one help me in obtaining the set of recipients email
addresses from an outlook mail? I tried various options like

message.Recipient.Address
message.To.Address
message.Receiver.Address etc.. but I could get the senders address
using message.Sender.Address.
Thanks in advance,
Venu.
Oct 16 '08 #1
4 3502
* * * * Can some one help me in obtaining the set of recipients email
addresses from an outlook mail? I tried various options like ...
message["To"]
message["Cc"]

HTH,
--
Miki
http://pythonwise.blogspot.com
Oct 16 '08 #2
On Oct 16, 5:22*pm, Miki <miki.teb...@gmail.comwrote:
* * * * Can some one help me in obtaining the set of recipientsemail
addresses from an outlook mail? I tried various options like ...

message["To"]
message["Cc"]

HTH,
--
Mikihttp://pythonwise.blogspot.com
Thanks for your reply... Sorry , it didn't work...
session = Dispatch("MAPI.session")
session.Logon('outlook') # MAPI profile name
inbox = session.Inbox
message = inbox.Messages.Item(i + 1)
rec = message["To"]
print rec

I did some thing like the above code...it said the below error...
raise TypeError, "This object does not support enumeration"
TypeError: This object does not support enumeration
Thank you,
Venu.
Oct 16 '08 #3
ve***********@gmail.com wrote:
On Oct 16, 5:22 pm, Miki <miki.teb...@gmail.comwrote:
>> Can some one help me in obtaining the set of recipients email
addresses from an outlook mail? I tried various options like ...
message["To"]
message["Cc"]

HTH,
--
Mikihttp://pythonwise.blogspot.com

Thanks for your reply... Sorry , it didn't work...
session = Dispatch("MAPI.session")
session.Logon('outlook') # MAPI profile name
inbox = session.Inbox
message = inbox.Messages.Item(i + 1)
rec = message["To"]
print rec

I did some thing like the above code...it said the below error...
raise TypeError, "This object does not support enumeration"
TypeError: This object does not support enumeration
This report is impossibly vague. If you really need help then please
take the trouble to provide *exactly* the code you used (pasting from
the actual program) and the full traceback. Otherwise we don't even know
which statement is going wrong, let alone how.

regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/

Oct 17 '08 #4
ve***********@gmail.com wrote:
On Oct 16, 5:22 pm, Miki <miki.teb...@gmail.comwrote:
>> Can some one help me in obtaining the set of recipients email
addresses from an outlook mail? I tried various options like ...
message["To"]
message["Cc"]

HTH,
--
Mikihttp://pythonwise.blogspot.com

Thanks for your reply... Sorry , it didn't work...
session = Dispatch("MAPI.session")
session.Logon('outlook') # MAPI profile name
inbox = session.Inbox
message = inbox.Messages.Item(i + 1)
rec = message["To"]
print rec

I did some thing like the above code...it said the below error...
raise TypeError, "This object does not support enumeration"
TypeError: This object does not support enumeration
This report is impossibly vague. If you really need help then please
take the trouble to provide *exactly* the code you used (pasting from
the actual program) and the full traceback. Otherwise we don't even know
which statement is going wrong, let alone how.

regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/

Oct 17 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Alex Hunsley | last post: by
8 posts views Thread by dccarson | last post: by
15 posts views Thread by news.microsoft.com | last post: by
2 posts views Thread by .Net Newbie | last post: by
4 posts views Thread by Michelle | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.