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

V

venutaurus539

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.
 
M

Miki

        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,
 
V

venutaurus539

        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,

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.
 
S

Steve Holden

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,

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
 
S

Steve Holden

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,

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,189
Members
46,735
Latest member
HikmatRamazanov

Latest Threads

Top