On Fri, Feb 24, 2017 at 2:50 AM, Luca Ferrari <fluca1...@infinito.it> wrote:

> On Fri, Feb 24, 2017 at 7:51 AM, ToddAndMargo <toddandma...@zoho.com>
> wrote:
> > Am I blind or is there nowhere to set the subject of an eMail
> > in Net::SMTP?
> I suspect it is implementing a quite low-level interface: smtp does
> not know anything about a subject, it simply sends it as a line
> "Subject: foo bar"
> followed by an empty line a your message body. In other words: the
> subject is in the payload before your message content.

Same thing as when you asked about attaching files; I think I mentioned at
the time it also didn't include headers. Subject: is probably the most
important header --- although many mail systems will reject it if it also
doesn't have From: and preferably Date: and Message-Id:.

You might poke around to see if there is a module that implements at least
RFC822 and preferably RFC2422 to build a proper message.

brandon s allbery kf8nh                               sine nomine associates
allber...@gmail.com                                  ballb...@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net

Reply via email to