doubt reg mailx command

Hi,

Am trying to send mail from solaris host to my mailbox, but while executing mailx command am getting the follow error.Is this syntax corect?

#mailx -s "subject" <myid>

The flags you gave are used only when sending mail.

IF you are trying to send a single email here is one way:

mailx -s 'subject'  somebody@somewhere.com < inputtextfile

I am not getting EXACTLY what you are trying to do....