<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Linux mail command examples &#8211; send mails from command line	</title>
	<atom:link href="https://www.binarytides.com/linux-mail-command-examples/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.binarytides.com/linux-mail-command-examples/</link>
	<description>News, Technology, Entertainment and more</description>
	<lastBuildDate>Thu, 15 Aug 2024 09:51:51 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>
	<item>
		<title>
		By: Moonwatcher		</title>
		<link>https://www.binarytides.com/linux-mail-command-examples/comment-page-1/#comment-319893</link>

		<dc:creator><![CDATA[Moonwatcher]]></dc:creator>
		<pubDate>Mon, 21 Jun 2021 08:27:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=5872#comment-319893</guid>

					<description><![CDATA[Aha! Maybe I understand? This not &#039;email&#039;, but mail meaning a message sent to someone who works in the same workplace, for example? If this is the case it&#039;s of no use to me at home -- unless of couse I wish to send messages to myself!

Am I right?]]></description>
			<content:encoded><![CDATA[<p>Aha! Maybe I understand? This not &#8217;email&#8217;, but mail meaning a message sent to someone who works in the same workplace, for example? If this is the case it&#8217;s of no use to me at home &#8212; unless of couse I wish to send messages to myself!</p>
<p>Am I right?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Moonwatcher		</title>
		<link>https://www.binarytides.com/linux-mail-command-examples/comment-page-1/#comment-319881</link>

		<dc:creator><![CDATA[Moonwatcher]]></dc:creator>
		<pubDate>Mon, 21 Jun 2021 05:30:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=5872#comment-319881</guid>

					<description><![CDATA[Hi Silver Moon

Your article is beautifully explained, but the mail I sent never showed up. I checked: I did it the way you said.

I have had success (sending) with alpine, though I can&#039;t understand most of that program!

Moonwatcher]]></description>
			<content:encoded><![CDATA[<p>Hi Silver Moon</p>
<p>Your article is beautifully explained, but the mail I sent never showed up. I checked: I did it the way you said.</p>
<p>I have had success (sending) with alpine, though I can&#8217;t understand most of that program!</p>
<p>Moonwatcher</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Core Solutions		</title>
		<link>https://www.binarytides.com/linux-mail-command-examples/comment-page-1/#comment-256212</link>

		<dc:creator><![CDATA[Core Solutions]]></dc:creator>
		<pubDate>Sat, 06 Jun 2020 13:52:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=5872#comment-256212</guid>

					<description><![CDATA[Hey,

Really liking your website!

If you need any devops services please get in touch, we&#039;d be 
happy to help you out.]]></description>
			<content:encoded><![CDATA[<p>Hey,</p>
<p>Really liking your website!</p>
<p>If you need any devops services please get in touch, we&#8217;d be<br />
happy to help you out.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Angelo		</title>
		<link>https://www.binarytides.com/linux-mail-command-examples/comment-page-1/#comment-250258</link>

		<dc:creator><![CDATA[Angelo]]></dc:creator>
		<pubDate>Sun, 10 May 2020 12:55:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=5872#comment-250258</guid>

					<description><![CDATA[$ mail -s &quot;This is the subject&quot; somebody@example.com &#060;&#060;&#060; &#034;This is the message&#034;

In the example above, using double quotes for the message, I can include $ variables. Now, can I somehow get down to the second line (an enter) in the body of the message?

Thank you.]]></description>
			<content:encoded><![CDATA[<p>$ mail -s &#8220;This is the subject&#8221; <a href="mailto:somebody@example.com">somebody@example.com</a> &lt;&lt;&lt; &quot;This is the message&quot;</p>
<p>In the example above, using double quotes for the message, I can include $ variables. Now, can I somehow get down to the second line (an enter) in the body of the message?</p>
<p>Thank you.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Anatoly Rozhkov		</title>
		<link>https://www.binarytides.com/linux-mail-command-examples/comment-page-1/#comment-200686</link>

		<dc:creator><![CDATA[Anatoly Rozhkov]]></dc:creator>
		<pubDate>Mon, 01 Jul 2019 21:29:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=5872#comment-200686</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/linux-mail-command-examples/comment-page-1/#comment-200685&quot;&gt;Anatoly Rozhkov&lt;/a&gt;.

I&#039;ve figured out how to fix it, and found that ssmtp may be interfering postfix 
I&#039;ve updated postfix and finally managed to send a message with end status 0, yet... it never arrived]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/linux-mail-command-examples/comment-page-1/#comment-200685">Anatoly Rozhkov</a>.</p>
<p>I&#8217;ve figured out how to fix it, and found that ssmtp may be interfering postfix<br />
I&#8217;ve updated postfix and finally managed to send a message with end status 0, yet&#8230; it never arrived</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Anatoly Rozhkov		</title>
		<link>https://www.binarytides.com/linux-mail-command-examples/comment-page-1/#comment-200685</link>

		<dc:creator><![CDATA[Anatoly Rozhkov]]></dc:creator>
		<pubDate>Mon, 01 Jul 2019 21:04:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=5872#comment-200685</guid>

					<description><![CDATA[cannot send message: Process exited with a non-zero status

why does this keep happening, I&#039;ve tried like over 10 different walk-throughs on how to configure emails, and all of them have ended with this message]]></description>
			<content:encoded><![CDATA[<p>cannot send message: Process exited with a non-zero status</p>
<p>why does this keep happening, I&#8217;ve tried like over 10 different walk-throughs on how to configure emails, and all of them have ended with this message</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Arpit		</title>
		<link>https://www.binarytides.com/linux-mail-command-examples/comment-page-1/#comment-199695</link>

		<dc:creator><![CDATA[Arpit]]></dc:creator>
		<pubDate>Fri, 21 Jun 2019 17:15:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=5872#comment-199695</guid>

					<description><![CDATA[I am unable to send mail using sendmail to a particular email address(Distribution list). Please help me.
Server details:- Linux 2.6.32-754.11.1.el6.x86_64 #1 SMP Tue Jan 22 17:25:23 EST 2019 x86_64 x86_64 x86_64 GNU/Linux

Part of Code:-
email=abc@gmail.com
echo From: $FROM &#062; $MAIL_FILE
echo Cc: $CC     &#062;&#062; $MAIL_FILE
echo To: $TO     &#062;&#062; $MAIL_FILE
echo Subject: &quot;Notification:   &#062;&#062; $MAIL_FILE
...
...
/usr/lib/sendmail  -t &#060; $MAIL_FILE]]></description>
			<content:encoded><![CDATA[<p>I am unable to send mail using sendmail to a particular email address(Distribution list). Please help me.<br />
Server details:- Linux 2.6.32-754.11.1.el6.x86_64 #1 SMP Tue Jan 22 17:25:23 EST 2019 x86_64 x86_64 x86_64 GNU/Linux</p>
<p>Part of Code:-<br />
email=abc@gmail.com<br />
echo From: $FROM &gt; $MAIL_FILE<br />
echo Cc: $CC     &gt;&gt; $MAIL_FILE<br />
echo To: $TO     &gt;&gt; $MAIL_FILE<br />
echo Subject: &#8220;Notification:   &gt;&gt; $MAIL_FILE<br />
&#8230;<br />
&#8230;<br />
/usr/lib/sendmail  -t &lt; $MAIL_FILE</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ramya Somuri		</title>
		<link>https://www.binarytides.com/linux-mail-command-examples/comment-page-1/#comment-166971</link>

		<dc:creator><![CDATA[Ramya Somuri]]></dc:creator>
		<pubDate>Fri, 14 Sep 2018 21:40:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=5872#comment-166971</guid>

					<description><![CDATA[How to send an email to distribution list using mail?]]></description>
			<content:encoded><![CDATA[<p>How to send an email to distribution list using mail?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: mangapojke		</title>
		<link>https://www.binarytides.com/linux-mail-command-examples/comment-page-1/#comment-165383</link>

		<dc:creator><![CDATA[mangapojke]]></dc:creator>
		<pubDate>Thu, 02 Aug 2018 10:46:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=5872#comment-165383</guid>

					<description><![CDATA[Hi 
Very nice article!  try to mail all recipients from a text file &quot;mail.list  which look like that 
pro@mail.com,part@email.com,lkp@party.com,gunmar@dungeos.com,blinkus@troll.com etc 

and command:
M=&quot;mail.list&quot;
mail -s &quot;monthly logs&quot;  &quot;$M&quot;  &#060; /var/log/monthly_check.log]]></description>
			<content:encoded><![CDATA[<p>Hi<br />
Very nice article!  try to mail all recipients from a text file &#8220;mail.list  which look like that<br />
<a href="mailto:pro@mail.com">pro@mail.com</a>,part@email.com,lkp@party.com,gunmar@dungeos.com,blinkus@troll.com etc </p>
<p>and command:<br />
M=&#8221;mail.list&#8221;<br />
mail -s &#8220;monthly logs&#8221;  &#8220;$M&#8221;  &lt; /var/log/monthly_check.log</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: rtt		</title>
		<link>https://www.binarytides.com/linux-mail-command-examples/comment-page-1/#comment-164701</link>

		<dc:creator><![CDATA[rtt]]></dc:creator>
		<pubDate>Tue, 10 Jul 2018 20:31:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=5872#comment-164701</guid>

					<description><![CDATA[Excellent article I don&#039;t think I&#039;ve seen one that is a comprehensive as this.  Using the mail command is something I find helpful for shell scripting output reports for certain processes etc...
I&#039;ve made a similar guide here and also gave your article here a link and credit: http://realtechtalk.com/mail_command_line_examples_of_how_to_send_an_email_using_Linux_Unix_and_the_Bash_Shell_or_Scripting-2021-articles]]></description>
			<content:encoded><![CDATA[<p>Excellent article I don&#8217;t think I&#8217;ve seen one that is a comprehensive as this.  Using the mail command is something I find helpful for shell scripting output reports for certain processes etc&#8230;<br />
I&#8217;ve made a similar guide here and also gave your article here a link and credit: <a href="http://realtechtalk.com/mail_command_line_examples_of_how_to_send_an_email_using_Linux_Unix_and_the_Bash_Shell_or_Scripting-2021-articles" rel="nofollow ugc">http://realtechtalk.com/mail_command_line_examples_of_how_to_send_an_email_using_Linux_Unix_and_the_Bash_Shell_or_Scripting-2021-articles</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: s gopi krishnan		</title>
		<link>https://www.binarytides.com/linux-mail-command-examples/comment-page-1/#comment-157203</link>

		<dc:creator><![CDATA[s gopi krishnan]]></dc:creator>
		<pubDate>Sun, 08 Apr 2018 16:02:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=5872#comment-157203</guid>

					<description><![CDATA[hi
I need to mail the below information, How to capture and send mail. kindly help
mail -s &#124;&quot;GG Daily Status Report&quot; xxxxx@anc.com

GGSCI&#062;info all
Manager Prgname   Status        Lag                    CHKPT
Extract    EX_R01    Running   00:00:00 00   00:00:00]]></description>
			<content:encoded><![CDATA[<p>hi<br />
I need to mail the below information, How to capture and send mail. kindly help<br />
mail -s |&#8221;GG Daily Status Report&#8221; <a href="mailto:xxxxx@anc.com">xxxxx@anc.com</a></p>
<p>GGSCI&gt;info all<br />
Manager Prgname   Status        Lag                    CHKPT<br />
Extract    EX_R01    Running   00:00:00 00   00:00:00</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: pavlos		</title>
		<link>https://www.binarytides.com/linux-mail-command-examples/comment-page-1/#comment-156281</link>

		<dc:creator><![CDATA[pavlos]]></dc:creator>
		<pubDate>Thu, 15 Mar 2018 01:21:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=5872#comment-156281</guid>

					<description><![CDATA[$ sudo apt install mutt

(installed)

$ echo &quot;This is mutt from universe&quot; &#124; mutt -s &quot;This is mutts subject&quot; kairis@gmail.com
Error sending message, child exited 127 (Exec error.).

Not working ...]]></description>
			<content:encoded><![CDATA[<p>$ sudo apt install mutt</p>
<p>(installed)</p>
<p>$ echo &#8220;This is mutt from universe&#8221; | mutt -s &#8220;This is mutts subject&#8221; <a href="mailto:kairis@gmail.com">kairis@gmail.com</a><br />
Error sending message, child exited 127 (Exec error.).</p>
<p>Not working &#8230;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Abdifatah Ciilka		</title>
		<link>https://www.binarytides.com/linux-mail-command-examples/comment-page-1/#comment-151509</link>

		<dc:creator><![CDATA[Abdifatah Ciilka]]></dc:creator>
		<pubDate>Sun, 14 Jan 2018 22:17:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=5872#comment-151509</guid>

					<description><![CDATA[This article is perfect 
I get more benefits thanks a lot...]]></description>
			<content:encoded><![CDATA[<p>This article is perfect<br />
I get more benefits thanks a lot&#8230;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: selvakumar		</title>
		<link>https://www.binarytides.com/linux-mail-command-examples/comment-page-1/#comment-127587</link>

		<dc:creator><![CDATA[selvakumar]]></dc:creator>
		<pubDate>Mon, 21 Aug 2017 17:49:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=5872#comment-127587</guid>

					<description><![CDATA[Hey..I&#039;ve ran multiple comment into single line..using &#038;&#038;. then i got 2 line output.

pwd &#038;&#038; ls -altr &#124; grep *INTD437*

when try to send mail of 2 line output..pwd &#038;&#038; ls -l  &#124; grep *INT* &#124; mail -s &quot;file output&quot; home@mail.com

I&#039;m only getting 1st line output in the mail. Can you suggest on this.]]></description>
			<content:encoded><![CDATA[<p>Hey..I&#8217;ve ran multiple comment into single line..using &amp;&amp;. then i got 2 line output.</p>
<p>pwd &amp;&amp; ls -altr | grep *INTD437*</p>
<p>when try to send mail of 2 line output..pwd &amp;&amp; ls -l  | grep *INT* | mail -s &#8220;file output&#8221; <a href="mailto:home@mail.com">home@mail.com</a></p>
<p>I&#8217;m only getting 1st line output in the mail. Can you suggest on this.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Dustin		</title>
		<link>https://www.binarytides.com/linux-mail-command-examples/comment-page-1/#comment-125986</link>

		<dc:creator><![CDATA[Dustin]]></dc:creator>
		<pubDate>Fri, 04 Aug 2017 14:04:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=5872#comment-125986</guid>

					<description><![CDATA[Regarding BCC and CC addresses when sending from a single line. I was trying to use the syntax above to send to CC and BCC addresses, but all the addresses ended up being in the To: field of the email. After reading documentation for GNU Mailutils, I found that you need to specify options first and then the address list.

$ mail [option...] [address...]

So instead of:
$ mail -s &quot;Hello World&quot; user1@example.com -c usertocc@example.com -b usertobcc@example.com

I had to do:
$ mail -s &quot;Hello World&quot; -c usertocc@example.com -b usertobcc@example.com user1@example.com 

Hopefully this helps someone out in the future.]]></description>
			<content:encoded><![CDATA[<p>Regarding BCC and CC addresses when sending from a single line. I was trying to use the syntax above to send to CC and BCC addresses, but all the addresses ended up being in the To: field of the email. After reading documentation for GNU Mailutils, I found that you need to specify options first and then the address list.</p>
<p>$ mail [option&#8230;] [address&#8230;]</p>
<p>So instead of:<br />
$ mail -s &#8220;Hello World&#8221; <a href="mailto:user1@example.com">user1@example.com</a> -c <a href="mailto:usertocc@example.com">usertocc@example.com</a> -b <a href="mailto:usertobcc@example.com">usertobcc@example.com</a></p>
<p>I had to do:<br />
$ mail -s &#8220;Hello World&#8221; -c <a href="mailto:usertocc@example.com">usertocc@example.com</a> -b <a href="mailto:usertobcc@example.com">usertobcc@example.com</a> <a href="mailto:user1@example.com">user1@example.com</a> </p>
<p>Hopefully this helps someone out in the future.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Dhathri		</title>
		<link>https://www.binarytides.com/linux-mail-command-examples/comment-page-1/#comment-124102</link>

		<dc:creator><![CDATA[Dhathri]]></dc:creator>
		<pubDate>Mon, 17 Jul 2017 13:20:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=5872#comment-124102</guid>

					<description><![CDATA[Is there any command to directly connect to mail from terminal]]></description>
			<content:encoded><![CDATA[<p>Is there any command to directly connect to mail from terminal</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: curious guy		</title>
		<link>https://www.binarytides.com/linux-mail-command-examples/comment-page-1/#comment-123540</link>

		<dc:creator><![CDATA[curious guy]]></dc:creator>
		<pubDate>Tue, 11 Jul 2017 09:20:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=5872#comment-123540</guid>

					<description><![CDATA[Hail Silver Moon, great article. Thanks!

I would like to make an addendum regarding the last topic you have written about attaching a file using the &quot;mutt&quot; tool:
For the reason of the &quot;mailx&quot; program being part of the POSIX Standard to server as a MUA, then I believe that the use of it would be more viable than the &quot;mutt&quot;. In addition, the [mailx] tool is not difficult to use. For more details: https://access.redhat.com/solutions/104833]]></description>
			<content:encoded><![CDATA[<p>Hail Silver Moon, great article. Thanks!</p>
<p>I would like to make an addendum regarding the last topic you have written about attaching a file using the &#8220;mutt&#8221; tool:<br />
For the reason of the &#8220;mailx&#8221; program being part of the POSIX Standard to server as a MUA, then I believe that the use of it would be more viable than the &#8220;mutt&#8221;. In addition, the [mailx] tool is not difficult to use. For more details: <a href="https://access.redhat.com/solutions/104833" rel="nofollow ugc">https://access.redhat.com/solutions/104833</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Larry Sokoloski		</title>
		<link>https://www.binarytides.com/linux-mail-command-examples/comment-page-1/#comment-102358</link>

		<dc:creator><![CDATA[Larry Sokoloski]]></dc:creator>
		<pubDate>Thu, 12 Jan 2017 22:29:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=5872#comment-102358</guid>

					<description><![CDATA[Your article was exactly what I was looking for - great practical advice and examples!]]></description>
			<content:encoded><![CDATA[<p>Your article was exactly what I was looking for &#8211; great practical advice and examples!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Silver Moon		</title>
		<link>https://www.binarytides.com/linux-mail-command-examples/comment-page-1/#comment-69129</link>

		<dc:creator><![CDATA[Silver Moon]]></dc:creator>
		<pubDate>Tue, 01 Mar 2016 09:02:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=5872#comment-69129</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/linux-mail-command-examples/comment-page-1/#comment-69120&quot;&gt;Joel&lt;/a&gt;.

Glad to hear that you found the post useful.
Thanks for the comment.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/linux-mail-command-examples/comment-page-1/#comment-69120">Joel</a>.</p>
<p>Glad to hear that you found the post useful.<br />
Thanks for the comment.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Joel		</title>
		<link>https://www.binarytides.com/linux-mail-command-examples/comment-page-1/#comment-69120</link>

		<dc:creator><![CDATA[Joel]]></dc:creator>
		<pubDate>Tue, 01 Mar 2016 06:00:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=5872#comment-69120</guid>

					<description><![CDATA[I found your article to be concise and VERY helpful, thanks! I was having troubles sending automated mail with a bash script from a cron job where I wanted a complex, all text, message. I am going to browse the rest of your site now to see what other nuggets of useful info you have!]]></description>
			<content:encoded><![CDATA[<p>I found your article to be concise and VERY helpful, thanks! I was having troubles sending automated mail with a bash script from a cron job where I wanted a complex, all text, message. I am going to browse the rest of your site now to see what other nuggets of useful info you have!</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
