https://issues.apache.org/bugzilla/show_bug.cgi?id=49775

--- Comment #4 from Sebb <[email protected]> 2010-08-20 15:14:34 EDT ---
If there is no body and no files, it looks like the code needs to do the
following to avoid the error:

message.setText("");

This results in an empty body, with the headers:

MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I assume that this is what you were aiming for?

==

Given that it might be useful to send SMTP messages which are not
multipart/mixed, maybe it would be better to change the code so that if the
flag is set then the code uses:

   message.setText(mailBody)

This would only make sense if there were no files.

Though if the mailBody was emtpy, perhaps one could allow a single file and
send that as the body.

If you think this makes sense, I'm happy to make the changes (i.e. no need for
you to redo the patch).

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to