Presumably the cron job is owned by the same user you were logged in as when running it by hand. Cron will run the job from that user's home dir. Make sure it works as expected there. Also note that cron will run with a specific controlled environment that may differ from that of your login shell. In particular any variables set or modified by your shell profiles will not be set.
Check your cron and/or sendmail logs to see if there's anything interesting there.
There could be additional text (whitespace?) on the same line as the `<submit>' that is being printed, causing the flush as Mark mentioned. Or it's simply a difference in how Vortex counts lines vs. your editor; sometimes one or the other gets confused or differs.