Find the answer to your Linux question:
Results 1 to 4 of 4
hi all How do I send email from command prompt? i tried this Code: [root@localhost ~]# mutt -s "Test mail" -a /root/Desktop/email.txt XXXXX@yahoo.co.in < /root/Desktop/email.txt Error sending message, child exited ...
  1. #1
    Linux Newbie
    Join Date
    Feb 2007
    Location
    hyderabad, india
    Posts
    247

    How do I send email from command prompt?

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

    thank you in advance

  2. #2
    Just Joined!
    Join Date
    Apr 2007
    Posts
    11

    Sendmail

    Hi,

    Take some effort to read basic things. You can use mail command to send a mail through command prompt. Read man pages to know about command.


    Quote Originally Posted by munna_dude
    hi all
    How do I send email from command prompt?
    i tried this
    Code:
    [root@localhost ~]# mutt -s "Test mail" -a /root/Desktop/email.txt XXXXX@yahoo.co.in < /root/Desktop/email.txt
    Error sending message, child exited 71 (Operating system error.).
    Segmentation fault
    [root@localhost ~]#
    is there any way to send like this

    thank you in advance

  3. #3
    Linux Newbie
    Join Date
    Feb 2007
    Location
    hyderabad, india
    Posts
    247

    thank you for quick replay

    Quote Originally Posted by Faizsir
    Hi,

    Take some effort to read basic things. You can use mail command to send a mail through command prompt. Read man pages to know about command.
    /bin/mail -s "what r u doing" "XXXX@yahoo.co.in" < /root/Desktop/email.txt

    it says
    [root@localhost ~]# /bin/mail -s "what r u doing" "munna_dude@yahoo.co.in" < /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

  4. #4
    Just Joined!
    Join Date
    Apr 2007
    Posts
    18
    You have problems with configuring the sendmail. Have you properly set it up ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...