Hi,

On 24.02.2017 07:51, ToddAndMargo wrote:
> Am I blind or is there nowhere to set the subject of an eMail
> in Net::SMTP?
> 
> https://github.com/retupmoca/P6-Net-SMTP

You're not blind, just thinking at the wrong level. Net::SMTP expects
you to have an email string that contains both the headers and the body
($email in the README), and the subject is part of the headers.

The only reason that $from and @to have a separate interface is that
SMTP handles them separately.

Cheers,
Moritz


-- 
Moritz Lenz
https://deploybook.com/ -- https://perlgeek.de/ -- https://perl6.org/

Reply via email to