Split SMTP API JSON into lines under 1000 chars