genkgo / mail

Library to send e-mails over different transports and protocols (like SMTP and IMAP) using immutable messages and streams. Also includes SMTP server.
https://mail.readthedocs.io/
Other
402 stars 21 forks source link

Add method From::fromAddress() #26

Closed mpyw closed 7 years ago

mpyw commented 7 years ago

Ref. Too many constructors · Issue #24 · genkgo/mail

frederikbosch commented 7 years ago

Hmm. If we add an argument, the once clear function name, will not be clear afterwards. fromEmailAddress should only accept an e-mail address. So I cannot agree here.

What about this.

To::fromAddress('local@domain.com', 'name');
mpyw commented 7 years ago

Nice solution, I'll apply it