るりまサーチ

最速Rubyリファレンスマニュアル検索!
94件ヒット [1-94件を表示] (0.055秒)
トップページ > クエリ:-[x] > クエリ:Port[x] > ライブラリ:net/smtp[x]

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method new
  4. irb/input-method gets
  5. matrix -

クラス

キーワード

検索結果

Net::SMTP.default_ssl_port -> Integer (6204.0)

デフォルトのSMTPSのポート番号(465)を返します。

デフォルトのSMTPSのポート番号(465)を返します。

Net::SMTP.default_tls_port -> Integer (6204.0)

デフォルトのSMTPSのポート番号(465)を返します。

デフォルトのSMTPSのポート番号(465)を返します。

Net::SMTP#port -> Integer (6203.0)

接続先のポート番号を返します。

接続先のポート番号を返します。

Net::SMTP.default_port -> Integer (6203.0)

SMTPのデフォルトのポート番号(25)を返します。

SMTPのデフォルトのポート番号(25)を返します。

Net::SMTP.default_submission_port -> Integer (6203.0)

デフォルトのサブミッションポート番号(587)を返します。

デフォルトのサブミッションポート番号(587)を返します。

絞り込み条件を変える

Net::SMTP.new(address, port = Net::SMTP.default_port) -> Net::SMTP (326.0)

新しい SMTP オブジェクトを生成します。 address はSMTPサーバーのFQDNで、 port は接続するポート番号です。 ただし、このメソッドではまだTCPの接続はしません。 Net::SMTP#start で接続します。

...新しい SMTP オブジェクトを生成します。
address はSMTPサーバーのFQDNで、
port
は接続するポート番号です。
ただし、このメソッドではまだTCPの接続はしません。
Net::SMTP#start で接続します。

オブジェクトの生成と接続を同時...
...にしたい場合には
Net::SMTP.start を代わりに使ってください。

@param address 接続先のSMTPサーバの文字列
@param port 接続ポート番号

@see Net::SMTP.start, Net::SMTP#start...

Net::SMTP.start(address, port = Net::SMTP.default_port, helo = 'localhost', user = nil, password = nil, authtype = DEFAULT_AUTH_TYPE) -> Net::SMTP (322.0)

新しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。

...ブジェクトを生成し、サーバに接続し、セッションを開始します。


以下と同じです。

require 'net/smtp'
Net::SMTP.new(address, port).start(helo: helo, user: user, password: password, authtype: authtype)

このメソッドにブロックを与えた場合には...
...す。

Example:

require 'net/smtp'

Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string, 'from@example.jp', 'to@example.jp'
}

@param address 接続するサーバをホスト名もしくはIPアドレスで指定します
@param port ポート番号、デフォル...
...(:plain, :login, :cram_md5 のいずれか)

@raise TimeoutError 接続時にタイムアウトした場合に発生します
@raise Net::SMTPUnsupportedCommand TLSをサポートしていないサーバでTLSを使おうとした場合に発生します
@raise Net::SMTPServerBusy SMTPエラーコ...

Net::SMTP.start(address, port = Net::SMTP.default_port, helo = 'localhost', user = nil, password = nil, authtype = DEFAULT_AUTH_TYPE) {|smtp| .... } -> object (322.0)

新しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。

...ブジェクトを生成し、サーバに接続し、セッションを開始します。


以下と同じです。

require 'net/smtp'
Net::SMTP.new(address, port).start(helo: helo, user: user, password: password, authtype: authtype)

このメソッドにブロックを与えた場合には...
...す。

Example:

require 'net/smtp'

Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string, 'from@example.jp', 'to@example.jp'
}

@param address 接続するサーバをホスト名もしくはIPアドレスで指定します
@param port ポート番号、デフォル...
...(:plain, :login, :cram_md5 のいずれか)

@raise TimeoutError 接続時にタイムアウトした場合に発生します
@raise Net::SMTPUnsupportedCommand TLSをサポートしていないサーバでTLSを使おうとした場合に発生します
@raise Net::SMTPServerBusy SMTPエラーコ...

Net::SMTP.start(address, port = Net::SMTP.default_port, tls_verify: true, tls_hostname: nil, helo: 'localhost', user: nil, password: nil, authtype: DEFAULT_AUTH_TYPE) -> Net::SMTP (322.0)

新しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。

...ブジェクトを生成し、サーバに接続し、セッションを開始します。


以下と同じです。

require 'net/smtp'
Net::SMTP.new(address, port).start(helo: helo, user: user, password: password, authtype: authtype)

このメソッドにブロックを与えた場合には...
...す。

Example:

require 'net/smtp'

Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string, 'from@example.jp', 'to@example.jp'
}

@param address 接続するサーバをホスト名もしくはIPアドレスで指定します
@param port ポート番号、デフォル...
...(:plain, :login, :cram_md5 のいずれか)

@raise TimeoutError 接続時にタイムアウトした場合に発生します
@raise Net::SMTPUnsupportedCommand TLSをサポートしていないサーバでTLSを使おうとした場合に発生します
@raise Net::SMTPServerBusy SMTPエラーコ...

Net::SMTP.start(address, port = Net::SMTP.default_port, tls_verify: true, tls_hostname: nil, helo: 'localhost', user: nil, password: nil, authtype: DEFAULT_AUTH_TYPE) {|smtp| ... } -> object (322.0)

新しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。

...ブジェクトを生成し、サーバに接続し、セッションを開始します。


以下と同じです。

require 'net/smtp'
Net::SMTP.new(address, port).start(helo: helo, user: user, password: password, authtype: authtype)

このメソッドにブロックを与えた場合には...
...す。

Example:

require 'net/smtp'

Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string, 'from@example.jp', 'to@example.jp'
}

@param address 接続するサーバをホスト名もしくはIPアドレスで指定します
@param port ポート番号、デフォル...
...(:plain, :login, :cram_md5 のいずれか)

@raise TimeoutError 接続時にタイムアウトした場合に発生します
@raise Net::SMTPUnsupportedCommand TLSをサポートしていないサーバでTLSを使おうとした場合に発生します
@raise Net::SMTPServerBusy SMTPエラーコ...

絞り込み条件を変える

Net::SMTP.start(address, port = Net::SMTP.default_port, helo = 'localhost', user = nil, password = nil, authtype = DEFAULT_AUTH_TYPE) -> Net::SMTP (318.0)

新しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。

...ブジェクトを生成し、サーバに接続し、セッションを開始します。


以下と同じです。

require 'net/smtp'
Net::SMTP.new(address, port).start(helo, user, password, authtype)

このメソッドにブロックを与えた場合には、新しく作られた Net::SMT...
...す。

Example:

require 'net/smtp'

Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string, 'from@example.jp', 'to@example.jp'
}

@param address 接続するサーバをホスト名もしくはIPアドレスで指定します
@param port ポート番号、デフォル...
...(:plain, :login, :cram_md5 のいずれか)

@raise TimeoutError 接続時にタイムアウトした場合に発生します
@raise Net::SMTPUnsupportedCommand TLSをサポートしていないサーバでTLSを使おうとした場合に発生します
@raise Net::SMTPServerBusy SMTPエラーコ...

Net::SMTP.start(address, port = Net::SMTP.default_port, helo = 'localhost', user = nil, password = nil, authtype = DEFAULT_AUTH_TYPE) {|smtp| .... } -> object (318.0)

新しい SMTP オブジェクトを生成し、サーバに接続し、セッションを開始します。

...ブジェクトを生成し、サーバに接続し、セッションを開始します。


以下と同じです。

require 'net/smtp'
Net::SMTP.new(address, port).start(helo, user, password, authtype)

このメソッドにブロックを与えた場合には、新しく作られた Net::SMT...
...す。

Example:

require 'net/smtp'

Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string, 'from@example.jp', 'to@example.jp'
}

@param address 接続するサーバをホスト名もしくはIPアドレスで指定します
@param port ポート番号、デフォル...
...(:plain, :login, :cram_md5 のいずれか)

@raise TimeoutError 接続時にタイムアウトした場合に発生します
@raise Net::SMTPUnsupportedCommand TLSをサポートしていないサーバでTLSを使おうとした場合に発生します
@raise Net::SMTPServerBusy SMTPエラーコ...