fix sending large emails (issue 8)