Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #94218 > unrolled thread

Re: How we can send mail with attachment in Python?

Started bydieter <dieter@handshake.de>
First post2015-07-20 09:10 +0200
Last post2015-07-20 09:10 +0200
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: How we can send mail with attachment in Python? dieter <dieter@handshake.de> - 2015-07-20 09:10 +0200

#94218 — Re: How we can send mail with attachment in Python?

Fromdieter <dieter@handshake.de>
Date2015-07-20 09:10 +0200
SubjectRe: How we can send mail with attachment in Python?
Message-ID<mailman.773.1437376213.3674.python-list@python.org>
Kevin Peterson <qh.resu01@gmail.com> writes:

> How we can send mail with attachment in Python? Is it any prerequisite for it?

You look at the "email" package to build the message
and the "smtplib" package to send the message -
both are part of Python's runtime library and documented in its
documentation.

Note that you need access to an "smtp" server (aka "mail server").
It ensures in cooperation with other "smtp" servers the distribution
of your email around the world. Access to an "smtp" server is a non-Python
issue.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web