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?

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!1.eu.feeder.erje.net!bcyclone01.am1.xlned.com!bcyclone01.am1.xlned.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'subject:How': 0.09; '(aka': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'runtime': 0.09; 'non-python': 0.16; 'prerequisite': 0.16; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:plane.gmane.org': 0.16; 'received:t-ipconnect.de': 0.16; 'subject:send': 0.16; 'documented': 0.18; 'python?': 0.18; 'library': 0.20; 'issue.': 0.20; 'kevin': 0.23; "python's": 0.23; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'peterson': 0.29; 'subject:attachment': 0.33; 'server': 0.34; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'charset:us-ascii': 0.37; 'build': 0.40; 'to:addr:python.org': 0.40; 'subject:with': 0.40; 'received:de': 0.40; 'your': 0.60; 'received:217': 0.66; 'cooperation': 0.97
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From dieter <dieter@handshake.de>
Subject Re: How we can send mail with attachment in Python?
Date Mon, 20 Jul 2015 09:10:05 +0200
References <abcd1234abc123ab12a0000094514000010000001052@gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
X-Gmane-NNTP-Posting-Host pd9e09b25.dip0.t-ipconnect.de
User-Agent Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.22 (linux)
Cancel-Lock sha1:eUuMQrhscg4X++ZSq/O/uuWxVuU=
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.773.1437376213.3674.python-list@python.org> (permalink)
Lines 14
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1437376213 news.xs4all.nl 2857 [2001:888:2000:d::a6]:58177
X-Complaints-To abuse@xs4all.nl
X-Received-Bytes 3144
X-Received-Body-CRC 2765231283
Xref csiph.com comp.lang.python:94218

Show key headers only | 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