Subject: | Sending an HTML message withou attachment or alternate text fails |
Problem with distribution "Mail-SendEasy-1.2".
The following will fail with the message "Message transmission failed ( )!"
after a timeout.
Mail::SendEasy::send(to => "joe_blow@foo.com",
from => "jane_doe@foo.com",
subject => "subject",
html => "<h1>HTML Message</h1>");
Add either 'msg' or the 'anex' and the message goes through.
The error occured under both Perl 5.6.1 and 5.8.0 on HP-UX version 11.11.
The error also occured on Windows 2000 using Perl 5.6.1.
Changing the 'html' parameter above to "<h1>HTML Message</h1>\n" fixes the problem.
The problem appears to be in Mail::SendMail::_new_part( ). No newline is added to the content unless there is a boundry.