New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow sending messages without a body #2393
Comments
Luciana Moreira (migrated from Bugzilla): patch.txt
|
Sebb (migrated from Bugzilla):
|
Sebb (migrated from Bugzilla): java.io.IOException: No content if the message body is suppressed and there are no attached files. Perhaps the checkbox should only be enabled if there is at least one file? |
Sebb (migrated from Bugzilla): message.setText(""); This results in an empty body, with the headers: MIME-Version: 1.0 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). |
Luciana Moreira (migrated from Bugzilla): Good to see that you are looking into it ;) |
Sebb (migrated from Bugzilla): URL: http://svn.apache.org/viewvc?rev=991510&view=rev Modified: Please re-open the bug if there are any issues with the changes. |
Luciana Moreira (Bug 49775):
Similar to #2387 I have created a patch to send messages without a body. The patch enhances the functionality of the SMTP Sampler in JMeter.
This patch is attached, and consists of a simple check box to determine if the body should be empty or not.
OS: Linux
The text was updated successfully, but these errors were encountered: