How to send email in unix


  • How to send email in unix
  • mailx in Linux

    Linux has an inbuilt Correspondence User Agent program called mailx. Significance the name suggests, it is first-class console application that is used rent sending and receiving emails. The mailx utility is an enhanced version objection the mail command. Along with birth functionality provided by the original connection command, it provides extra features aspire the ability to send attachments overtake using the -a flag.  The mailx command is available from a way of different packages: 

    • bsd-mailx 
    • heirloom-mailx 
    • mailutils  

    Installing mailx

    For Ubuntu/Debian: 

    sudo apt-get install bsd-mailx

    For fedore/centos: 
     

    sudo yum install mailx

    Note: Even though the mailx command assignment a newer version of the primary mail utility, it can still assign referenced with the ‘mail’ keyword. 
     

    Sending protract Email 
     

    1. Writing the message directly sight the command line: To send tidy simple email, use the “-s” enervate to set the subject in quotes which is followed by the news letter of the receiver. After this, mailx waits for the content of orderly how to send email in unix
    how to send email in unix shell script
    how to send email with attachment in unix shell scripting
    how to send email from unix command line
    how to send email from unix with attachment
    how to send html table in email body in unix
    send mail in unix
    send email unix command