55件ヒット
[1-55件を表示]
(0.031秒)
種類
- インスタンスメソッド (44)
- ライブラリ (11)
ライブラリ
-
net
/ smtp (44)
クラス
-
Net
:: SMTP (44)
キーワード
-
enable
_ ssl (11) -
net
/ smtp (11) - ssl? (11)
- tls? (11)
検索結果
先頭5件
-
Net
:: SMTP # enable _ tls(context = Net :: SMTP . default _ ssl _ context) -> () (18237.0) -
その Net::SMTP オブジェクトが SMTPS を利用するよう設定します。
...その Net::SMTP オブジェクトが SMTPS を利用するよう設定します。
このメソッドは Net::SMTP#start を呼ぶ前に呼ぶ必要があります。
@param context SSL接続で利用する OpenSSL::SSL::SSLContext
@see Net::SMTP#tls?, Net::SMTP#disable_tls... -
net
/ smtp (6472.0) -
メールを送信するためのプロトコル SMTP (Simple Mail Transfer Protocol) を扱うライブラリです。
... SMTP (Simple Mail Transfer Protocol)
を扱うライブラリです。
ヘッダなどメールのデータを扱うことはできません。
SMTP の実装は 2821 に基いています。
=== 使用例
==== とにかくメールを送る
SMTP を使ってメールを送るにはまず SMTP.......。
require 'net/smtp'
Net::SMTP.start( 'smtp.example.com', 25 ) {|smtp|
# use smtp object only in this block
}
smtp-server.example.com は適切な SMTP サーバのアドレスに読みかえてください。
通常は LAN の管理者やプロバイダが SMTP サーバを用意し......Net::SMTP.new('smtp.example.com', 25)
# SSLのコンテキストを作成してSSLの設定をし、context に代入しておく
# TLSを常に使うようにする
smtp.enable_starttls(context)
smtp.start() do
# send messages ...
end
TLS を使用したい場合は enable_tls を......法を考える必要があるでしょう。
TLS を使用したい場合は enable_tls を使用します。
require 'net/smtp'
# TLSの例
smtp = Net::SMTP.new('smtp.example.com', 465)
smtp.enable_tls
smtp.start do
# send messages ...
end
サーバーが STARTTLS をサポー... -
Net
:: SMTP # enable _ ssl(context = Net :: SMTP . default _ ssl _ context) -> () (3137.0) -
その Net::SMTP オブジェクトが SMTPS を利用するよう設定します。
...その Net::SMTP オブジェクトが SMTPS を利用するよう設定します。
このメソッドは Net::SMTP#start を呼ぶ前に呼ぶ必要があります。
@param context SSL接続で利用する OpenSSL::SSL::SSLContext
@see Net::SMTP#tls?, Net::SMTP#disable_tls... -
Net
:: SMTP # ssl? -> bool (3040.0) -
その Net::SMTP オブジェクトが SMTPS を利用するならば真を返します。
...その Net::SMTP オブジェクトが SMTPS を利用するならば真を返します。
@see Net::SMTP#enable_tls, Net::SMTP#disable_tls, Net::SMTP#start... -
Net
:: SMTP # tls? -> bool (3040.0) -
その Net::SMTP オブジェクトが SMTPS を利用するならば真を返します。
...その Net::SMTP オブジェクトが SMTPS を利用するならば真を返します。
@see Net::SMTP#enable_tls, Net::SMTP#disable_tls, Net::SMTP#start...