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


Groups > comp.lang.python > #89928

Re: Why from en to two times with sending email

References <87ioc8i2y2.fsf@Equus.decebal.nl>
From Ian Kelly <ian.g.kelly@gmail.com>
Date 2015-05-04 13:48 -0600
Subject Re: Why from en to two times with sending email
Newsgroups comp.lang.python
Message-ID <mailman.103.1430768965.12865.python-list@python.org> (permalink)

Show all headers | View raw


On Mon, May 4, 2015 at 12:59 PM, Cecil Westerhof <Cecil@decebal.nl> wrote:
> I want to change an old Bash script to Python. When I look at:
>     https://docs.python.org/2/library/email-examples.html
>
> Then from and to have to be used two times? Why is that?

Once to construct the message headers, and once to instruct the SMTP
server where to send the message. These are not required to agree; for
instance, bcc recipients need to be supplied to the server but aren't
included in the headers.

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


Thread

Why from en to two times with sending email Cecil Westerhof <Cecil@decebal.nl> - 2015-05-04 20:59 +0200
  Re: Why from en to two times with sending email Ian Kelly <ian.g.kelly@gmail.com> - 2015-05-04 13:48 -0600
    Re: Why from en to two times with sending email Cecil Westerhof <Cecil@decebal.nl> - 2015-05-04 22:13 +0200

csiph-web