yagmail

    1热度

    1回答

    我试图发送一个包含熊猫DataFrame的yagmail电子邮件,使用此帖中详述的方法:Python Email in HTML format mimelib 。 但是,无论我尝试什么,yagmail都会在打印DataFrame之前添加一长串换行符。 我的代码是(我只改变我的安装的电子邮件地址): #--- Addition to original post --- import pandas

    1热度

    2回答

    我目前正在使用yagmail模块发送电子邮件与Python,我很难将本地存储的图像嵌入到电子邮件中。这可能吗? 下面是一个代码示例: contents = ["<img src='/path/to/local/image'>"] yag = yagmail.SMTP('[email protected]', 'password') yag.send('[email protected]',

    1热度

    1回答

    我在Windows 8.1上使用yagmail -0.3.78和Python 3.3。我可以让yagmail从我的控制台发送电子邮件,但附件不起作用。 yagmail.Connect('[email protected]','password').send('[email protected]', 'Test', 'This is a test', 'c:\\users\\lenovo\\appd