<pre><code>OlaApp = win32.Dispatch('Outlook.Application')
olNS = olApp.GetNameSpace('MAPI')
mail = ol.App.CreateItem(0)
mail.To = ''
mail.Subject = ''
mail.Body = ''
mail.Attachements.Add(max_file)
# here is max_file is latest file from the folder
mail.Display() -- able to see mail
mail.Send()
</code></pre>
<p>我可以看到电子邮件,但发送电子邮件时出现以下错误:-</p>
<pre><code>com_error :(-2147467260,'Operation aborted',None,None)
</code></pre>