Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #59290
| Path | csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed1.swip.net!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <cameron@cskk.homeip.net> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.002 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'purpose.': 0.07; 'executable': 0.09; 'exit': 0.09; 'skip:/ 10': 0.09; 'python': 0.11; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'function;': 0.16; 'message- id:@cskk.homeip.net': 0.16; 'postfix.': 0.16; 'received:211.29': 0.16; 'received:211.29.132': 0.16; 'received:cskk.homeip.net': 0.16; 'received:homeip.net': 0.16; 'received:optusnet.com.au': 0.16; 'received:syd.optusnet.com.au': 0.16; 'simpson': 0.16; 'subject:library': 0.16; 'wrote:': 0.18; 'library': 0.18; 'solution.': 0.20; 'accepted.': 0.22; 'header:User-Agent:1': 0.23; 'cheers,': 0.24; 'header:In-Reply-To:1': 0.27; 'thus': 0.29; 'operations,': 0.30; 'code': 0.31; 'serve': 0.31; 'existence': 0.31; 'pipe': 0.31; 'trivial': 0.31; 'this.': 0.32; 'could': 0.34; 'problem': 0.35; 'but': 0.35; 'module.': 0.36; 'received:com.au': 0.36; 'smtp': 0.36; 'charset:us-ascii': 0.36; 'received:211': 0.38; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'mailing': 0.39; 'ensure': 0.60; 'deliver': 0.61; 'content-disposition:inline': 0.62; 'making': 0.63; 'provide': 0.64 |
| Date | Wed, 13 Nov 2013 18:17:46 +1100 |
| From | Cameron Simpson <cs@zip.com.au> |
| To | python-list@python.org |
| Subject | Re: sendmail library ?! |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| In-Reply-To | <52830592.9040108@googlemail.com> |
| User-Agent | Mutt/1.5.21 (2010-09-15) |
| References | <52830592.9040108@googlemail.com> |
| X-Optus-CM-Score | 0 |
| X-Optus-CM-Analysis | v=2.1 cv=YYGEuWhf c=1 sm=1 tr=0 a=YuQlxtEQCowy2cfE5kc7TA==:117 a=YuQlxtEQCowy2cfE5kc7TA==:17 a=ZtCCktOnAAAA:8 a=PO7r1zJSAAAA:8 a=LcaDllckn3IA:10 a=kj9zAlcOel0A:10 a=vrnE16BAAAAA:8 a=8AHkEIZyAAAA:8 a=Fnu0xWVu_G8A:10 a=mK_AVkanAAAA:8 a=1rn_cniD9_irbdYiH5cA:9 a=CjuIK1q_8ugA:10 a=9xyTavCNlvEA:10 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| 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.2528.1384327078.18130.python-list@python.org> (permalink) |
| Lines | 27 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1384327078 news.xs4all.nl 15996 [2001:888:2000:d::a6]:46939 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:59290 |
Show key headers only | View raw
On 13Nov2013 05:52, Tamer Higazi <th982a@googlemail.com> wrote:
> I am looking for a python library that does mailing directly through
> "sendmail".
> When I look into the docs, I see only an "smtlip" library but nothing
> that could serve with sendmail or postfix.
Use the subprocess module. Pipe to:
/usr/sbin/sendmail -oi addr1 addr2 ...
If the exit code is 0, mail dispatched.
This is a trivial function; you don't need a library for this.
Both "sendmail" and "postfix" (and "qmail" et al) provide a "sendmail"
executable for exactly this purpose.
The smtplib is for making arbitrary SMTP operations, thus a whole
module. Sendmail does all that for you, you only need to deliver
the message to it and ensure it was accepted.
Cheers,
--
Cameron Simpson <cs@zip.com.au>
The mere existence of a problem is no proof of the existence of a solution.
- Yiddish Proverb
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: sendmail library ?! Cameron Simpson <cs@zip.com.au> - 2013-11-13 18:17 +1100
csiph-web