<?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: setting the from address in GNU mail</title>
	<atom:link href="http://www.dark.ca/2009/07/03/setting-the-from-address-in-mail/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dark.ca/2009/07/03/setting-the-from-address-in-mail/</link>
	<description>direct from the mysterious land of the sysadmin</description>
	<lastBuildDate>Mon, 09 Jan 2012 02:25:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: dan</title>
		<link>http://www.dark.ca/2009/07/03/setting-the-from-address-in-mail/comment-page-1/#comment-13376</link>
		<dc:creator>dan</dc:creator>
		<pubDate>Sat, 22 Oct 2011 10:30:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.dark.ca/?p=99#comment-13376</guid>
		<description>I don&#039;t think you can do that with a single script file.  You may wish to look at some proper mailing list management software, such as &lt;a href=&quot;www.list.org&quot; rel=&quot;nofollow&quot;&gt;MailMan&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t think you can do that with a single script file.  You may wish to look at some proper mailing list management software, such as <a href="www.list.org" rel="nofollow">MailMan</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ramana</title>
		<link>http://www.dark.ca/2009/07/03/setting-the-from-address-in-mail/comment-page-1/#comment-13335</link>
		<dc:creator>Ramana</dc:creator>
		<pubDate>Fri, 21 Oct 2011 12:56:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.dark.ca/?p=99#comment-13335</guid>
		<description>i want to send a mail to list of customers, based on their responses (if they are OK with changes) i want to perform some tasks, other wise i should stop executing those tasks, how can i perform this in a single script file</description>
		<content:encoded><![CDATA[<p>i want to send a mail to list of customers, based on their responses (if they are OK with changes) i want to perform some tasks, other wise i should stop executing those tasks, how can i perform this in a single script file</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dan</title>
		<link>http://www.dark.ca/2009/07/03/setting-the-from-address-in-mail/comment-page-1/#comment-5946</link>
		<dc:creator>dan</dc:creator>
		<pubDate>Sat, 09 Apr 2011 17:31:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.dark.ca/?p=99#comment-5946</guid>
		<description>Glad to see that you got it to work - thanks for the follow-up !</description>
		<content:encoded><![CDATA[<p>Glad to see that you got it to work &#8211; thanks for the follow-up !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Aronszajn</title>
		<link>http://www.dark.ca/2009/07/03/setting-the-from-address-in-mail/comment-page-1/#comment-5582</link>
		<dc:creator>Mark Aronszajn</dc:creator>
		<pubDate>Thu, 24 Mar 2011 17:42:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.dark.ca/?p=99#comment-5582</guid>
		<description>Got an answer to my own question: with the mail utility on CentOS, there&#039;s no option to the mail command itself that lets you set the sender, however, If you imbed your call to the mail utility in a shell script, you can modify the USER and HOST environment variables to equal the email sender user and host you want and then export these. Here&#039;s an example:

#!/bin/bash
USER=your.sender.name
HOST=your.sender.host

export USER
export HOST

echo &quot;This is a test.&quot; &#124; mail -s &quot;A test...&quot; to.addressee@to.hostname</description>
		<content:encoded><![CDATA[<p>Got an answer to my own question: with the mail utility on CentOS, there&#8217;s no option to the mail command itself that lets you set the sender, however, If you imbed your call to the mail utility in a shell script, you can modify the USER and HOST environment variables to equal the email sender user and host you want and then export these. Here&#8217;s an example:</p>
<p>#!/bin/bash<br />
USER=your.sender.name<br />
HOST=your.sender.host</p>
<p>export USER<br />
export HOST</p>
<p>echo &#8220;This is a test.&#8221; | mail -s &#8220;A test&#8230;&#8221; <a href="mailto:to.addressee@to.hostname">to.addressee@to.hostname</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Aronszajn</title>
		<link>http://www.dark.ca/2009/07/03/setting-the-from-address-in-mail/comment-page-1/#comment-5581</link>
		<dc:creator>Mark Aronszajn</dc:creator>
		<pubDate>Thu, 24 Mar 2011 17:16:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.dark.ca/?p=99#comment-5581</guid>
		<description>I am using mail on CentOS 5x which is a variant of Fedora. The mail utility provided does not offer a &#039;-a&#039; or a &#039;--append&#039; option. Does anyone know how to specify a &quot;from&quot; address for this mail utility?</description>
		<content:encoded><![CDATA[<p>I am using mail on CentOS 5x which is a variant of Fedora. The mail utility provided does not offer a &#8216;-a&#8217; or a &#8216;&#8211;append&#8217; option. Does anyone know how to specify a &#8220;from&#8221; address for this mail utility?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raja</title>
		<link>http://www.dark.ca/2009/07/03/setting-the-from-address-in-mail/comment-page-1/#comment-3065</link>
		<dc:creator>Raja</dc:creator>
		<pubDate>Thu, 16 Dec 2010 07:29:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.dark.ca/?p=99#comment-3065</guid>
		<description>hi,
you can try this..it will  work for you

mail -s &quot;subject&quot; recive@domain.com  -- -f sender@domain.tld &lt; /home/messagebody


thanks,
Raja K</description>
		<content:encoded><![CDATA[<p>hi,<br />
you can try this..it will  work for you</p>
<p>mail -s &#8220;subject&#8221; <a href="mailto:recive@domain.com">recive@domain.com</a>  &#8212; -f <a href="mailto:sender@domain.tld">sender@domain.tld</a> &lt; /home/messagebody</p>
<p>thanks,<br />
Raja K</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dan</title>
		<link>http://www.dark.ca/2009/07/03/setting-the-from-address-in-mail/comment-page-1/#comment-878</link>
		<dc:creator>dan</dc:creator>
		<pubDate>Mon, 19 Jul 2010 13:37:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.dark.ca/?p=99#comment-878</guid>
		<description>Glad that you found the article useful !</description>
		<content:encoded><![CDATA[<p>Glad that you found the article useful !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: clayzer</title>
		<link>http://www.dark.ca/2009/07/03/setting-the-from-address-in-mail/comment-page-1/#comment-809</link>
		<dc:creator>clayzer</dc:creator>
		<pubDate>Tue, 06 Jul 2010 21:19:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.dark.ca/?p=99#comment-809</guid>
		<description>Whoops! angle brackets got removed...

&lt;blockquote cite=&quot;#commentbody-808&quot;&gt;
&lt;strong&gt;&lt;a href=&quot;#comment-808&quot; rel=&quot;nofollow&quot;&gt;clayzer&lt;/a&gt; :&lt;/strong&gt;
          Excellent leads for me. Thank you both!
Turned out to get the from header (I use postfix) I needed to type:
mail -s “testing” to@example.com ~h
FROM: from@example.com ^D
CC: ^D
         &lt;/blockquote&gt;</description>
		<content:encoded><![CDATA[<p>Whoops! angle brackets got removed&#8230;</p>
<blockquote cite="#commentbody-808"><p>
<strong><a href="#comment-808" rel="nofollow">clayzer</a> :</strong><br />
          Excellent leads for me. Thank you both!<br />
Turned out to get the from header (I use postfix) I needed to type:<br />
mail -s “testing” <a href="mailto:to@example.com">to@example.com</a> ~h<br />
FROM: <a href="mailto:from@example.com">from@example.com</a> ^D<br />
CC: ^D
         </p></blockquote>
]]></content:encoded>
	</item>
	<item>
		<title>By: clayzer</title>
		<link>http://www.dark.ca/2009/07/03/setting-the-from-address-in-mail/comment-page-1/#comment-808</link>
		<dc:creator>clayzer</dc:creator>
		<pubDate>Tue, 06 Jul 2010 21:17:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.dark.ca/?p=99#comment-808</guid>
		<description>Excellent leads for me. Thank you both!

Turned out to get the from header (I use postfix) I needed to type:
mail -s &quot;testing&quot;  ~h
FROM:  ^D
CC: ^D</description>
		<content:encoded><![CDATA[<p>Excellent leads for me. Thank you both!</p>
<p>Turned out to get the from header (I use postfix) I needed to type:<br />
mail -s &#8220;testing&#8221;  ~h<br />
FROM:  ^D<br />
CC: ^D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tayfun</title>
		<link>http://www.dark.ca/2009/07/03/setting-the-from-address-in-mail/comment-page-1/#comment-347</link>
		<dc:creator>tayfun</dc:creator>
		<pubDate>Wed, 20 Jan 2010 12:59:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.dark.ca/?p=99#comment-347</guid>
		<description>This was just what I needed, thanks. On some mail programs, you have to use &#039;-a &quot;FROM: mymail@mail.tld&#039;&quot; instead of the one above.

Have a nice day!</description>
		<content:encoded><![CDATA[<p>This was just what I needed, thanks. On some mail programs, you have to use &#8216;-a &#8220;FROM: <a href="mailto:mymail@mail.tld">mymail@mail.tld</a>&#8216;&#8221; instead of the one above.</p>
<p>Have a nice day!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

