Forwarding an email with python smtplib

前端 未结 2 1657
执笔经年
执笔经年 2020-12-07 21:40

I\'m trying to put together a script that automatically forwards certain emails that match a specific criteria to another email.

I\'ve got the downloading and parsin

2条回答
  •  星月不相逢
    2020-12-07 22:12

    In one application I download messages via POP3 (using poplib) and forward them using your second method... That is, I alter To/From on the original Message and send it, and it works.
    Have you tried poking inside smtp.sendmail to see where it stops?

提交回复
热议问题