How do I send email from command prompt?

hi all
How do I send email from command prompt?
i tried this
[root@localhost ~]# mutt -s "Test mail" -a /root/Desktop/email1.txt XXXXX@yahoo.co.in < /root/Desktop/email.txt
Error sending message, child exited 71 (Operating system error.).
Segmentation fault
[root@localhost ~]#
and also

root@localhost ~]# /bin/mail -s "what r u doing" "email id removed" < /root/Desktop/email.txt
/etc/mail/submit.cf: line 545: fileclass: cannot open '/etc/mail/trusted-users': World writable directory
[root@localhost ~]#

can you help me

thank you in advance