<?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"
	>
<channel>
	<title>Comments on: Drupal: Adding a footer to all of your system e-mail</title>
	<atom:link href="http://sachachua.com/wp/2008/07/23/drupal-adding-a-footer-to-all-of-your-system-e-mail/feed/" rel="self" type="application/rss+xml" />
	<link>http://sachachua.com/wp/2008/07/23/drupal-adding-a-footer-to-all-of-your-system-e-mail/</link>
	<description>I help people connect through blogs, wikis, other Web 2.0 tools. I'm also writing a book about Emacs.</description>
	<pubDate>Sat, 22 Nov 2008 10:05:44 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Beto</title>
		<link>http://sachachua.com/wp/2008/07/23/drupal-adding-a-footer-to-all-of-your-system-e-mail/#comment-83622</link>
		<dc:creator>Beto</dc:creator>
		<pubDate>Thu, 18 Sep 2008 23:39:02 +0000</pubDate>
		<guid isPermaLink="false">http://sachachua.com/wp/2008/07/23/drupal-adding-a-footer-to-all-of-your-system-e-mail/#comment-83622</guid>
		<description>Could I cancel an outgoing email with this function??? How? Thanks :)</description>
		<content:encoded><![CDATA[<p>Could I cancel an outgoing email with this function??? How? Thanks <img src='http://sachachua.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil L.</title>
		<link>http://sachachua.com/wp/2008/07/23/drupal-adding-a-footer-to-all-of-your-system-e-mail/#comment-40853</link>
		<dc:creator>Phil L.</dc:creator>
		<pubDate>Thu, 24 Jul 2008 14:31:06 +0000</pubDate>
		<guid isPermaLink="false">http://sachachua.com/wp/2008/07/23/drupal-adding-a-footer-to-all-of-your-system-e-mail/#comment-40853</guid>
		<description>;) You can scrub my "Drupal 6 and beyond" comment then ;).</description>
		<content:encoded><![CDATA[<p> <img src='http://sachachua.com/wp/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> You can scrub my &#034;Drupal 6 and beyond&#034; comment then ;).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil L.</title>
		<link>http://sachachua.com/wp/2008/07/23/drupal-adding-a-footer-to-all-of-your-system-e-mail/#comment-40852</link>
		<dc:creator>Phil L.</dc:creator>
		<pubDate>Thu, 24 Jul 2008 14:28:36 +0000</pubDate>
		<guid isPermaLink="false">http://sachachua.com/wp/2008/07/23/drupal-adding-a-footer-to-all-of-your-system-e-mail/#comment-40852</guid>
		<description>This is for Drupal 6 and beyond.

I just want to warn users that  implementing this will alter all emails sent from the server.

Not necessarily a problem, unless you're running Listhandler or another module that does email out posts/comments/forum posts to mailing lists (etc).

Cheers.

Phil L.</description>
		<content:encoded><![CDATA[<p>This is for Drupal 6 and beyond.</p>
<p>I just want to warn users that  implementing this will alter all emails sent from the server.</p>
<p>Not necessarily a problem, unless you&#039;re running Listhandler or another module that does email out posts/comments/forum posts to mailing lists (etc).</p>
<p>Cheers.</p>
<p>Phil L.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Charabaruk</title>
		<link>http://sachachua.com/wp/2008/07/23/drupal-adding-a-footer-to-all-of-your-system-e-mail/#comment-40821</link>
		<dc:creator>Chris Charabaruk</dc:creator>
		<pubDate>Thu, 24 Jul 2008 10:35:49 +0000</pubDate>
		<guid isPermaLink="false">http://sachachua.com/wp/2008/07/23/drupal-adding-a-footer-to-all-of-your-system-e-mail/#comment-40821</guid>
		<description>&lt;a href="http://api.drupal.org/api/function/hook_mail_alter" rel="nofollow"&gt;&lt;code&gt;hook_mail_alter&lt;/code&gt;&lt;/a&gt; has existed since Drupal 5, but has different arguments in Drupal 6 and later. The example that Sacha posted is for Drupal 5.

With Drupal 6, rather than passing in a bunch of parameters, a single structured array is passed in. Here's the example from above, modified for Drupal 6:

&lt;code&gt;
function mymodule_mail_alter(&#38;$message) {
   $message['body'] .= "\n\n" . t('This is a system-generated email, please do not reply to this message');
}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p><a href="http://api.drupal.org/api/function/hook_mail_alter" rel="nofollow"><code>hook_mail_alter</code></a> has existed since Drupal 5, but has different arguments in Drupal 6 and later. The example that Sacha posted is for Drupal 5.</p>
<p>With Drupal 6, rather than passing in a bunch of parameters, a single structured array is passed in. Here&#039;s the example from above, modified for Drupal 6:</p>
<p><code><br />
function mymodule_mail_alter(&amp;$message) {<br />
   $message['body'] .= &#034;\n\n&#034; . t(&#039;This is a system-generated email, please do not reply to this message&#039;);<br />
}<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Drupal Themes Garden</title>
		<link>http://sachachua.com/wp/2008/07/23/drupal-adding-a-footer-to-all-of-your-system-e-mail/#comment-40805</link>
		<dc:creator>Drupal Themes Garden</dc:creator>
		<pubDate>Thu, 24 Jul 2008 09:28:02 +0000</pubDate>
		<guid isPermaLink="false">http://sachachua.com/wp/2008/07/23/drupal-adding-a-footer-to-all-of-your-system-e-mail/#comment-40805</guid>
		<description>Seems that you are really impressed with the  drupal's hook system :-)

BTW,
is your example just for Drupal 5, or maybe Drupal 6?</description>
		<content:encoded><![CDATA[<p>Seems that you are really impressed with the  drupal&#039;s hook system <img src='http://sachachua.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>BTW,<br />
is your example just for Drupal 5, or maybe Drupal 6?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Charabaruk</title>
		<link>http://sachachua.com/wp/2008/07/23/drupal-adding-a-footer-to-all-of-your-system-e-mail/#comment-40791</link>
		<dc:creator>Chris Charabaruk</dc:creator>
		<pubDate>Thu, 24 Jul 2008 07:56:07 +0000</pubDate>
		<guid isPermaLink="false">http://sachachua.com/wp/2008/07/23/drupal-adding-a-footer-to-all-of-your-system-e-mail/#comment-40791</guid>
		<description>Yeah, the hook system is pretty amazing, and it's wild to see how much functionality has been added through hooks alone.

By the way, did you ever meet or talk to my friend &lt;a href="http://robloach.net" rel="nofollow"&gt;Rob Loach&lt;/a&gt;? I swear, he lives to write Drupal modules to integrate into every single other website out there.</description>
		<content:encoded><![CDATA[<p>Yeah, the hook system is pretty amazing, and it&#039;s wild to see how much functionality has been added through hooks alone.</p>
<p>By the way, did you ever meet or talk to my friend <a href="http://robloach.net" rel="nofollow">Rob Loach</a>? I swear, he lives to write Drupal modules to integrate into every single other website out there.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
