Revert "TRQ-2334. Change the sendmail pipe to use the temporary input file instead of pipes. Using pipes was resulting in stuck sendmail processes."

This reverts commit 0f607c90dde0a7f997dddba7370eb19bf98a6045.