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
9ca3f02d
Kaydet (Commit)
9ca3f02d
authored
Haz 15, 2003
tarafından
Tim Peters
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
^D means EOF on Unix but not on Windows. Expand the example's prompt to
tell Windows Truth too. Bugfix candidate.
üst
9e6fedd2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
libsmtplib.tex
Doc/lib/libsmtplib.tex
+5
-5
No files found.
Doc/lib/libsmtplib.tex
Dosyayı görüntüle @
9ca3f02d
...
...
@@ -50,7 +50,7 @@ A nice selection of exceptions is defined as well:
\end{excdesc}
\begin{excdesc}
{
SMTPSenderRefused
}
Sender address refused. In addition to the attributes set by on all
Sender address refused. In addition to the attributes set by on all
\exception
{
SMTPResponseException
}
exceptions, this sets `sender' to
the string that the SMTP server refused.
\end{excdesc}
...
...
@@ -98,10 +98,10 @@ received from the server.
\end{methoddesc}
\begin{methoddesc}
{
connect
}{
\optional
{
host
\optional
{
, port
}}}
Connect to a host on a given port. The defaults are to connect to the
Connect to a host on a given port. The defaults are to connect to the
local host at the standard SMTP port (25).
If the hostname ends with a colon (
\character
{
:
}
) followed by a
number, that suffix will be stripped off and the number interpreted as
number, that suffix will be stripped off and the number interpreted as
the port number to use.
This method is automatically invoked by the constructor if a
host is specified during instantiation.
...
...
@@ -257,7 +257,7 @@ consult the module code.
This example prompts the user for addresses needed in the message
envelope (`To' and `From' addresses), and the message to be
delivered. Note that the headers to be included with the message must
delivered. Note that the headers to be included with the message must
be included in the message as entered; this example doesn't do any
processing of the
\rfc
{
822
}
headers. In particular, the `To' and
`From' addresses must be included in the message headers explicitly.
...
...
@@ -271,7 +271,7 @@ def prompt(prompt):
fromaddr = prompt("From: ")
toaddrs = prompt("To: ").split()
print "Enter message, end with
^
D:"
print "Enter message, end with
^
D
(Unix) or
^
Z (Windows)
:"
# Add the From: and To: headers at the start!
msg = ("From:
%s\r\nTo: %s\r\n\r\n"
...
...
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