Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #89935
| From | Cecil Westerhof <Cecil@decebal.nl> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Why from en to two times with sending email |
| Organization | Decebal Computing |
| References | <87ioc8i2y2.fsf@Equus.decebal.nl> <mailman.103.1430768965.12865.python-list@python.org> |
| Date | 2015-05-04 22:13 +0200 |
| Message-ID | <87y4l4gkyj.fsf@Equus.decebal.nl> (permalink) |
Op Monday 4 May 2015 21:48 CEST schreef Ian Kelly: > 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. OK, thanks. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll 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