V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
gavingeng
V2EX  ›  Python

python发送邮件时的抄送问题

  •  
  •   gavingeng · Oct 6, 2012 · 8955 views
    This topic created in 4964 days ago, the information mentioned may be changed or developed.
    在放国庆前很仓促的写了个发送统计到领导、同事的邮件,结果国庆他们说经常收不到邮件,那个让我郁闷啊,今天回来查了下,原来如此!

    smtplib中的sendmail要给多人发送或者cc bcc时,将要接收的人拼成list,至于msg['to'] msg['cc'] msg['bcc']这些只是做显示而已!
    3 replies    1970-01-01 08:00:00 +08:00
    eric_q
        1
    eric_q  
       Oct 6, 2012
    是的~ 这个小问题很蛋疼,去年我遇到过同样的问题。
    sNullp
        2
    sNullp  
       Oct 7, 2012
    这个其实跟SMTP的规范有关系,邮件真正送到谁和邮件内容里的cc,bcc没关系。就像信封和内容里对于收件人可以有两种不同的版本。
    gavingeng
        3
    gavingeng  
    OP
       Oct 8, 2012
    @sNullp
    哦,这啊,我说呢,刚开始稀里糊涂的,google也没太多人说这个,不过还是找到了!

    抱歉,未读提醒好像不是很及时的......
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3028 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 09:33 · PVG 17:33 · LAX 02:33 · JFK 05:33
    ♥ Do have faith in what you're doing.