Also, this lynx-spawning to convert HTML to plain text is happening many times: once for each chunk of emails sent, rather than once per email message in the database.  You've got a default chunk size of 10, which means to send 1000 emails, you'll spawn lynx 100 times.  That seems unwise.