email address starting with dash

Hi All,

I am trying to send an email to a group email address that starting with a dash '-it-group', then I am getting the error message " bin/mail: illegal option -- G."

If email address starting without dash, it works. below is the command. I ran the same command it works on HP, but it does not work for AIX server.

Any help would be highly appreciated!

Thanks in advance,
Akaq

echo 'testing'| /bin/mail -s 'testing : warning message' "-IT-group@exch.anywhere.com"

Try the -- option to indicate end of options. This works on AIX 6.1:

>mail -- '-IT-group@exch.example.com'
Subject: