⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.189
Server IP:
109.199.105.153
Server:
Linux connect.inboxifs.com 5.15.0-152-generic #162-Ubuntu SMP Wed Jul 23 09:48:42 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
3.0.0
/
system
/
Net
/
SMTP
/
View File Name :
cdesc-SMTP.ri
U:RDoc::NormalClass[iI" SMTP:ETI"Net::SMTP;TI"Net::Protocol;To:RDoc::Markup::Document:@parts[o;;[/S:RDoc::Markup::Heading: leveli: textI"What is This Library?;To:RDoc::Markup::BlankLine o:RDoc::Markup::Paragraph;[I":This library provides functionality to send internet ;TI"Fmail via SMTP, the Simple Mail Transfer Protocol. For details of ;TI"FSMTP itself, see [RFC2821] (http://www.ietf.org/rfc/rfc2821.txt).;T@S; ; i;I"What is This Library NOT?;T@o; ;[ I"HThis library does NOT provide functions to compose internet mails. ;TI"HYou must create them by yourself. If you want better mail support, ;TI"9try RubyMail or TMail or search for alternatives in ;TI"8{RubyGems.org}[https://rubygems.org/] or {The Ruby ;TI"-Toolbox}[https://www.ruby-toolbox.com/].;T@o; ;[I"jFYI: the official documentation on internet mail is: [RFC2822] (http://www.ietf.org/rfc/rfc2822.txt).;T@S; ; i;I" Examples;T@S; ; i;I"Sending Messages;T@o; ;[ I"KYou must open a connection to an SMTP server before sending messages. ;TI"KThe first argument is the address of your SMTP server, and the second ;TI"Pargument is the port number. Using SMTP.start with a block is the simplest ;TI"Kway to do this. This way, the SMTP connection is closed automatically ;TI"!after the block is executed.;T@o:RDoc::Markup::Verbatim;[ I"require 'net/smtp' ;TI"7Net::SMTP.start('your.smtp.server', 25) do |smtp| ;TI"6 # Use the SMTP object smtp only in this block. ;TI" end ;T:@format0o; ;[I"@Replace 'your.smtp.server' with your SMTP server. Normally ;TI"@your system manager or internet provider supplies a server ;TI" for you.;T@o; ;[I" Then you can send messages.;T@o;;[I"msgstr = <<END_OF_MESSAGE ;TI")From: Your Name <your@mail.address> ;TI"3To: Destination Address <someone@example.com> ;TI"Subject: test message ;TI"+Date: Sat, 23 Jun 2001 16:26:43 +0900 ;TI"8Message-Id: <unique.message.id.string@example.com> ;TI" ;TI"This is a test message. ;TI"END_OF_MESSAGE ;TI" ;TI"require 'net/smtp' ;TI"7Net::SMTP.start('your.smtp.server', 25) do |smtp| ;TI"! smtp.send_message msgstr, ;TI". 'your@mail.address', ;TI"3 'his_address@example.com' ;TI" end ;T;0S; ; i;I"Closing the Session;T@o; ;[I"HYou MUST close the SMTP session after sending messages, by calling ;TI"the #finish method:;T@o;;[ I"# using SMTP#finish ;TI"4smtp = Net::SMTP.start('your.smtp.server', 25) ;TI"<smtp.send_message msgstr, 'from@address', 'to@address' ;TI"smtp.finish ;T;0o; ;[I"LYou can also use the block form of SMTP.start/SMTP#start. This closes ;TI"$the SMTP session automatically:;T@o;;[ I"&# using block form of SMTP.start ;TI"7Net::SMTP.start('your.smtp.server', 25) do |smtp| ;TI"> smtp.send_message msgstr, 'from@address', 'to@address' ;TI" end ;T;0o; ;[I"MI strongly recommend this scheme. This form is simpler and more robust.;T@S; ; i;I"HELO domain;T@o; ;[ I"AIn almost all situations, you must provide a third argument ;TI"Hto SMTP.start/SMTP#start. This is the domain name which you are on ;TI"C(the host to send mail from). It is called the "HELO domain". ;TI"AThe SMTP server will judge whether it should send or reject ;TI"4the SMTP session by inspecting the HELO domain.;T@o;;[I",Net::SMTP.start('your.smtp.server', 25 ;TI"> helo: 'mail.from.domain') { |smtp| ... } ;T;0S; ; i;I"SMTP Authentication;T@o; ;[ I"@The Net::SMTP class supports three authentication schemes; ;TI"BPLAIN, LOGIN and CRAM MD5. (SMTP Authentication: [RFC2554]) ;TI"9To use SMTP authentication, pass extra arguments to ;TI"SMTP.start/SMTP#start.;T@o;;[I" # PLAIN ;TI",Net::SMTP.start('your.smtp.server', 25 ;TI"V user: 'Your Account', secret: 'Your Password', authtype: :plain) ;TI" # LOGIN ;TI",Net::SMTP.start('your.smtp.server', 25 ;TI"V user: 'Your Account', secret: 'Your Password', authtype: :login) ;TI" ;TI"# CRAM MD5 ;TI",Net::SMTP.start('your.smtp.server', 25 ;TI"X user: 'Your Account', secret: 'Your Password', authtype: :cram_md5);T;0: @fileI"lib/net/smtp.rb;T:0@omit_headings_from_table_of_contents_below0;0;0[[ I"address;TI"R;T:publicFI"lib/net/smtp.rb;T[ I" esmtp;TI"RW;T;F@�[ I"esmtp?;T@�;F@�[ I"open_timeout;T@�;F@�[ I" port;T@�;F@�[ I"read_timeout;T@�;F@�[U:RDoc::Constant[i I"VERSION;TI"Net::SMTP::VERSION;T;0o;;[ ;@�;0@�@cRDoc::NormalClass0U;[i I" Revision;TI"Net::SMTP::Revision;T;0o;;[ ;@�;0@�@@�0U;[i I"DEFAULT_AUTH_TYPE;TI"!Net::SMTP::DEFAULT_AUTH_TYPE;T;0o;;[o; ;[I"Authentication;T;@�;0@�@@�0U;[i I" IMASK;TI"Net::SMTP::IMASK;T;0o;;[ ;@�;0@�@@�0U;[i I" OMASK;TI"Net::SMTP::OMASK;T;0o;;[ ;@�;0@�@@�0U;[i I"CRAM_BUFSIZE;TI"Net::SMTP::CRAM_BUFSIZE;T;0o;;[ ;@�;0@�@@�0[ [[I" class;T[[;[[I"default_port;T@�[I"default_ssl_context;T@�[I"default_ssl_port;T@�[I"default_submission_port;T@�[I"default_tls_port;T@�[I"new;T@�[I" start;T@�[:protected[ [:private[ [I" instance;T[[;[/[I"auth_cram_md5;T@�[I"auth_login;T@�[I"auth_plain;T@�[I"authenticate;T@�[I"capable_auth_types;T@�[I"capable_cram_md5_auth?;T@�[I"capable_login_auth?;T@�[I"capable_plain_auth?;T@�[I"capable_starttls?;T@�[I" data;T@�[I"debug_output=;T@�[I"disable_ssl;T@�[I"disable_starttls;T@�[I"disable_tls;T@�[I" ehlo;T@�[I"enable_ssl;T@�[I"enable_starttls;T@�[I"enable_starttls_auto;T@�[I"enable_tls;T@�[I"finish;T@�[I" helo;T@�[I"inspect;T@�[I" mailfrom;T@�[I"open_message_stream;T@�[I" quit;T@�[I"rcptto;T@�[I"rcptto_list;T@�[I"read_timeout=;T@�[I" ready;T@�[I" rset;T@�[I"send_mail;T@�[I"send_message;T@�[I" sendmail;T@�[I"set_debug_output;T@�[I" ssl?;T@�[I" start;T@�[I" started?;T@�[I" starttls;T@�[I"starttls?;T@�[I"starttls_always?;T@�[I"starttls_auto?;T@�[I" tls?;T@�[;[ [;[[I"auth_capable?;T@�[I"auth_method;T@�[I"base64_encode;T@�[I" capable?;T@�[I"check_auth_args;T@�[I"check_auth_continue;T@�[I"check_auth_method;T@�[I"check_auth_response;T@�[I"check_continue;T@�[I"check_response;T@�[I"cram_md5_response;T@�[I"cram_secret;T@�[I" critical;T@�[I"do_finish;T@�[I"do_helo;T@�[I" do_start;T@�[I"get_response;T@�[I" getok;T@�[I"logging;T@�[I"new_internet_message_io;T@�[I"recv_response;T@�[I"ssl_socket;T@�[I"tcp_socket;T@�[I"tlsconnect;T@�[I"validate_line;T@�[ [U:RDoc::Context::Section[i 0o;;[ ;0;0[@�I"Net;TcRDoc::NormalModule