![]() ![]() i want to monitor how many emails it has sent out, how many sent successfully, how many rejected and how many deffered. I want to monitor one single email user of my domain. Once you’ve confirmed that you have uuencode, send the email with an attachment as shown below.įirst congrats on your daughter’s birth. So, install the sharutils as shown below. On RedHat (and related distributions), uuencode is part of the sharutils package. To send an attachment from the email, use uuencode command. $ cat body-message.txt | mail -s "Email testing from Linux" 2. It is very easy to send an email from Linux command line.Ĭc: you want to read the body text from a file (for example, body-message.txt), send the email as shown below. (period) in a separate line to indicate the body of the text is over. Typically you would send an email from the Linux command line with a subject line and body text as shown below. Question: How do I send an email with attachment from Linux command-line (or shell script)? Also, can I send both attachment and body text together in an email from Linux command-line?Īnswer: You can send both attachment and body text (or just the attachment with a subject line) from Linux command line as explained below.
0 Comments
Leave a Reply. |