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


Groups > comp.lang.python > #94218

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

From dieter <dieter@handshake.de>
Subject Re: How we can send mail with attachment in Python?
Date 2015-07-20 09:10 +0200
References <abcd1234abc123ab12a0000094514000010000001052@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.773.1437376213.3674.python-list@python.org> (permalink)

Show all headers | View raw


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.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web