title: Trying to read Outlook Email Attachment which has a Hyperlink
body: <p>I am trying to automate a process using Python and Outlook. I am able to login successfully and able to read the last message received in the "My Folder Name" Folder  but for some reason I am not able to read the attachment contents like I want to copy the hyperlink present in the email attachment but doesn't gives the contents of the email.</p>
  
  <pre><code>import win32com.client
  outlook = win32com.client.Dispatch("Outlook.Application").GetNamespace("MAPI")
  folder = outlook.Folders("My Shared Mailbox Name")
  inbox = folder.Folders("My Folder Name")
  email = inbox.Items
  lastemail = email.GetLast()
  body_content = lastemail.body
  print (body_content)
  
  attachment_content = lastemail.Attachments
  
  print (attachment_content)
  </code></pre>
  
  <p>It gives below message  for the last two lines of code:</p>
  
  <pre><code>&lt;COMObject &lt;unknown&gt;&gt;
  </code></pre>
  
  <p>The code works until 'print (body_content)' as I can see the body of the last email but it's attachment contents are not readable.</p>
  
  <p>attachment_content = lastemail.Attachments</p>
  
  <p>print (attachment_content) doesn't works.</p>
  
  <p>Right now I have to manually go to the email attachment and copy the hyperlink.
  Please let me know where to look, thank you. </p>