Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #103750
| From | Grant Edwards <invalid@invalid.invalid> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Sending an email with a binary attachment |
| Date | 2016-02-29 18:22 +0000 |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Message-ID | <nb2295$ciq$2@reader1.panix.com> (permalink) |
| References | <mailman.0.1456733421.20602.python-list@python.org> <djjc8gFl1hoU1@mid.individual.net> |
On 2016-02-29, Peter Pearson <pkpearson@nowhere.invalid> wrote:
> On Mon, 29 Feb 2016 02:10:00 -0600, Anthony Papillion wrote:
>
>> For some reason though, sending mail is failing every time. I've made
>> sure that the password is correct (which seems to be the most usual
>> error).
>>
>> Still, I just can't get it to work. Can someone take a look at this
>> code and give me some advice?
>
> What exactly do you mean by "failing"? If there's an error message,
> show it. If an exception is being generated, at least print some
> information about the exception.
If you aren't getting any messages, then tell the smtp object you want some:
From TFM (https://docs.python.org/3/library/smtplib.html#smtp-objects):
An SMTP instance has the following methods:
SMTP.set_debuglevel(level)
Set the debug output level. A value of 1 or True for level
results in debug messages for connection and for all messages
sent to and received from the server. A value of 2 for level
results in these messages being timestamped.
If all else fails, fire up wireshark and watch the conversation
between the SMTP object and the server.
--
Grant Edwards grant.b.edwards Yow! Can you MAIL a BEAN
at CAKE?
gmail.com
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Sending an email with a binary attachment Anthony Papillion <anthony@cajuntechie.org> - 2016-02-29 02:10 -0600
Re: Sending an email with a binary attachment Peter Pearson <pkpearson@nowhere.invalid> - 2016-02-29 17:08 +0000
Re: Sending an email with a binary attachment Chris Angelico <rosuav@gmail.com> - 2016-03-01 04:13 +1100
Re: Sending an email with a binary attachment Grant Edwards <invalid@invalid.invalid> - 2016-02-29 18:22 +0000
Re: Sending an email with a binary attachment Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2016-02-29 20:43 -0500
Re: Sending an email with a binary attachment Anthony Papillion <anthony@cajuntechie.org> - 2016-03-01 01:58 -0600
Re: Sending an email with a binary attachment Chris Angelico <rosuav@gmail.com> - 2016-03-01 19:03 +1100
Re: Sending an email with a binary attachment Anthony Papillion <anthony@cajuntechie.org> - 2016-03-01 22:29 -0600
csiph-web