SMTP telnet no delivery but mail app works fine

Hey, I could use a pointer here as I'm setting up smtp but after configuring dns and spf to the hosting provider I can't seem to send e-mail via them using telnet while applications such as mail on osx or webmail work. I get an ok from the smtp but no messages arrive so I'm a bit lost. This should normally work if done as shown below. I don't have access to the smtp server logs but why would the mail app work with it and not the telnet session?

These are my commands and I try this using both telnet and SSL to connect to the smtp.

220-thesmtp.com ESMTP Exim 4.85 #2 Mon, 07 Sep 2015 01:50:19 +0200
220-We do not authorize the use of this system to transport unsolicited,
220 and/or bulk e-mail.
ehlo test
250-thesmtp.com Hello test [ip]
250-SIZE 52428800
250-8BITMIME
250-PIPELINING
250-AUTH PLAIN LOGIN
250 HELP
auth login
334 zzz
yyy
334 zzz
yyy
235 Authentication succeeded

500 unrecognized command
mail from: [email protected]
250 OK
rcpt to: [email protected]
250 Accepted
data
354 Enter message, ending with "." on a line by itself
subject: from linux
hey from linux ssl telnet
.
250 OK id=1ZYabcde-000jm0-0s

Ok, so I figured this out and the server seems to have required a to and from field in the data part.

e.g.

data
to <[email protected]>
from <[email protected]
subject: mail subject

and so on...