Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have tried the following:

mailx -s "test" abc@xyz.com

which says bash no command found.

also have tried : Mail -s "test" abc@xyz.com

which says /usr/sbin/sendmail: No such file or directory

even though the file name is valid

share|improve this question

3 Answers 3

up vote 3 down vote accepted

For basic sending, just try echo "Body Text" | mutt -a <file> -s "test" abc@xyz.com.

Now, as Sleske mentioned, you might need to modify /etc/mail/sendmail.mc to configure this differently. But if you're just wanting to send, and not receive, E-Mails locally, and you've already got an MX record for xyz.com, I think you should be all set.

Also, given your 'command not found' issues, double check you have MTAs installed. use rpm -q sendmail or rpm -q mutt, and see if you find any packages.


--Chris

share|improve this answer

You first need to set up a local mail server, and configure it to send mails (usually by passing them on to your ISP's relaying mail server).

See e.g. http://serverfault.com/questions/137894/how-do-i-set-up-a-basic-mail-server-for-the-first-time

share|improve this answer
(  cat body.txt 
   uuencode pic.jpg pic.jpg
) | mailx -s "subject" abc@xyz.com 

try this

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.