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

--- Comment #4 from Luciana Moreira <[email protected]> 2010-10-06 
10:09:12 EDT ---
Thank you very much for the quick reply.
In regard to comment 3, I also saw that same error in my own tests. I believe
your solution message.setText(""); is the correct one.

>From what I see in the code, the need for the "plain body" checkbox is
doubtful. Am I correct that we can achieve the exact same behavior of the check
box simply by not adding any text to the message area and not add any
attachment?

By selecting the checkbox, I expected JMeter to create a plain body and not use
the text in the message area. If we use the text in there, then it is not plain
body anymore.

So I believe the correct behaviour should rather be:

•  If checkbox Send plain body is checked and Attach files is empty 
    ==> SMTP sampler sends a message with content message.setText("")

•  If checkbox Send plain body is checked and Attach files is not empty
   ==> SMTP sampler send a message with a "send-as-is" for attach files
(mailBody is ignored)

Summarizing, I see no reason to add message text if we select plain body. This
is what I attempted to do with my 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