in reply to Re: Error in MIME::Lite?
in thread Error in MIME::Lite?
The problem is that the MIME::Lite->attach() creates a new part with no content unless the content-type is already set to multipart. This is not legal as far as MIME::Lite->send() is concerned.$msg->build(to => 'user1 <user@fqdn.org>', from => 'user2 <user2@fqdn. +org>', subject => 'a message subject'); % ./testmail.pp no data in this part at ./testmail.pp line 21.
I tried setting content-type but that breaks the MIME formatting of the message (all the steps that attach() is doing unless it detects multipart).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Error in MIME::Lite?
by Anonymous Monk on Jul 29, 2017 at 20:36 UTC | |
by littlelion (Novice) on Jul 29, 2017 at 21:00 UTC | |
by Anonymous Monk on Jul 29, 2017 at 21:18 UTC | |
by littlelion (Novice) on Jul 30, 2017 at 00:37 UTC | |
by Anonymous Monk on Jul 30, 2017 at 00:43 UTC |