るりまサーチ

最速Rubyリファレンスマニュアル検索!
44件ヒット [1-44件を表示] (0.032秒)
トップページ > クエリ:require[x] > クエリ:default_port[x]

別のキーワード

  1. uri default_port
  2. _builtin default
  3. generic default_port
  4. socket ai_default
  5. socket ip_default_multicast_ttl

ライブラリ

クラス

検索結果

URI::Generic.default_port -> Integer | nil (18149.0)

スキームに対応するデフォルトのポート番号を整数で返します。

...す。

require
'uri'
URI::Generic.default_port # => nil
URI::FTP.default_port # => 21
URI::HTTP.default_port # => 80
URI::HTTPS.default_port # => 443
URI::LDAP.default_port # => 389
URI::LDAPS.default_port # => 636
URI::MailTo.default_port...

Net::SMTP.start(address, port = Net::SMTP.default_port, helo = 'localhost', user = nil, password = nil, authtype = DEFAULT_AUTH_TYPE) -> Net::SMTP (116.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 addr...

Net::SMTP.start(address, port = Net::SMTP.default_port, helo = 'localhost', user = nil, password = nil, authtype = DEFAULT_AUTH_TYPE) {|smtp| .... } -> object (116.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 addr...

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 (116.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 addr...

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 (116.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 addr...

絞り込み条件を変える

Net::SMTP.start(address, port = Net::SMTP.default_port, helo = 'localhost', user = nil, password = nil, authtype = DEFAULT_AUTH_TYPE) -> Net::SMTP (114.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 addr...

Net::SMTP.start(address, port = Net::SMTP.default_port, helo = 'localhost', user = nil, password = nil, authtype = DEFAULT_AUTH_TYPE) {|smtp| .... } -> object (114.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 addr...