672件ヒット
[1-100件を表示]
(0.062秒)
種類
- インスタンスメソッド (534)
- 特異メソッド (94)
- 定数 (22)
- 文書 (11)
- ライブラリ (11)
ライブラリ
-
net
/ smtp (650)
クラス
-
Net
:: SMTP (650)
キーワード
-
DEFAULT
_ AUTH _ TYPE (11) -
NEWS for Ruby 2
. 1 . 0 (11) - Revision (11)
- address (11)
-
auth
_ cram _ md5 (11) -
auth
_ login (11) -
auth
_ plain (11) - authenticate (11)
-
capable
_ auth _ types (11) -
capable
_ cram _ md5 _ auth? (11) -
capable
_ login _ auth? (11) -
capable
_ plain _ auth? (11) -
capable
_ starttls? (11) - data (22)
-
default
_ port (11) -
default
_ ssl _ context (11) -
default
_ ssl _ port (11) -
default
_ submission _ port (11) -
default
_ tls _ port (11) -
disable
_ ssl (11) -
disable
_ starttls (11) -
disable
_ tls (11) - ehlo (11)
-
enable
_ ssl (11) -
enable
_ starttls (11) -
enable
_ starttls _ auto (11) -
enable
_ tls (11) - esmtp (11)
- esmtp? (11)
- finish (11)
- helo (11)
- inspect (11)
- mailfrom (11)
- new (11)
-
open
_ timeout (11) - port (11)
- quit (11)
- rcptto (11)
-
rcptto
_ list (11) -
read
_ timeout (11) - ready (11)
- rset (11)
-
send
_ mail (11) - sendmail (11)
-
set
_ debug _ output (11) - ssl? (11)
- start (56)
- started? (11)
- starttls (11)
- starttls? (11)
-
starttls
_ always? (11) -
starttls
_ auto? (11) - tls? (11)
検索結果
先頭5件
- net
/ smtp - Net
:: SMTP # auth _ cram _ md5(user , secret) -> () - Net
:: SMTP # capable _ cram _ md5 _ auth? -> bool - Net
:: SMTP . start(address , port = Net :: SMTP . default _ port , helo = & # 39;localhost& # 39; , user = nil , password = nil , authtype = DEFAULT _ AUTH _ TYPE) -> Net :: SMTP - Net
:: SMTP . start(address , port = Net :: SMTP . default _ port , helo = & # 39;localhost& # 39; , user = nil , password = nil , authtype = DEFAULT _ AUTH _ TYPE) {|smtp| . . . . } -> object
-
net
/ smtp (38078.0) -
メールを送信するためのプロトコル SMTP (Simple Mail Transfer Protocol) を扱うライブラリです。
...うに終端処理を自動的にやってくれる
のでおすすめです。
require 'net/smtp'
Net::SMTP.start( 'smtp.example.com', 25 ) {|smtp|
# use smtp object only in this block
}
smtp-server.example.com は適切な SMTP サーバのアドレスに読みかえてください。......require 'net/smtp'
Net::SMTP.start('smtp.example.com', 25) {|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: <uniq......なければいけません。
File のように GC 時に勝手に close されることもありません。
# 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 # auth _ cram _ md5(user , secret) -> () (8116.0) -
CRAM-MD5 認証を行います。
...CRAM-MD5 認証を行います。
このメソッドはセッション開始(Net::SMTP#start)後、
メールを送る前に呼びだしてください。
通常は Net::SMTP.start や Net::SMTP#start で認証を
行うためこれを利用する必要はないはずです。
@param user 認証... -
Net
:: SMTP # capable _ cram _ md5 _ auth? -> bool (8116.0) -
サーバが AUTH CRAM-MD5 を広告してきた場合に真を返します。
...サーバが AUTH CRAM-MD5 を広告してきた場合に真を返します。
このメソッドは Net::SMTP#start などでセッションを開始
した以降にしか正しい値を返しません。... -
Net
:: SMTP . start(address , port = Net :: SMTP . default _ port , helo = & # 39;localhost& # 39; , user = nil , password = nil , authtype = DEFAULT _ AUTH _ TYPE) -> Net :: SMTP (8112.0) -
新しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。
...しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。
以下と同じです。
require 'net/smtp'
Net::SMTP.new(address, port).start(helo, user, password, authtype)
このメソッドにブロックを与えた場合には、新しく作ら......ます。
authtype は使用する認証のタイプで、
シンボルで :plain, :login, :cram_md5 を指定します。
Example:
require 'net/smtp'
Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string, 'from@example.jp', 'to@example.jp'
}
@param address 接続......しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。
以下と同じです。
require 'net/smtp'
Net::SMTP.new(address, port).start(helo: helo, user: user, password: password, authtype: authtype)
このメソッドにブロックを与え... -
Net
:: SMTP . start(address , port = Net :: SMTP . default _ port , helo = & # 39;localhost& # 39; , user = nil , password = nil , authtype = DEFAULT _ AUTH _ TYPE) {|smtp| . . . . } -> object (8112.0) -
新しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。
...しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。
以下と同じです。
require 'net/smtp'
Net::SMTP.new(address, port).start(helo, user, password, authtype)
このメソッドにブロックを与えた場合には、新しく作ら......ます。
authtype は使用する認証のタイプで、
シンボルで :plain, :login, :cram_md5 を指定します。
Example:
require 'net/smtp'
Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string, 'from@example.jp', 'to@example.jp'
}
@param address 接続......しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。
以下と同じです。
require 'net/smtp'
Net::SMTP.new(address, port).start(helo: helo, user: user, password: password, authtype: authtype)
このメソッドにブロックを与え... -
Net
:: SMTP . start(address , port = Net :: SMTP . default _ port , tls _ verify: true , tls _ hostname: nil , helo: & # 39;localhost& # 39; , user: nil , password: nil , authtype: DEFAULT _ AUTH _ TYPE) -> Net :: SMTP (8112.0) -
新しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。
...しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。
以下と同じです。
require 'net/smtp'
Net::SMTP.new(address, port).start(helo: helo, user: user, password: password, authtype: authtype)
このメソッドにブロックを与え......ます。
authtype は使用する認証のタイプで、
シンボルで :plain, :login, :cram_md5 を指定します。
Example:
require 'net/smtp'
Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string, 'from@example.jp', 'to@example.jp'
}
@param address 接続... -
Net
:: SMTP . start(address , port = Net :: SMTP . default _ port , tls _ verify: true , tls _ hostname: nil , helo: & # 39;localhost& # 39; , user: nil , password: nil , authtype: DEFAULT _ AUTH _ TYPE) {|smtp| . . . } -> object (8112.0) -
新しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。
...しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。
以下と同じです。
require 'net/smtp'
Net::SMTP.new(address, port).start(helo: helo, user: user, password: password, authtype: authtype)
このメソッドにブロックを与え......ます。
authtype は使用する認証のタイプで、
シンボルで :plain, :login, :cram_md5 を指定します。
Example:
require 'net/smtp'
Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string, 'from@example.jp', 'to@example.jp'
}
@param address 接続... -
Net
:: SMTP # capable _ auth _ types -> [String] (8106.0) -
接続したサーバで利用可能な認証を配列で返します。
...接続したサーバで利用可能な認証を配列で返します。
返り値の配列の要素は、 'PLAIN', 'LOGIN', 'CRAM-MD5' です。
このメソッドは Net::SMTP#start などでセッションを開始
した以降にしか正しい値を返しません。... -
Net
:: SMTP # open _ message _ stream(from _ addr , *to _ addrs) {|f| . . . . } -> () (8106.0) -
メール書き込みの準備をし、書き込み先のストリームオブジェクトを ブロックに渡します。ブロック終了後、書きこんだ結果が 送られます。
...主のメールアドレス ('...@...'のかたち) 、
to_addrs には送信先メールアドレスを文字列で渡します。
require 'net/smtp'
Net::SMTP.start('smtp.example.com', 25) {|smtp|
smtp.open_message_stream('from@example.com', 'to@example.net') {|f|
f.puts 'From: fro... -
Net
:: SMTP # ready(from _ addr , *to _ addrs) {|f| . . . . } -> () (8106.0) -
メール書き込みの準備をし、書き込み先のストリームオブジェクトを ブロックに渡します。ブロック終了後、書きこんだ結果が 送られます。
...主のメールアドレス ('...@...'のかたち) 、
to_addrs には送信先メールアドレスを文字列で渡します。
require 'net/smtp'
Net::SMTP.start('smtp.example.com', 25) {|smtp|
smtp.open_message_stream('from@example.com', 'to@example.net') {|f|
f.puts 'From: fro... -
Net
:: SMTP # send _ mail(mailsrc , from _ addr , *to _ addrs) -> () (8106.0) -
メールを送信します。
...主のメールアドレス ('...@...'のかたち) 、
to_addrs には送信先メールアドレスを文字列で渡します。
require 'net/smtp'
Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string,
'from@example.com',...