Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
a2dce5a9
Kaydet (Commit)
a2dce5a9
authored
Nis 25, 2009
tarafından
Jeroen Ruigrok van der Werven
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #4239: adjust email examples not to use connect() and terminate with
quit() and not close().
üst
d567c38e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
7 deletions
+4
-7
email-alternative.py
Doc/includes/email-alternative.py
+1
-1
email-dir.py
Doc/includes/email-dir.py
+1
-2
email-mime.py
Doc/includes/email-mime.py
+1
-2
email-simple.py
Doc/includes/email-simple.py
+1
-2
No files found.
Doc/includes/email-alternative.py
Dosyayı görüntüle @
a2dce5a9
...
...
@@ -45,4 +45,4 @@ s = smtplib.SMTP('localhost')
# sendmail function takes 3 arguments: sender's address, recipient's address
# and message to send - here it is sent as one string.
s
.
sendmail
(
me
,
you
,
msg
.
as_string
())
s
.
close
()
s
.
quit
()
Doc/includes/email-dir.py
Dosyayı görüntüle @
a2dce5a9
...
...
@@ -106,9 +106,8 @@ must be running an SMTP server.
fp
.
close
()
else
:
s
=
smtplib
.
SMTP
()
s
.
connect
()
s
.
sendmail
(
opts
.
sender
,
opts
.
recipients
,
composed
)
s
.
close
()
s
.
quit
()
if
__name__
==
'__main__'
:
...
...
Doc/includes/email-mime.py
Dosyayı görüntüle @
a2dce5a9
...
...
@@ -27,6 +27,5 @@ for file in pngfiles:
# Send the email via our own SMTP server.
s
=
smtplib
.
SMTP
()
s
.
connect
()
s
.
sendmail
(
me
,
family
,
msg
.
as_string
())
s
.
close
()
s
.
quit
()
Doc/includes/email-simple.py
Dosyayı görüntüle @
a2dce5a9
...
...
@@ -20,6 +20,5 @@ msg['To'] = you
# Send the message via our own SMTP server, but don't include the
# envelope header.
s
=
smtplib
.
SMTP
()
s
.
connect
()
s
.
sendmail
(
me
,
[
you
],
msg
.
as_string
())
s
.
close
()
s
.
quit
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment