Well, if I omit the header line, it produces an error...
However, if I leave the print header line in place and comment-out my send_account() line, it shows the rest of the output correctly but does not make a visible content-type header. See my confusion?