On Wed, Dec 3, 2008 at 11:30 PM, Tim Roberts <[EMAIL PROTECTED]> wrote:

> venu madhav wrote:
> >
> >       I am trying to use python for extracting contents of an
> > outlook email. For extracting the list of Recipients addresses I tried
> > using
> > the "MAPI.message.Recipients.Address" property, but the problem I
> > am facing is that it is giving the complete DN name which is putting
> > me in further complications. Is there any way to obtain the actual
> > SMTP mail address ([EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>)
> > of both sender and receiver from the above object? I searched for it
> > in the MSDN help but couldn't succeed.
>
> This depends on your mail server.  If you are using Exchange, and are
> looking at an internal message, it's not using SMTP, and might be
> configured to deliver only to DN names.  The "Type" property of the
> address tells you which address type it is.
>
> http://www.ssuet.edu.pk/taimoor/books/0-672-30928-9/ch4.htm
>
> --
> Tim Roberts, [EMAIL PROTECTED]
> Providenza & Boekelheide, Inc.
>
*************************************************************************
I am using Exchange server and partial code is given below
message = inbox.Messages.Item(11)
objRecip = message.Recipients.Item(1)
typ = objRecip.AddressEntry.Type
print " the type of address "
print typ

Its output is
**************************************************************************
 the type of address
EX
*******************************************************************
Please let me know if I can provide you any other information.

Thanks in advance,
Venu
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to