grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026ó ¥BeN­Èõãó>•SrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSK r SSK r SSK r SSK r SSK Jr /SQrSrSrSrSrS rS r\R."S \R05r"S S \5r"SS\5r"SS\5r"SS\5r"SS\5r"SS\5r "SS\5r!"SS\5r""SS\5r#"SS\5r$S r%S!r&S"r'S#r(S$r)\ RT"S%S%S&5 S'r+SSK-r-S'r."S)S*5r0\.(a"S+S,\05r1\ReS,5 S-r3"S.S/\05r4\5S0:XaÃS1r6\6"S25r7\6"S35RqS45r9\:"S55 S6r;\ RxR{5=r>(a(\;\>-r;\ RxR{5=r>(aM(\:"S7\?"\;5-5 \0"S85r@\@RƒS95 \@R…\7\9\;5 \@R‡5 gg!\,a S(r+GNf=f!\/a S(r.GNf=f):aSMTP/ESMTP client class. This should follow RFC 821 (SMTP), RFC 1869 (ESMTP), RFC 2554 (SMTP Authentication) and RFC 2487 (Secure SMTP over TLS). Notes: Please remember, when doing ESMTP, that the names of the SMTP service extensions are NOT the same thing as the option keywords for the RCPT and MAIL commands! Example: >>> import smtplib >>> s=smtplib.SMTP("localhost") >>> print(s.help()) This is Sendmail version 8.8.4 Topics: HELO EHLO MAIL RCPT DATA RSET NOOP QUIT HELP VRFY EXPN VERB ETRN DSN For more info use "HELP ". To report bugs in the implementation send email to sendmail-bugs@sendmail.org. For local information send email to Postmaster at your site. End of HELP info >>> s.putcmd("vrfy","someone@here") >>> s.getreply() (250, "Somebody OverHere ") >>> s.quit() éN)Ú body_encode) Ú SMTPExceptionÚSMTPNotSupportedErrorÚSMTPServerDisconnectedÚSMTPResponseExceptionÚSMTPSenderRefusedÚSMTPRecipientsRefusedÚ SMTPDataErrorÚSMTPConnectErrorÚ SMTPHeloErrorÚSMTPAuthenticationErrorÚ quoteaddrÚ quotedataÚSMTPéiÑú s i éz auth=(.*)có•\rSrSrSrSrg)réHz4Base class for all exceptions raised by this module.©N©Ú__name__Ú __module__Ú __qualname__Ú__firstlineno__Ú__doc__Ú__static_attributes__róÚ./opt/alt/python313/lib64/python3.13/smtplib.pyrrHs†Ü>rrcó•\rSrSrSrSrg)réKzÀThe command or option is not supported by the SMTP server. This exception is raised when an attempt is made to run a command or a command with an option which is not supported by the server. rNrrrrrrKó†ôrrcó•\rSrSrSrSrg)réRz¼Not connected to any SMTP server. This exception is raised when the server unexpectedly disconnects, or when an attempt is made to use the SMTP instance before connecting it to a server. rNrrrrrrRs†ôrrcó•\rSrSrSrSrSrg)réZaBase class for all exceptions that include an SMTP error code. These exceptions are generated in some instances when the SMTP server returns an error code. The error code is stored in the `smtp_code' attribute of the error, and the `smtp_error' attribute is set to the error message. có,•XlX lX4Ulg©N)Ú smtp_codeÚ smtp_errorÚargs)ÚselfÚcodeÚmsgs rÚ__init__ÚSMTPResponseException.__init__cs€ØŒØŒØ�Kˆ� r)r+r)r*N©rrrrrr/rrrrrrZs †ñõ rrcó•\rSrSrSrSrSrg)réhzŸSender address refused. In addition to the attributes set by on all SMTPResponseException exceptions, this sets `sender' to the string that the SMTP refused. có:•XlX lX0lXU4Ulgr()r)r*Úsenderr+)r,r-r.r5s rr/ÚSMTPSenderRefused.__init__os€ØŒØŒØŒ Ø Ð'ˆ� r)r+r5r)r*Nr1rrrrrhs †ñõ (rrcó•\rSrSrSrSrSrg)r éuz¾All recipient addresses refused. The errors for each recipient are accessible through the attribute 'recipients', which is a dictionary of exactly the same sort as SMTP.sendmail() returns. có •XlU4Ulgr()Ú recipientsr+)r,r:s rr/ÚSMTPRecipientsRefused.__init__}s€Ø$ŒØ�Mˆ� r)r+r:Nr1rrrr r us †ñõ"rr có•\rSrSrSrSrg)r é‚z'The SMTP server didn't accept the data.rNrrrrr r ‚s†Ü1rr có•\rSrSrSrSrg)r é…z&Error during connection establishment.rNrrrrr r …s†Ü0rr có•\rSrSrSrSrg)r éˆz"The server refused our HELO reply.rNrrrrr r ˆs†Ü,rr có•\rSrSrSrSrg)r é‹zjAuthentication error. Most probably the server didn't accept the username/password combination provided. rNrrrrr r ‹r"rr có²•[RRU5upX4S:Xa+UR5R S5(aU$SU-$SU-$)zQuote a subset of the email addresses defined by RFC 821. Should be able to handle anything email.utils.parseaddr can handle. ©ÚrFÚ)ÚemailÚutilsÚ parseaddrÚstripÚ startswith©Ú addrstringÚ displaynameÚaddrs rrr’s[€ô Ÿ ™ ×-Ñ-¨jÓ9Ñ€KØÐ˜hÓ&à × Ñ Ó × (Ñ (¨× -Ñ -ØÐ ؘ Ñ"Ð"Ø �D‰=ÐrcóZ•[RRU5upX4S:XaU$U$)NrE)rHrIrJrMs rÚ _addr_onlyrRŸs/€ÜŸ ™ ×-Ñ-¨jÓ9Ñ€KØÐ˜hÓ&àÐØ €Krc óf•[R"SS[R"S[U55$)zuQuote data for email. Double leading '.', and change Unix newline '\n', or Mac '\r' into internet CRLF end-of-line. z(?m)^\.z..ú(?:\r\n|\n|\r(?!\n))©ÚreÚsubÚCRLF©Údatas rrr§s*€ô �6Š6�*˜dÜ �ŠÐ&¬¨dÓ3ó 5ð5rcó2•[R"SSU5$)Ns(?m)^\.s..)rVrW)Úbindatas rÚ_quote_periodsr]°s€Ü �6Š6�+˜u gÓ .Ð.rcó:•[R"S[U5$)NrTrUrYs rÚ _fix_eolsr_³s€Ü �FŠFÐ*¬D°$Ó 7Ð7rrÚmd5TFcó~•\rSrSrSrSrSrSrSrSr Sr Sr \ r SSS\RS4SjrS rS rS rS rS rS.SjrSrS/SjrSrS/SjrS/SjrS/SjrSrS/SjrSrSr Sr!S0Sjr"S0Sjr#Sr$Sr%\%r&Sr'Sr(S S!.S"jr)S1S#jr*S1S$jr+S1S%jr,S S!.S&jr-SS'.S(jr.S2S)jr/S3S*jr0S+r1S,r2S-r3g)4réÇa\This class manages a connection to an SMTP or ESMTP server. SMTP Objects: SMTP objects have the following attributes: helo_resp This is the message given by the server in response to the most recent HELO command. ehlo_resp This is the message given by the server in response to the most recent EHLO command. This is usually multiline. does_esmtp This is a True value _after you do an EHLO command_, if the server supports ESMTP. esmtp_features This is a dictionary, which, if the server supports ESMTP, will _after you do an EHLO command_, contain the names of the SMTP service extensions this server supports, and their parameters (if any). Note, all extension names are mapped to lower case in the dictionary. See each method's docstrings for details. In general, there is a method of the same name to perform each SMTP command. There is also a method called 'sendmail' that will do an entire mail transaction. rNÚehloFrFcó´•X@l0UlSUlXPlSUlU(a4UR X5upgUS:waUR 5 [Xg5eUbX0lg[R"5nSU;aX€lgSn [R"[R"55n SU -Ulg![Ra N!f=f)a»Initialize a new instance. If specified, `host` is the name of the remote host to which to connect. If specified, `port` specifies the port to which to connect. By default, smtplib.SMTP_PORT is used. If a host is specified the connect method is called, and if it returns anything other than a success code an SMTPConnectError is raised. If specified, `local_hostname` is used as the FQDN of the local host in the HELO/EHLO command. Otherwise, the local hostname is found using socket.getfqdn(). The `source_address` parameter takes a 2-tuple (host, port) for the socket to bind to as its source address before connecting. If the host is '' and port is 0, the OS default behavior will be used. ÚasciiréÜNÚ.z 127.0.0.1z[%s])ÚtimeoutÚesmtp_featuresÚcommand_encodingÚsource_addressÚ_auth_challenge_countÚconnectÚcloser Úlocal_hostnameÚsocketÚgetfqdnÚ gethostbynameÚ gethostnameÚgaierror) r,ÚhostÚportrorhrkr-r.ÚfqdnrPs rr/Ú SMTP.__init__îsÇ€ð$Œ Ø ˆÔØ 'ˆÔØ,ÔØ%&ˆÔ"æ ØŸ,™, tÓ2‰KˆTØ�s‹{Ø— ‘ ” Ü& tÓ1Ð1Ø Ñ %Ø"0Õ ô —>’>Ó#ˆDØ�d‹{Ø&*Õ#ð#�ðÜ!×/Ò/´×0BÒ0BÓ0DÓE�Dð'-¨t¡m�Õ#øô—‘óÙðús )CÃCÃCcó•U$r(r©r,s rÚ __enter__ÚSMTP.__enter__s€Øˆ rcóº•URS5up#US:wa [X#5eUR5 g![a Nf=f!UR5 f=f)NÚQUITéÝ)Údocmdrrrn)r,r+r-Úmessages rÚ__exit__Ú SMTP.__exit__ sY€ð Ø ŸJ™J vÓ.‰MˆDØ�s‹{Ü+¨DÓ:Ð:ðð �J‰J�Løô&ó Ù ð ûð �J‰J�Lús&‚$8¦A¸ AÁAÁAÁAÁAcó•Xlg)z”Set the debug output level. A non-false value results in debug messages for connection and for all messages sent to and received from the server. N)Ú debuglevel)r,r…s rÚset_debuglevelÚSMTP.set_debuglevel*s €ð%�rcóæ•URS:”aH[[RR5R 5/UQ7S[ R 06 g[US[ R 06 g)NéÚfile)r…ÚprintÚdatetimeÚnowÚtimeÚsysÚstderr©r,r+s rÚ _print_debugÚSMTP._print_debug3sM€Ø �?‰?˜QÓ Ü ”(×#Ñ#×'Ñ'Ó)×.Ñ.Ó0Ð I°4Ò I¼c¿j¹jÓ Iä �4Ð )œcŸj™jÓ )rcóΕUbU(d [S5eURS:”aURSX4UR5 [R "X4UUR5$)Nú0Non-blocking socket (timeout=0) is not supportedrz connect: to)Ú ValueErrorr…r’rkrpÚcreate_connection)r,rurvrhs rÚ _get_socketÚSMTP._get_socket9s`€ð Ñ ¦wÜÐOÓPÐ PØ �?‰?˜QÓ Ø × Ñ ˜m¨d¨\¸4×;NÑ;NÔ OÜ×'Ò'¨¨ °gØ(,×(;Ñ(;ó=ð =rcó2•U(aX0lU(dRURS5URS5:Xa.URS5nUS:¼aUSUXS-Sp![U5nXlU(d URn[R"SXU5 URXUR5Ul SUl UR5upVURS:”aUR!S[#U55 XV4$![a [ S5ef=f)a@Connect to a host on a given port. If the hostname ends with a colon (`:') followed by a number, and there is no port specified, that suffix will be stripped off and the number interpreted as the port number to use. Note: This method is automatically invoked by __init__, if a host is specified during instantiation. Ú:rNr‰znonnumeric portzsmtplib.connectúconnect:)rkÚfindÚrfindÚintr–ÚOSErrorÚ_hostÚ default_portr�Úauditr˜rhÚsockrŠÚgetreplyr…r’Úrepr)r,rurvrkÚir-r.s rrmÚ SMTP.connectCsõ€ö Ø"0Ô æ˜Ÿ™ 3›¨4¯:©:°c«?Ó:Ø— ‘ ˜3“ˆAØ�A‹vØ! " 1˜X t°©E¨F |�dð5ܘt›9�DðŒ ÞØ×$Ñ$ˆDÜ � Š Ð# T°Ô6Ø×$Ñ$ T°·±Ó>ˆŒ ؈Œ Ø—m‘m“o‰ ˆØ �?‰?˜QÓ Ø × Ñ ˜j¬$¨s«)Ô 4؈{Ðøô"ó5Ü!Ð"3Ó4Ð4ð5ús Á DÄDcóª•URS:”aURS[U55 UR(ad[ U[ 5(aUR UR5n[R"SX5 URRU5 g[S5e![a UR5 [S5ef=f)zSend `s' to the server.rzsend:z smtplib.sendúServer not connectedzplease run connect() firstN)r…r’r¦r¤Ú isinstanceÚstrÚencoderjr�r£Úsendallr rnr)r,Úss rÚsendÚ SMTP.sendes¨€à �?‰?˜QÓ Ø × Ñ ˜g¤t¨A£wÔ /Ø �9�9ܘ!œS×!Ñ!ð—H‘H˜T×2Ñ2Ó3�Ü �IŠI�n dÔ .ð EØ— ‘ ×!Ñ! !Õ$ô )Ð)EÓFÐ Føô ó EØ— ‘ ” Ü,Ð-CÓDÐDð Eús ÂB,Â,&CcóΕUS:XaUnOUSU3nSU;dSU;a0URSS5RSS5n[SU35eURU[35 g) zSend a command to the server.rFÚ Ú Ú z\nz\rz=command and arguments contain prohibited newline characters: N)Úreplacer–r°rX)r,Úcmdr+r¯s rÚputcmdÚ SMTP.putcmdxsu€à �2‹:؉Aà�%�q˜˜�ˆAØ �1‹9˜ › Ø— ‘ ˜$ Ó&×.Ñ.¨t°UÓ;ˆAÜØOÐPQÈsÐSóð ð � ‰ �Q�Cœ�v�,Õrcó2•/nURc URRS5UlURR[S-5nU(dUR 5 [S5eURS:”aURS[U55 [U5[:”aUR 5 [SS 5eURUS SRS 55 USS n[!U5nUS S S:waOMßSR%U5nURS:”aURSU<SU<35 XV4$![ a,nUR 5 [S[U5-5eSnAff=f!["a S nM…f=f)apGet a reply from the server. Returns a tuple consisting of: - server response code (e.g. '250', or such, if all goes well) Note: returns -1 if it can't read response code. - server response string corresponding to response code (multiline responses are converted to a single, multiline string). Raises SMTPServerDisconnected if end-of-file is reached. NÚrbr‰z Connection unexpectedly closed: zConnection unexpectedly closedrzreply:iôzLine too long.és ééÿÿÿÿó-ó zreply: retcode (z); Msg: )rŠr¤ÚmakefileÚreadlineÚ_MAXLINEr rnrr¬r…r’r¦ÚlenrÚappendrKrŸr–Újoin)r,ÚrespÚlineÚer-ÚerrcodeÚerrmsgs rr¥Ú SMTP.getreply…sx€ðˆØ �9‰9Ñ ØŸ ™ ×*Ñ*¨4Ó0ˆDŒIØð 7Ø—y‘y×)Ñ)¬(°Q©,Ó7�ö Ø— ‘ ” Ü,Ð-MÓNÐNØ�‰ Ó"Ø×!Ñ! (¬D°«JÔ7Ü�4‹yœ8Ó#Ø— ‘ ” Ü+¨CÐ1AÓBÐBØ �K‰K˜˜Q˜R˜Ÿ™ zÓ2Ô 3ؘ˜�8ˆDð ܘd›)�ð �A�aˆy˜DÓ Øñ5ð8—‘˜DÓ!ˆØ �?‰?˜QÓ Ø × Ò ÃÊÐPÔ QØˆÐøô9ó 7Ø— ‘ ” Ü,Ð-OÜ/2°1«vñ.6ó7ð7ûð 7ûô$ó Ø�Úð ús)²"E Ã9 FÅ FÅ'E>Å>FÆ FÆFcóD•URX5 UR5$)z-Send a command, and return its response code.©r¸r¥)r,r·r+s rr€Ú SMTP.docmd¶s€à � ‰ �CÔØ�}‰}‹Ðrcó‚•URSU=(d UR5 UR5up#X0lX#4$)z_SMTP 'helo' command. Hostname to send for this command defaults to the FQDN of the local host. Úhelo)r¸ror¥Ú helo_resp)r,Únamer-r.s rrÑÚ SMTP.helo¼s7€ð � ‰ �F˜D×7 D×$7Ñ$7Ô8Ø—m‘m“o‰ ˆØŒØˆ{Ðrcó´•0UlURURU=(d UR5 UR 5up#US:Xa*[ U5S:XaUR 5 [S5eX0lUS:waX#4$SUl URRS5RS5nUS UGHn[RU5nU(aCURRSS 5S -URS5S-URS'Mc[ R"S U5nU(dMƒUR#S 5R%5nUR&UR)S 5S R+5n US:Xa2URRUS 5S -U -URU'GMX�RU'GM X#4$)z_SMTP 'ehlo' command. Hostname to send for this command defaults to the FQDN of the local host. r¾rrªéúTzlatin-1rµÚauthrFr³z((?P[A-Za-z0-9][A-Za-z0-9\-]*) ?ÚfeatureN)rir¸Úehlo_msgror¥rÄrnrÚ ehlo_respÚ does_esmtpÚdecodeÚsplitÚ OLDSTYLE_AUTHÚmatchÚgetÚgroupsrVÚgroupÚlowerÚstringÚendrK) r,rÓr-r.rÇÚeachÚ auth_matchÚmrØÚparamss rrcÚ SMTP.ehloÆs®€ð !ˆÔØ � ‰ �D—M‘M 4×#>¨4×+>Ñ+>Ô?Ø—m‘m“o‰ ˆð �2‹:œ#˜c›( a›-Ø �J‰JŒLÜ(Ð)?Ó@Ð @ØŒØ �3‹;Ø�;Р؈Œð�~‰~×$Ñ$ YÓ/×5Ñ5°dÓ;ˆØ �ˆG܈Dô'×,Ñ,¨TÓ2ˆJÞà.2×.AÑ.A×.EÑ.EÀfÈbÓ.QØñ/Ø *× 1Ñ 1°!Ó 4°QÑ 7ñ/8�×#Ñ# FÑ+áô —’ÐDÀdÓKˆA߈qØŸ'™' )Ó,×2Ñ2Ó4�ØŸ™ !§%¡%¨ Ó"2Ð"3Ð4×:Ñ:Ó<�ؘfÓ$Ø37×3FÑ3F×3JÑ3JÈ7ÐTVÓ3WØ!ñ4"Ø$*ñ4+�D×'Ñ'¨Ô0ð4:×'Ñ'¨Ô0ñ5ð6ˆ{Ðrcó<•UR5UR;$)z7Does the server support a given SMTP service extension?)rãri)r,Úopts rÚhas_extnÚ SMTP.has_extnùs€à�y‰y‹{˜d×1Ñ1Ñ1Ð1rcóL•URSU5 UR5S$)z3SMTP 'help' command. Returns help text from server.Úhelpr‰rÎr‘s rrðÚ SMTP.helpýs#€ð � ‰ �F˜DÔ!Ø�}‰}‹˜qÑ!Ð!rcó2•SUlURS5$)z&SMTP 'rset' command -- resets session.reÚrset)rjr€rzs rróÚ SMTP.rsets€à 'ˆÔØ�z‰z˜&Ó!Ð!rcóF•UR5 g![a gf=f)zýInternal 'rset' command which ignores any SMTPServerDisconnected error. Used internally in the library, since the server disconnected error should appear to the application when the *next* command is issued, if we are doing an internal "safety" reset. N)rórrzs rÚ_rsetÚ SMTP._rsets"€ð Ø �I‰I�KøÜ%ó Ù ð ús ‚“ Ÿ có$•URS5$)z-SMTP 'noop' command -- doesn't do anything :>Únoop)r€rzs rrùÚ SMTP.noops€à�z‰z˜&Ó!Ð!rcóB•SnU(aeUR(aT[SU55(a)URS5(aSUlO [ S5eSSR U5-nUR SS[U5<U<35 UR5$) aSMTP 'mail' command -- begins mail xfer session. This method may raise the following exceptions: SMTPNotSupportedError The options parameter includes 'SMTPUTF8' but the SMTPUTF8 extension is not supported by the server. rFc3óF# •UHoR5S:Hv• M g7f)Úsmtputf8N)rã)Ú.0Úxs rÚ ÚSMTP.mail..#sé€Ð:²'¨Q—7‘7“9˜jÖ(²'ùs‚!rýzutf-8z SMTPUTF8 not supported by serverr³Úmailzfrom:) rÛÚanyrírjrrÆr¸rr¥)r,r5ÚoptionsÚ optionlists rrÚ SMTP.mails�€ðˆ Þ �t——ÜÑ:±'Ó:×:Ñ:Ø—=‘= ×,Ñ,Ø,3�DÕ)ä/Ø:ó<ð<à˜sŸx™x¨Ó0Ñ0ˆJØ � ‰ ‘F¬9°VÕ+<ºjÐIÔJØ�}‰}‹Ðrcó•SnU(a%UR(aSSRU5-nURSS[U5<U<35 UR 5$)z;SMTP 'rcpt' command -- indicates 1 recipient for this mail.rFr³Úrcptzto:)rÛrÆr¸rr¥)r,Úreciprrs rrÚ SMTP.rcpt-sG€àˆ Þ �t——ؘsŸx™x¨Ó0Ñ0ˆJØ � ‰ ‘F¬°5Õ)9º:ÐFÔGØ�}‰}‹Ðrcóú•URS5 UR5up#URS:”aURSX#45 US:wa [ X#5e[ U[ 5(a[U5RS5n[U5nUSS[:wa U[-nUS-[-nURU5 UR5up!URS:”aURSX!45 X!4$) a¢SMTP 'DATA' command -- sends message data to server. Automatically quotes lines beginning with a period per rfc821. Raises SMTPDataError if there is an unexpected reply to the DATA command; the return value from this method is the final response code received when the all data is sent. If msg is a string, lone '\r' and '\n' characters are converted to '\r\n' characters. If msg is bytes, it is transmitted as is. rZrzdata:ibreéþÿÿÿNó.) r¸r¥r…r’r r«r¬r_r­r]ÚbCRLFr°)r,r.r-ÚreplÚqs rrZÚ SMTP.data5sÚ€ð � ‰ �FÔØ—}‘}“‰ ˆØ �?‰?˜QÓ Ø × Ñ ˜g¨ |Ô 4Ø �3‹;Ü Ó+Ð +ä˜#œs×#Ñ#Ü “n×+Ñ+¨GÓ4�ܘsÓ#ˆAØ��ˆvœ‹Øœ‘I�Ø�D‘œ5Ñ ˆAØ �I‰I�aŒLØŸ-™-›/‰KˆTØ�‰ Ó"Ø×!Ñ! '¨D¨;Ô7Ø�;Ð rcóX•URS[U55 UR5$)z5SMTP 'verify' command -- checks for address validity.Úvrfy©r¸rRr¥©r,Úaddresss rÚverifyÚ SMTP.verifyRó!€à � ‰ �FœJ wÓ/Ô0Ø�}‰}‹ÐrcóX•URS[U55 UR5$)z.SMTP 'expn' command -- expands a mailing list.Úexpnrrs rrÚ SMTP.expnYrrcóÖ•URc\URcNSUR5Ss=::aS::d/O UR5upSUs=::aS::d O [ X5egggg)a2Call self.ehlo() and/or self.helo() if needed. If there has been no previous EHLO or HELO command this session, this method tries ESMTP EHLO first. This method may raise the following exceptions: SMTPHeloError The server didn't reply properly to the helo greeting. NéÈri+)rÒrÚrcrÑr )r,r-rÇs rÚehlo_or_helo_if_neededÚSMTP.ehlo_or_helo_if_needed`se€ð �>‰>Ñ ! d§n¡nÑ&<ؘ4Ÿ9™9›; q™>Õ0¨SÕ0Ø#Ÿy™y›{‘ �ؘtÕ* sÕ*Ü'¨Ó3Ð3ð+ð1ð'=Ð !rT©Úinitial_response_okcóJ•UR5nU(aU"5OSnUb;[URS5SS9nURSUS-U-5upgSUlOURSU5upgSUlUS :Xa‘U=RS- sl[ R "U5n[U"U5RS5SS9nURU5upgUR[:”a[S [Xg45-5eUS :XaM‘US ;aXg4$[Xg5e) a�Authentication command - requires response processing. 'mechanism' specifies which authentication mechanism is to be used - the valid values are those listed in the 'auth' element of 'esmtp_features'. 'authobject' must be a callable object taking a single argument: data = authobject(challenge) It will be called to process the server's challenge response; the challenge argument it is passed will be a bytes. It should return an ASCII string that will be base64 encoded and sent to the server. Keyword arguments: - initial_response_ok: Allow sending the RFC 4954 initial-response to the AUTH command, if the authentication methods supports it. NrerF)ÚeolÚAUTHr³r‰riNz4Server AUTH mechanism infinite loop. Last response: ©éëi÷) ÚupperÚ encode_base64r­r€rlÚbase64Ú decodebytesÚ _MAXCHALLENGErr¦r ) r,Ú mechanismÚ authobjectr"Úinitial_responseÚresponser-rÇÚ challenges rr×Ú SMTP.authqs!€ð,—O‘OÓ%ˆ Þ,?™JœLÀTÐØ Ñ 'Ü$Ð%5×%<Ñ%<¸WÓ%EÈ2ÑNˆHØŸ:™: f¨i¸#©oÀÑ.HÓI‰LˆTØ)*ˆDÕ &àŸ:™: f¨iÓ8‰LˆTØ)*ˆDÔ &à�c‹kØ × &Ò &¨!Ñ +Õ &Ü×*Ò*¨4Ó0ˆIÜ$Ù˜9Ó%×,Ñ,¨WÓ5¸2ñ?ˆHàŸ:™: hÓ/‰LˆTà×)Ñ)¬MÓ9Ü#ØJܘD˜<Ó(ñ)óðð�c�kð �:Ó Ø�<Ð Ü% dÓ1Ð1rcóØ•Ucg[(d [S5eURRS5n[R "X!S5nUR SUR53$)z_Authobject to use with CRAM-MD5 authentication. Requires self.user and self.password to be set.NzCRAM-MD5 is not supportedrer`r³)Ú_have_cram_md5_supportrÚpasswordr­ÚhmacÚHMACÚuserÚ hexdigest)r,r1r5Úauthcodes rÚ auth_cram_md5ÚSMTP.auth_cram_md5¡sb€ð Ñ Øß%Ò%ÜÐ ;Ó<Ð <Ø—=‘=×'Ñ'¨Ó0ˆÜ—9’9˜X°%Ó8ˆØ—)‘)�˜A˜h×0Ñ0Ó2Ð3Ð4Ð4rcó>•SUR<SUR<3$)z\Authobject to use with PLAIN authentication. Requires self.user and self.password to be set.Ú)r8r5©r,r1s rÚ auth_plainÚSMTP.auth_plain­s�ð"ŸYœY¨¯ « Ð6Ð6rcóX•UbURS:a UR$UR$)z\Authobject to use with LOGIN authentication. Requires self.user and self.password to be set.é)rlr8r5r?s rÚ auth_loginÚSMTP.auth_login²s+€ð Ñ  × :Ñ :¸QÓ >Ø—9‘9Ð à—=‘=Ð rcó"•UR5 URS5(d [S5eURSR 5n[ (a/SQnOSS/nUVs/sH nXd;dM UPM nnU(d [ S5eXsUlUlUHNnSUR5RSS 5-n URU[X 5US 9up«U S ;aX«4s $MP W es snf![a n U n S n A MkS n A ff=f) aßLog in on an SMTP server that requires authentication. The arguments are: - user: The user name to authenticate with. - password: The password for the authentication. Keyword arguments: - initial_response_ok: Allow sending the RFC 4954 initial-response to the AUTH command, if the authentication methods supports it. If there has been no previous EHLO or HELO command this session, this method tries ESMTP EHLO first. This method will return normally if the authentication was successful. This method may raise the following exceptions: SMTPHeloError The server didn't reply properly to the helo greeting. SMTPAuthenticationError The server didn't accept the username/ password combination. SMTPNotSupportedError The AUTH command is not supported by the server. SMTPException No suitable authentication method was found. r×z,SMTP AUTH extension not supported by server.)zCRAM-MD5ÚPLAINÚLOGINrGrHz(No suitable authentication method found.Úauth_Ú-Ú_r!r&N)rrírrirÝr4rr8r5rãr¶r×Úgetattrr )r,r8r5r"Úadvertised_authlistÚpreferred_authsr×ÚauthlistÚ authmethodÚ method_namer-rÇrÉÚlast_exceptions rÚloginÚ SMTP.loginºs2€ð8 ×#Ñ#Ô%Ø�}‰}˜V×$Ñ$Ü'Ø>ó@ð @ð#×1Ñ1°&Ñ9×?Ñ?ÓAÐ÷ "Ò !Ú<‰Oà&¨Ð0ˆOñ&5ó4¢_˜TØÑ2÷¡_ˆð4æÜÐ JÓKÐ Kð $(Ð ˆŒ �4”=Û"ˆJØ! J×$4Ñ$4Ó$6×$>Ñ$>¸sÀCÓ$HÑHˆKð #Ø#Ÿy™yؤ¨Ó :Ø(;ð )ð =‘ �ð ˜:Ó%Ø ˜<Ò'ñ&ñ#ðÐùò/4øô&+ó #Ø!"–ûð #ús$Á' C2Á4C2Ã$C7Ã7 DÄD Ä D©Úcontextcó¦•UR5 URS5(d [S5eURS5up#US:Xa}[(d [ S5eUc[ R"5nURURURS9Ul SUl SUl SUl 0UlSUlX#4$[!X#5e) a;Puts the connection to the SMTP server into TLS mode. If there has been no previous EHLO or HELO command this session, this method tries ESMTP EHLO first. If the server supports TLS, this will encrypt the rest of the SMTP session. If you provide the context parameter, the identity of the SMTP server and client can be checked. This, however, depends on whether the socket module really checks the certificates. This method may raise the following exceptions: SMTPHeloError The server didn't reply properly to the helo greeting. Ústarttlsz+STARTTLS extension not supported by server.ÚSTARTTLSrfz&No SSL support included in this PythonN©Úserver_hostnameF)rrírr€Ú _have_sslÚ RuntimeErrorÚsslÚ_create_stdlib_contextÚ wrap_socketr¤r¡rŠrÒrÚrirÛr)r,rVrÇÚreplys rrXÚ SMTP.starttlsþsÌ€ð" ×#Ñ#Ô%Ø�}‰}˜Z×(Ñ(Ü'Ø=ó?ð ?àŸ ™  :Ó.‰ ˆØ �3‹;ß’9Ü"Ð#KÓLÐL؉Ü×4Ò4Ó6�Ø×+Ñ+¨D¯I©IØ<@¿J¹Jð,ðHˆDŒIàˆDŒIð "ˆDŒNØ!ˆDŒNØ"$ˆDÔ Ø#ˆDŒOð ˆ}Ðô(¨Ó4Ð 4rcó¨•UR5 /n[U[5(a[U5R S5nUR (aMUR S5(aURS[U5-5 UHnURU5 M URX5up‰US:wa3US:XaUR5 OUR5 [X‰U5e0n [U[5(aU/nUHHn URXµ5up‰US:wa US:waX‰4X«'US:XdM/UR5 [U 5e [U 5[U5:XaUR5 [U 5eURU5up‰US:wa2US:XaUR5 OUR5 [!X‰5eU $)aì This command performs an entire mail transaction. The arguments are: - from_addr : The address sending this mail. - to_addrs : A list of addresses to send this mail to. A bare string will be treated as a list with 1 address. - msg : The message to send. - mail_options : List of ESMTP options (such as 8bitmime) for the mail command. - rcpt_options : List of ESMTP options (such as DSN commands) for all the rcpt commands. msg may be a string containing characters in the ASCII range, or a byte string. A string is encoded to bytes using the ascii codec, and lone \r and \n characters are converted to \r\n characters. If there has been no previous EHLO or HELO command this session, this method tries ESMTP EHLO first. If the server does ESMTP, message size and each of the specified options will be passed to it. If EHLO fails, HELO will be tried and ESMTP options suppressed. This method will return normally if the mail is accepted for at least one recipient. It returns a dictionary, with one entry for each recipient that was refused. Each entry contains a tuple of the SMTP error code and the accompanying error message sent by the server. This method may raise the following exceptions: SMTPHeloError The server didn't reply properly to the helo greeting. SMTPRecipientsRefused The server rejected ALL recipients (no mail was sent). SMTPSenderRefused The server didn't accept the from_addr. SMTPDataError The server replied with an unexpected error code (other than a refusal of a recipient). SMTPNotSupportedError The mail_options parameter includes 'SMTPUTF8' but the SMTPUTF8 extension is not supported by the server. Note: the connection will be open even after an exception is raised. Example: >>> import smtplib >>> s=smtplib.SMTP("localhost") >>> tolist=["one@one.org","two@two.org","three@three.org","four@four.org"] >>> msg = '''\ ... From: Me@my.org ... Subject: testin'... ... ... This is a test ''' >>> s.sendmail("me@my.org",tolist,msg) { "three@three.org" : ( 550 ,"User unknown" ) } >>> s.quit() In the above example, the message was accepted for delivery to three of the four addresses, and one was rejected, with the error code 550. If all addresses are accepted, then the method will return an empty dictionary. reÚsizezsize=%drÖi¥éû)rr«r¬r_r­rÛrírÅrÄrrnrörrr rZr ) r,Ú from_addrÚto_addrsr.Ú mail_optionsÚ rcpt_optionsÚ esmtp_optsÚoptionr-rÇÚsenderrsræs rÚsendmailÚ SMTP.sendmail+s‚€ð@ ×#Ñ#Ô%؈ Ü �cœ3× Ñ Ü˜C“.×'Ñ'¨Ó0ˆCØ �?�?Ø�}‰}˜V×$Ñ$Ø×!Ñ! )¬c°#«hÑ"6Ô7Û&�Ø×!Ñ! &Ö)ñ'à—y‘y Ó7‰ ˆØ �3‹;Ø�s‹{Ø— ‘ • à— ‘ ” Ü# D° Ó:Ð :ØˆÜ �h¤× $Ñ $Ø �zˆHÛˆDØŸ9™9 TÓ8‰LˆTؘ“  $¨#£+Ø"& �‘Ø�s�{Ø— ‘ ” Ü+¨HÓ5Ð5ñ ô ˆx‹=œC ›MÓ )à �J‰JŒLÜ'¨Ó1Ð 1Ø—y‘y “~‰ ˆØ �3‹;Ø�s‹{Ø— ‘ • à— ‘ ” Ü Ó+Ð +àˆrcóP•UR5 URS5nUcSnO[U5S:XaSnO [S5eUc=US-U;aXS-OXS-n[R R U/5S SnUcZXS -XS -XS -4Vs/sH nUcMUPM n n[R R U 5V s/sHoªSPM nn [R"U5n U S U S Sn SRU/UQ5RS5 [R"5n U (a>[RR!XÑR"R%SS9S9n/UQSPSP7nO[RR!U 5nUR'U SS9 U R)5nSSS5 UR+X#WUU5$s snfs sn f![a& URS5(d [S5eSn Nïf=f!,(df  N_=f)aþConverts message to a bytestring and passes it to sendmail. The arguments are as for sendmail, except that msg is an email.message.Message object. If from_addr is None or to_addrs is None, these arguments are taken from the headers of the Message as described in RFC 5322 (a ValueError is raised if there is more than one set of 'Resent-' headers). Regardless of the values of from_addr and to_addr, any Bcc field (or Resent-Bcc field, when the Message is a resent) of the Message object won't be transmitted. The Message object is then serialized using email.generator.BytesGenerator and sendmail is called to transmit the message. If the sender or any of the recipient addresses contain non-ASCII and the server advertises the SMTPUTF8 capability, the policy is cloned with utf8 set to True for the serialization, and SMTPUTF8 and BODY=8BITMIME are asserted on the send. If the server does not support SMTPUTF8, an SMTPNotSupported error is raised. Otherwise the generator is called without modifying the policy. z Resent-DateNrFr‰zResent-z0message has more than one 'Resent-' header blockÚSenderÚFromrÚToÚBccÚCcz Resent-BccFrerýz”One or more source or delivery addresses require internationalized email support, but the server does not advertise the required SMTPUTF8 capabilityT)Úutf8)ÚpolicyÚSMTPUTF8z BODY=8BITMIMEr)Úlinesep)rÚget_allrÄr–rHrIÚ getaddressesÚcopyrÆr­ÚUnicodeEncodeErrorrírÚioÚBytesIOÚ generatorÚBytesGeneratorrvÚcloneÚflattenÚgetvaluerm)r,r.rfrgrhriÚresentÚ header_prefixÚfÚ addr_fieldsÚaÚmsg_copyÚ internationalÚbytesmsgÚgÚflatmsgs rÚ send_messageÚSMTP.send_message“sN€ð> ×#Ñ#Ô%Ø—‘˜]Ó+ˆØ ‰>؉MÜ �‹[˜AÓ Ø%‰MäÐOÓPÐ PØ Ñ ð -¨xÑ7¸CÓ?ð¨XÑ5Ò6à #°FÑ$:Ñ ;ð ôŸ ™ ×0Ñ0°)°Ó=¸aÑ@ÀÑCˆIØ Ñ Ø'*¸4Ñ+?Ñ'@Ø'*¸5Ñ+@Ñ'AØ'*¸4Ñ+?Ñ'@ñ'Bó-ò'B ð ÷ñ'BˆKð-ô',§k¡k×&>Ñ&>¸{Ô&KÓLÒ&K ˜!œÑ&KˆHÐLä—9’9˜S“>ˆØ �UˆOØ �\Ð "؈ ð !Ø �G‰G�YÐ* Ð*Ó +× 2Ñ 2°7Ô ;ô�ZŠZŒ\˜XÞÜ—O‘O×2Ñ2اZ¡Z×%5Ñ%5¸4Ð%5Ð%@ð3ðB�àK ÐK¨zÐK¸?ÑK‘ ä—O‘O×2Ñ2°8Ó<�Ø �I‰I�h¨ˆIÑ /Ø×'Ñ'Ó)ˆG÷ð�}‰}˜Y°'¸<Ø)ó+ð +ùò9-ùòMøô"ó !Ø—=‘= ×,Ñ,Ü+ðKóLðLð!ŠMð  !ú÷�\ús1ÂGÂ)GÃGÄ#G$Ä9BHÇ$-HÈHÈ H%có•URnSUlU(aUR5 URnSUlU(aUR5 gg!URnSUlU(aUR5 ff=f)z(Close the connection to the SMTP server.N)rŠrnr¤)r,rŠr¤s rrnÚ SMTP.closeàsi€ð Ø—9‘9ˆD؈DŒIÞØ— ‘ ” à—9‘9ˆD؈DŒIÞØ— ‘ • ðøð—9‘9ˆD؈DŒIÞØ— ‘ • ðús ‚*AÁ-Bcó€•URS5nS=UlUl0UlSUlUR 5 U$)zTerminate the SMTP session.ÚquitNF)r€rÚrÒrirÛrn)r,Úress rr“Ú SMTP.quitís;€à�j‰j˜Ó ˆà*.Ð.ˆŒ˜œØ ˆÔ؈ŒØ � ‰ Œ ؈ r)rlr¡rjr…rÛrÚrirŠrÒror5r¤rkrhr8©Ú localhostrN)rF)rr()rr)NNrr)4rrrrrr…r¤rŠrÒrÙrÚrÛÚ SMTP_PORTr¢rpÚ_GLOBAL_DEFAULT_TIMEOUTr/r{r‚r†r’r˜rmr°r¸r¥r€rÑrcrírðrórörùrrrZrrrrr×r;r@rDrSrXrmrŽrnr“rrrrrrÇs%†ñ ð8€Jà €DØ €DØ€IØ€HØ€IØ€JØ€Là Q°tØ×7Ñ7Ø $ô-4ò^òò%ò*ò =ô òDGô&  ò/ôbô ô1òf2ô"ò "ò ò"ôô*òò:ð €Dòò4ð"BFõ.2ô` 5ô7ô !ð<@õBðH#'õ+ðZ?AØ ôfðP:>Ø35ôK+òZ õrrcóZ^•\rSrSrSr\rS\RSSS.Sjjr U4Sjr Sr U=r $) ÚSMTP_SSLiùa¥This is a subclass derived from SMTP that connects over an SSL encrypted socket (to use this class you need a socket module that was compiled with SSL support). If host is not specified, '' (the local host) is used. If port is omitted, the standard SMTP-over-SSL port (465) is used. local_hostname and source_address have the same meaning as they do in the SMTP class. context also optional, can contain a SSLContext. N)rhrkrVcóp•Uc[R"5nX`l[R XX#UU5 gr()r^r_rVrr/)r,rurvrorhrkrVs rr/ÚSMTP_SSL.__init__s1€ð‰Ü×4Ò4Ó6�Ø"ŒLÜ �M‰M˜$ d¸GØ(õ *rcó¶>•URS:”aURSX45 [TU] XU5nURR UUR S9nU$)NrrœrZ)r…r’Úsuperr˜rVr`r¡)r,rurvrhÚ new_socketÚ __class__s €rr˜ÚSMTP_SSL._get_sockets[ø€Ø�‰ Ó"Ø×!Ñ! *¨t¨lÔ;Ü™Ñ,¨T¸ÓAˆJØŸ™×1Ñ1°*ØBFÇ*Á*ð2ðNˆJàÐ rrU)rFrN) rrrrrÚ SMTP_SSL_PORTr¢rpr™r/r˜rÚ __classcell__©r¡s@rr›r›ùs1ø†ñ ð%ˆ ð *Ø &× >Ñ >Ø$(°$ö *÷ ó rr›iÓcób^•\rSrSrSrSrS\SS\R4U4Sjjr S U4Sjjr Sr U=r $) ÚLMTPiaeLMTP - Local Mail Transfer Protocol The LMTP protocol, which is very similar to ESMTP, is heavily based on the standard SMTP client. It's common to use Unix sockets for LMTP, so our connect() method must support that as well as a regular host:port server. local_hostname and source_address have the same meaning as they do in the SMTP class. To specify a Unix socket, you must use an absolute path as the host, starting with a '/'. Authentication is supported, using the regular SMTP mechanism. When using a Unix socket, LMTP generally don't support or require any authentication, but your mileage might vary.ÚlhlorFNcó$>•[TU]XUXES9 g)zInitialize a new instance.)rorkrhN)rŸr/)r,rurvrorkrhr¡s €rr/Ú LMTP.__init__.sø€ô ‰Ñ˜°NØ(6ð ò Ircóò>•USS:wa[TU]XUS9$URbUR(d [S5e[R"[R [R 5UlUR[RLa%URRUR5 SUl URRU5 UR5upEURS:”aURSU5 XE4$![aV URS:”aURSU5 UR(aURR5 SUlef=f)z=Connect to the LMTP daemon, on either a Unix or a TCP socket.rÚ/)rkNr•z connect fail:rœ)rŸrmrhr–rpÚAF_UNIXÚ SOCK_STREAMr¤r™Ú settimeoutrŠr r…r’rnr¥)r,rurvrkr-r.r¡s €rrmÚ LMTP.connect4sø€à �‰7�c‹>Ü‘7‘? 4¸n�?ÐMÐ Mà �<‰<Ñ #¨D¯L¯LÜÐOÓPÐ Pð ÜŸ š ¤f§n¡n´f×6HÑ6HÓIˆDŒIØ�|‰|¤6×#AÑ#AÒAØ— ‘ ×$Ñ$ T§\¡\Ô2؈DŒIØ �I‰I× Ñ ˜dÔ #ð—m‘m“o‰ ˆØ �?‰?˜QÓ Ø × Ñ ˜j¨#Ô .؈{Ðøôó Ø�‰ Ó"Ø×!Ñ! /°4Ô8Ø�y�yØ— ‘ —‘Ô!؈DŒIØ ð  úsÁBDÄA E6)rŠr¤r–) rrrrrrÙÚ LMTP_PORTrpr™r/rmrr¤r¥s@rr§r§s1ø†ñ 4ð€Hà Y¸tØ $¨f×.LÑ.L÷I÷ õrr§Ú__main__cóÚ•[RRUS-5 [RR5 [RR 5R 5$)Nz: )r�ÚstdoutÚwriteÚflushÚstdinrÂrK)Úprompts rr¸r¸SsD€Ü � ‰ ×ј $™Ô'Ü � ‰ ×ÑÔÜ�y‰y×!Ñ!Ó#×)Ñ)Ó+Ð+rrqrrÚ,zEnter message, end with ^D:rFzMessage length is %dr—r‰)Drrpr}rVÚ email.utilsrHÚ email.messageÚemail.generatorr*r6r{rŒr�Úemail.base64mimerr)Ú__all__r˜r£rXrrÃr,ÚcompileÚIrÞr rrrrrr r r r r rrRrr]r_Údigestr4r–r^r\Ú ImportErrorrr›rÅr±r§rr¸ÚfromaddrrÝÚtoaddrsr‹r.r·rÂrÈrÄÚserverr†rmr“rrrÚrÆsZðñóRÛ Û ÛÛÛÛ Û Û ÛÛ Ý9ò -€ð € Ø€ Ø €Ø€Ø €Ø€ à— ’ ˜<¨¯©Ó.€ ô?�Gô?ô˜Môô˜]ôô  ˜Mô  ô (Ð-ô (ô "˜Mô "ô2Ð)ô2ô1Ð,ô1ô-Ð)ô-ôÐ3ôò òò5ò/ò8ð"؇K‚K��S˜%Ô ð"ÐðÛð€I÷n ñn ö` ô�4ôð< ‡N�N�:Ôð € ô/ˆ4ô/ðh ˆzÓò,ñ �f‹~€HÙ�T‹l× Ñ  Ó%€GÙ Ð 'Ô(Ø €CØ—)‘)×$Ñ$Ó&Ð &ˆ$Õ &Ø�D‰jˆð—)‘)×$Ñ$Ó&Ð &ˆ$× &á Ð ¡3 s£8Ñ +Ô,á �+Ó €FØ ×ј!ÔØ ‡O�O�H˜g sÔ+Ø ‡K�K…Mð#øðsó#Ø"Óð#ûðó؃Iðús$à HÃ7HÈH È H ÈHÈH