Project

General

Profile

Actions

Feature #1349

closed

Net::SMTP open_message and send_message always require from_addr, *to_addrs

Added by stevej_vigilan (Steve Jorgensen) almost 15 years ago. Updated almost 13 years ago.

Status:
Rejected
Target version:
-
[ruby-core:23112]

Description

=begin
The open_message and send_message methods for Net::SMTP each require a from_addr argument and at least one to_addr argument in all cases, even though these values may already be contained in headers in the message stream.

This becomes an issue when, for instance, a batch of message streams has been written to .eml files, and we now just want to send them. Currently, we have to parse the headers of each message to retrieve the e-mail addresses to pass the values as argument to open_message or send_message.

I think the preferred behavior would be to have from_addr be an optional argument, and only check whether from_addr and to_addr values are needed after the message header lines have been read and found not to include the values.

(Sorry - I posed this first at rubyforge.org before noticing the admonishment not to report bugs there)
=end

Actions #1

Updated by marcandre (Marc-Andre Lafortune) over 14 years ago

  • Category set to lib
  • Assignee set to aamine (Minero Aoki)

=begin

=end

Actions #2

Updated by nobu (Nobuyoshi Nakada) almost 14 years ago

  • Status changed from Open to Rejected

=begin
I don't consider it should be done in SMTP layer.
What you need is another higher layer library.
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0