From: Minero Aoki Date: 2001-03-20T03:42:29+09:00 Subject: [ruby-talk:12878] Re: How do I send messages with SMTP with an additional name? Hi, In mail "[ruby-talk:12874] How do I send messages with SMTP with an additional name?" Tammo Freese wrote: > currently I am playing with Net::SMTP. I tried the following code in IRB: > > Net::SMTP.start("polaris-neu.offis.uni-oldenburg.de") do |smtp| > smtp.sendmail(msg, '"Tammo Freese" ', > 'tammo.freese@offis.de') > end > > But the From: part of the mail is always tammo.freese@offis.de, without the > name in '"'. Is there a workaround for this? SMTP-From is different from From: field of email. From: field is a content of email and SMTP-From is delivery data. And Net::SMTP is not a message composer but (only) a sender because composing email message is out of range for "SMTP" class. Minero Aoki