【发布时间】:2010-10-09 03:49:59
【问题描述】:
我有一个关于它的用法的问题:我需要发送一个 html 格式的邮件。我用
准备我的信息ga = libgmail.GmailAccount(USERNAME,PASSWORD)
msg = MIMEMultipart('alternative')
msg.attach(part1)
msg.attach(part2)
...
ga.sendMessage(msg.as_string())
这种方式不行,好像不能用sendMessage方法发送msg。
什么是正确的方法? : D
【问题讨论】:
标签: python html gmail mime libgmail