1002件ヒット
[1001-1002件を表示]
(0.053秒)
ライブラリ
-
irb
/ context (220) -
irb
/ ext / save-history (11) - openssl (649)
- psych (11)
-
rdoc
/ context (66) -
rexml
/ document (22)
クラス
-
IRB
:: Context (220) -
OpenSSL
:: ASN1 :: BMPString (22) -
OpenSSL
:: ASN1 :: BitString (22) -
OpenSSL
:: ASN1 :: GeneralString (22) -
OpenSSL
:: ASN1 :: GraphicString (22) -
OpenSSL
:: ASN1 :: IA5String (22) -
OpenSSL
:: ASN1 :: ISO64String (22) -
OpenSSL
:: ASN1 :: NumericString (22) -
OpenSSL
:: ASN1 :: OctetString (22) -
OpenSSL
:: ASN1 :: PrintableString (22) -
OpenSSL
:: ASN1 :: T61String (22) -
OpenSSL
:: ASN1 :: UTF8String (22) -
OpenSSL
:: ASN1 :: UniversalString (22) -
OpenSSL
:: ASN1 :: VideotexString (22) -
OpenSSL
:: SSL :: SSLContext (44) -
OpenSSL
:: X509 :: StoreContext (33) -
Psych
:: SyntaxError (11) -
RDoc
:: Context (22) -
RDoc
:: Context :: Section (44) -
REXML
:: Document (11) -
REXML
:: Element (11)
モジュール
-
OpenSSL
:: ASN1 (286)
キーワード
- BMPString (22)
- BitString (22)
- GeneralString (22)
- GraphicString (22)
- IA5String (22)
-
IDNAME
_ IVARS (11) - ISO64String (22)
-
NEWS for Ruby 3
. 0 . 0 (4) -
NOPRINTING
_ IVARS (11) -
NO
_ INSPECTING _ IVARS (11) - NumericString (22)
- OctetString (22)
- PrintableString (22)
- T61String (22)
- UTF8String (22)
- UniversalString (22)
- VideotexString (22)
-
_ _ inspect _ _ (11) -
_ _ to _ s _ _ (11) -
ap
_ name (11) -
ap
_ name= (11) -
ca
_ file (11) -
ca
_ path (11) - ciphers (11)
- comment (11)
- context (11)
- error= (11)
-
error
_ string (11) -
history
_ file (11) - inspect (22)
- irb (11)
-
irb
_ name (11) -
irb
_ name= (11) -
irb
_ path (11) -
load
_ modules (11) - name (11)
-
net
/ smtp (8) - new (319)
-
prompt
_ c (11) -
prompt
_ i (11) -
prompt
_ n (11) -
prompt
_ s (11) -
return
_ format (11) - sequence (11)
-
session
_ id _ context (11) - title (11)
-
to
_ s (11) -
unmatched
_ alias _ lists (11) - verify (11)
検索結果
先頭1件
-
net
/ smtp (30.0) -
メールを送信するためのプロトコル SMTP (Simple Mail Transfer Protocol) を扱うライブラリです。
...rom@example.com>
To: Dest Address <to@example.net>
Subject: test mail
Date: Sat, 23 Jun 2001 16:26:43 +0900
Message-Id: <unique.message.id.string@yourhost.example.com>
This is a test mail.
EndOfMail
}
==== セッションを終了する
メールを送ったら Net::SMTP#finish......こともありません。
# using SMTP#finish
require 'net/smtp'
smtp = Net::SMTP.start('smtp.example.com', 25)
smtp.send_message mail_string, 'from@example.com', 'to@example.net'
smtp.finish
またブロック付きの Net::SMTP.start, Net::SMTP#start
を使うと finish を呼んで......et::SMTP.new('smtp.example.com', 25)
# SSLのコンテキストを作成してSSLの設定をし、context に代入しておく
# TLSを常に使うようにする
smtp.enable_starttls(context)
smtp.start() do
# send messages ...
end
TLS を使用したい場合は enable_tls を使...