Project

General

Profile

Feature #17047

Support parameters for MAIL FROM and RCPT TO

Added by c960657 (Christian Schmidt) about 2 months ago. Updated about 23 hours ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:99308]

Description

Proposal

In Net::SMTP, add support for parameters for MAIL FROM and RCPT TO, such as SMTPUTF8 and REQUIRETLS.

I suggest extending Net::SMTP#mailfrom and Net::SMTP#rcpto so they accept an additional optional Array or Hash of parameters.

For Net::SMTP#send_message and Net::SMTP#open_message_stream, I suggest that in addition to a String email address (or arrays of Strings), these methods should accept a pair (or arrays of pairs) of [addr, params], where addr is the String email address, and params is an Array or Hash of parameters.

In order for the parameters to be useful, we should expose the capabilities reported by EHLO, so capable? should be made public.

Pull request: https://github.com/ruby/ruby/pull/3359

#1

Updated by c960657 (Christian Schmidt) about 2 months ago

  • Description updated (diff)
#2

Updated by c960657 (Christian Schmidt) about 2 months ago

  • Description updated (diff)
#3

Updated by c960657 (Christian Schmidt) about 2 months ago

  • Description updated (diff)

Updated by c960657 (Christian Schmidt) about 23 hours ago

I am new to Ruby development. Please let me know if I need to do anything else to get this patch accepted.

Also available in: Atom PDF