in reply to New Mail::Sender not working?

You are supposed to use ->Body(), ->Part() or ->Attach() only if you used ->OpenMultipart() to open the message. The ->Open() starts just a plain old simple email message without any MIME parts or attachments.

I guess I should throw/report an error if you use any of these in a single-part message.

Update: Seems I already do that. But of course since you did not test the return value of $sender->Body() ...
The reason why this did work before and doesn't work now is that now I close the connection if there is an error like this.

BTW: Take a look at the new on_errors option of the constructor. It may be easier to handle the errors if you ask Mail::Sender to throw exceptions which you may then catch in an outer block/subroutine.

Jenda
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
   -- Rick Osborne

Edit by castaway: Closed small tag in signature