60件ヒット
[1-60件を表示]
(0.052秒)
種類
- インスタンスメソッド (48)
- ライブラリ (12)
ライブラリ
-
net
/ smtp (48)
クラス
-
Net
:: SMTP (48)
キーワード
-
enable
_ ssl (12) -
net
/ smtp (12) - ssl? (12)
- tls? (12)
検索結果
先頭5件
-
Net
:: SMTP # enable _ tls(context = Net :: SMTP . default _ ssl _ context) -> () (15113.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 (78.0) -
メールを送信するためのプロトコル SMTP (Simple Mail Transfer Protocol) を扱うライブラリです。
...smtp|
smtp.send_message(<<-EndOfMail, 'from@example.com', 'to@example.net')
From: Your Name <from@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......せん。
# 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 を呼んでくれるので便......る
smtp.enable_starttls(context)
smtp.start() do
# send messages ...
end
TLS を使用したい場合は enable_tls を使用します。
require 'net/smtp'
# TLSの例
smtp = Net::SMTP.new('smtp.example.com', 465)
smtp.enable_tls
smtp.start do
# send messages ...
end......方法を考える必要があるでしょう。
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) -> () (13.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 (12.0) -
その Net::SMTP オブジェクトが SMTPS を利用するならば真を返します。
...その Net::SMTP オブジェクトが SMTPS を利用するならば真を返します。
@see Net::SMTP#enable_tls, Net::SMTP#disable_tls, Net::SMTP#start... -
Net
:: SMTP # tls? -> bool (12.0) -
その Net::SMTP オブジェクトが SMTPS を利用するならば真を返します。
...その Net::SMTP オブジェクトが SMTPS を利用するならば真を返します。
@see Net::SMTP#enable_tls, Net::SMTP#disable_tls, Net::SMTP#start...