Python~Outlook

用python处理outlook邮件

 

按季度将邮件分类,归入新建文件夹2016Q1,2015Q4等等

 

http://www.tuicool.com/articles/Fra22mq

Python读取Outlook的日历

 

http://www.cnblogs.com/zhangyonghugo/p/3501065.html

python 将pdf分页后插入至word中

 

#coding:utf-8

import win32com.client as win32
RANGE = range(3,8)

def outlook():
    app= 'Outlook'
    olook = win32.gencache.EnsureDispatch("%s.Application" % app)
    
    mail=olook.CreateItem(win32.constants.olMailItem)
    mail.Recipients.Add('[email protected]')

    mail.Display()
    
    subj = mail.Subject = '20160321testPython -to - %s ' %app
    body = ["line %d" % i for i in RANGE]
    # body.insert(0,"%s\r\n" %subj)
    body.append("\r\n that's all folks!")
    mail.Body = '\r\n'.join(body)
    
    mail.Send()
    print "send ok in 20160321"
    
if __name__ =="__main__":outlook()

 

 

 

win32com模块

pypiwin32-219.win32-py2.7

https://sourceforge.net/projects/pywin32/files/

import win32com

Python2.7使用手册

http://docs.activestate.com/activepython/2.7/

 

http://docs.activestate.com/activepython/2.6/pywin32/PyWin32.HTML

 

help ()

win32com

C:\Python27\Lib\site-packages

 

demos

outlookAddin

C:\Python27\Lib\site-packages\win32com\demos

 

cache win32

https://msdn.microsoft.com/zh-cn/library/aa394080(v=vs.85)

 

UUID含义是通用唯一识别码 (Universally Unique Identifier),这 是一个软件建构的标准

目前最广泛应用的 UUID,即是微软的 Microsoft's Globally Unique Identifiers (GUIDs)

 

而标准的UUID格式为:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx (8-4-4-4-12)

转载于:https://www.cnblogs.com/lynclynn/p/5301825.html

你可能感兴趣的:(Python~Outlook)