<?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: How to Send HTML Email Using Linux Command Line	</title>
	<atom:link href="https://www.ubuntumint.com/send-html-email-linux-commandline/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.ubuntumint.com/send-html-email-linux-commandline/</link>
	<description>UbuntuMint - Everything About Ubuntu Linux</description>
	<lastBuildDate>Sat, 27 Apr 2024 04:55:20 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>
	<item>
		<title>
		By: Ravi Saive		</title>
		<link>https://www.ubuntumint.com/send-html-email-linux-commandline/#comment-39652</link>

		<dc:creator><![CDATA[Ravi Saive]]></dc:creator>
		<pubDate>Sat, 27 Apr 2024 04:55:20 +0000</pubDate>
		<guid isPermaLink="false">https://www.ubuntumint.com/?p=4816#comment-39652</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.ubuntumint.com/send-html-email-linux-commandline/#comment-38176&quot;&gt;Chad Heidema&lt;/a&gt;.

@Chad,

It seems like you&#039;re encountering an issue with the formatting of the email body when using HTML. To ensure proper rendering of HTML content in emails, you may need to use the &lt;strong&gt;mailx&lt;/strong&gt; command instead of &lt;strong&gt;mail&lt;/strong&gt;. 

Here&#039;s the corrected command:
&lt;pre&gt;
echo &quot;HTML Message goes here&quot; &#124; mailx -a &#039;Content-Type: text/html&#039; -s &quot;This is the subject&quot; receiver@domain_name
&lt;/pre&gt;
Using &lt;strong&gt;mailx&lt;/strong&gt; should resolve the issue with HTML formatting in your emails.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.ubuntumint.com/send-html-email-linux-commandline/#comment-38176">Chad Heidema</a>.</p>
<p>@Chad,</p>
<p>It seems like you&#8217;re encountering an issue with the formatting of the email body when using HTML. To ensure proper rendering of HTML content in emails, you may need to use the <strong>mailx</strong> command instead of <strong>mail</strong>. </p>
<p>Here&#8217;s the corrected command:</p>
<pre>
echo "HTML Message goes here" | mailx -a 'Content-Type: text/html' -s "This is the subject" receiver@domain_name
</pre>
<p>Using <strong>mailx</strong> should resolve the issue with HTML formatting in your emails.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Chad Heidema		</title>
		<link>https://www.ubuntumint.com/send-html-email-linux-commandline/#comment-38176</link>

		<dc:creator><![CDATA[Chad Heidema]]></dc:creator>
		<pubDate>Wed, 27 Mar 2024 11:40:07 +0000</pubDate>
		<guid isPermaLink="false">https://www.ubuntumint.com/?p=4816#comment-38176</guid>

					<description><![CDATA[Thanks for the post Ravi, unfortunately this does not work for me from a RHEL 7 host:
&lt;pre&gt;
$ echo &quot;&lt;b&gt;HTML Message goes here&lt;/b&gt;&quot; &#124; mail -s &quot;$(echo -e &quot;This is the subject\nContent-Type: text/html&quot;)&quot; receiver@domain_name
&lt;/pre&gt;
I sent to my work email and the text comes back with html codes. Does it matter if if we have mail -&#062; mailx?
&lt;pre&gt;
lrwxrwxrwx. 1 root root 5 Jul 21  2018 /usr/bin/mail -&#062; mailx
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>Thanks for the post Ravi, unfortunately this does not work for me from a RHEL 7 host:</p>
<pre>
$ echo "<b>HTML Message goes here</b>" | mail -s "$(echo -e "This is the subject\nContent-Type: text/html")" receiver@domain_name
</pre>
<p>I sent to my work email and the text comes back with html codes. Does it matter if if we have mail -&gt; mailx?</p>
<pre>
lrwxrwxrwx. 1 root root 5 Jul 21  2018 /usr/bin/mail -&gt; mailx
</pre>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
