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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • venutaurus539@gmail.com

    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.Recipie nt.Address
    message.To.Addr ess
    message.Receive r.Address etc.. but I could get the senders address
    using message.Sender. Address.


    Thanks in advance,
    Venu.
  • Miki

    #2
    Re: how to get the recipients addresses of an outlook mail inpython...

            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
    If it won't be simple, it simply won't be. [Hire me, source code]

    Comment

    • venutaurus539@gmail.com

      #3
      Re: how to get the recipients addresses of an outlook mail inpython...

      On Oct 16, 5:22 pm, Miki <miki.teb...@gm ail.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.blog spot.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.


      Comment

      • Steve Holden

        #4
        Re: how to get the recipients addresses of an outlook mail inpython...

        venutaurus539@g mail.com wrote:
        On Oct 16, 5:22 pm, Miki <miki.teb...@gm ail.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.blog spot.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/

        Comment

        • Steve Holden

          #5
          Re: how to get the recipients addresses of an outlook mail inpython...

          venutaurus539@g mail.com wrote:
          On Oct 16, 5:22 pm, Miki <miki.teb...@gm ail.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.blog spot.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/

          Comment

          Working...