Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c0a293c6
Commit
c0a293c6
authored
May 01, 2007
by
Vinay Sajip
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added documentation for new optional credentials argument to SMTPHandler.__init__().
parent
70c8e8b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
Doc/lib/liblogging.tex
Doc/lib/liblogging.tex
+5
-2
No files found.
Doc/lib/liblogging.tex
View file @
c0a293c6
...
...
@@ -1296,13 +1296,16 @@ The \class{SMTPHandler} class, located in the
\module
{
logging.handlers
}
module, supports sending logging messages to
an email address via SMTP.
\begin{classdesc}
{
SMTPHandler
}{
mailhost, fromaddr, toaddrs, subject
}
\begin{classdesc}
{
SMTPHandler
}{
mailhost, fromaddr, toaddrs, subject
\optional
{
,
credentials
}}
Returns a new instance of the
\class
{
SMTPHandler
}
class. The
instance is initialized with the from and to addresses and subject
line of the email. The
\var
{
toaddrs
}
should be a list of strings. To specify a
non-standard SMTP port, use the (host, port) tuple format for the
\var
{
mailhost
}
argument. If you use a string, the standard SMTP port
is used.
is used. If your SMTP server requires authentication, you can specify a
(username, password) tuple for the
\var
{
credentials
}
argument.
\versionchanged
[\var{credentials} was added]
{
2.6
}
\end{classdesc}
\begin{methoddesc}
{
emit
}{
record
}
...
...
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