When you call $smtp->datasend, you're passing the entire message body headers and all. SMTP doesn't have any notion of a messaage subject; the mail and to methods are setting the envelope sender and receiver, but those aren't duplicated inside the body of the message unless you explicitly do so yourself (by calling datasend with "From: ...\n" and the like). If you want to set a subject, just pass datasend a line "Subject: blah\n" somewhere before the body of the message.
In reply to Re^3: Setting subject with Net::SMTP
by Fletch
in thread Setting subject with Net::SMTP
by jimbobfurley
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |