<?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: Send mail from command line with external smtp server on Linux	</title>
	<atom:link href="https://www.binarytides.com/linux-mail-with-smtp/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.binarytides.com/linux-mail-with-smtp/</link>
	<description>News, Technology, Entertainment and more</description>
	<lastBuildDate>Fri, 16 Jul 2021 10:03:54 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>
	<item>
		<title>
		By: Boris		</title>
		<link>https://www.binarytides.com/linux-mail-with-smtp/comment-page-1/#comment-320805</link>

		<dc:creator><![CDATA[Boris]]></dc:creator>
		<pubDate>Fri, 16 Jul 2021 10:03:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=7447#comment-320805</guid>

					<description><![CDATA[Telnet method :

telnet your.smtp.server 25
HELO your.ip
MAIL FROM:
RCPT TO:
DATA
Subject: YOUR SUBJECT
Your message then end with a point
.
(then disconnect)]]></description>
			<content:encoded><![CDATA[<p>Telnet method :</p>
<p>telnet your.smtp.server 25<br />
HELO your.ip<br />
MAIL FROM:<br />
RCPT TO:<br />
DATA<br />
Subject: YOUR SUBJECT<br />
Your message then end with a point<br />
.<br />
(then disconnect)</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Colinalvin63		</title>
		<link>https://www.binarytides.com/linux-mail-with-smtp/comment-page-1/#comment-124394</link>

		<dc:creator><![CDATA[Colinalvin63]]></dc:creator>
		<pubDate>Thu, 20 Jul 2017 10:53:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=7447#comment-124394</guid>

					<description><![CDATA[I use Thunderbird as a mail client and have been experimenting with sending mail through Thunderbird via the bash command line. I want to be able to send an email within a bash script. 

I can successfully make Thunderbird open a compose window to send a mail, but I really want it to happen in the background with NO human interaction. Is there an option I can give Thunderbird on the command line to send the message straight away ?

This is what I&#039;ve got so far :-

thunderbird -compose &quot;preselectid=id3,to=fred.bloggs@gmail.com,subject=&#039;Dropbox Sync Log `date +%D`&#039;,body=&#039;`cat ~/Dropbox/sync_log.txt`&#039;,format=2,attachment=&#039;~/Dropbox/sync_log.txt&#039;&quot;

I fully realise I don&#039;t need to attach a file as well as catting it into the message. I&#039;ve just left it in to show that attachments are possible from the command line, that&#039;s all.

If someone knows how to make Thunderbird actually send the email from the command line instead of opening a window in Thunderbird client, I&#039;d be delighted to hear from you.

Many thanks,

Colin]]></description>
			<content:encoded><![CDATA[<p>I use Thunderbird as a mail client and have been experimenting with sending mail through Thunderbird via the bash command line. I want to be able to send an email within a bash script. </p>
<p>I can successfully make Thunderbird open a compose window to send a mail, but I really want it to happen in the background with NO human interaction. Is there an option I can give Thunderbird on the command line to send the message straight away ?</p>
<p>This is what I&#8217;ve got so far :-</p>
<p>thunderbird -compose &#8220;preselectid=id3,to=fred.bloggs@gmail.com,subject=&#8217;Dropbox Sync Log `date +%D`&#8217;,body=&#8217;`cat ~/Dropbox/sync_log.txt`&#8217;,format=2,attachment=&#8217;~/Dropbox/sync_log.txt'&#8221;</p>
<p>I fully realise I don&#8217;t need to attach a file as well as catting it into the message. I&#8217;ve just left it in to show that attachments are possible from the command line, that&#8217;s all.</p>
<p>If someone knows how to make Thunderbird actually send the email from the command line instead of opening a window in Thunderbird client, I&#8217;d be delighted to hear from you.</p>
<p>Many thanks,</p>
<p>Colin</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Agnel James William		</title>
		<link>https://www.binarytides.com/linux-mail-with-smtp/comment-page-1/#comment-101385</link>

		<dc:creator><![CDATA[Agnel James William]]></dc:creator>
		<pubDate>Thu, 29 Dec 2016 11:19:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=7447#comment-101385</guid>

					<description><![CDATA[Thanks a lot. very useful.]]></description>
			<content:encoded><![CDATA[<p>Thanks a lot. very useful.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: jabbson		</title>
		<link>https://www.binarytides.com/linux-mail-with-smtp/comment-page-1/#comment-67910</link>

		<dc:creator><![CDATA[jabbson]]></dc:creator>
		<pubDate>Fri, 10 Apr 2015 11:30:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=7447#comment-67910</guid>

					<description><![CDATA[--body is required for swaks in order to read message body from standard input; otherwise the default body of &quot;This is a test mailing&quot; will be used.

[QUOTE from man]
--body [body-specification]
        Specify the body of the email. The default is &quot;This is a test
        mailing&quot;. If no argument to --body is given, prompt to supply one
        interactively. If &#039;-&#039; is supplied, the body will be read from
        standard input. If any other text is provided and the text
        represents an open-able file, the content of that file is used as
        the body. If it does not represent an open-able file, the text
        itself is used as the body.

        If the message is forced to MIME format (see --attach) the argument
        to this option will be included unencoded as the first MIME part.
        Its content-type will always be text/plain.

[/QUOTE]]]></description>
			<content:encoded><![CDATA[<p>&#8211;body is required for swaks in order to read message body from standard input; otherwise the default body of &#8220;This is a test mailing&#8221; will be used.</p>
<p>[QUOTE from man]<br />
&#8211;body [body-specification]<br />
        Specify the body of the email. The default is &#8220;This is a test<br />
        mailing&#8221;. If no argument to &#8211;body is given, prompt to supply one<br />
        interactively. If &#8216;-&#8216; is supplied, the body will be read from<br />
        standard input. If any other text is provided and the text<br />
        represents an open-able file, the content of that file is used as<br />
        the body. If it does not represent an open-able file, the text<br />
        itself is used as the body.</p>
<p>        If the message is forced to MIME format (see &#8211;attach) the argument<br />
        to this option will be included unencoded as the first MIME part.<br />
        Its content-type will always be text/plain.</p>
<p>[/QUOTE]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Siempre Makinando		</title>
		<link>https://www.binarytides.com/linux-mail-with-smtp/comment-page-1/#comment-67771</link>

		<dc:creator><![CDATA[Siempre Makinando]]></dc:creator>
		<pubDate>Sun, 01 Feb 2015 16:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=7447#comment-67771</guid>

					<description><![CDATA[Hi,  great examples to connect to a smtp server from command line. I also like this: https://github.com/gasparfm/gscripts/blob/master/gemail.sh It uses sendmail (you can have nullmailer configured to connect to a smtp server). The best of it is that you can send attachments.

I use it to send by emails files generated directly on a server.]]></description>
			<content:encoded><![CDATA[<p>Hi,  great examples to connect to a smtp server from command line. I also like this: <a href="https://github.com/gasparfm/gscripts/blob/master/gemail.sh" rel="nofollow ugc">https://github.com/gasparfm/gscripts/blob/master/gemail.sh</a> It uses sendmail (you can have nullmailer configured to connect to a smtp server). The best of it is that you can send attachments.</p>
<p>I use it to send by emails files generated directly on a server.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
