<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Coretanium &#187; Perl</title>
	<atom:link href="http://www.coretanium.net/category/perl/feed" rel="self" type="application/rss+xml" />
	<link>http://www.coretanium.net</link>
	<description>tech blah blah</description>
	<lastBuildDate>Tue, 29 Jun 2010 15:39:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Sending mail from Perl</title>
		<link>http://www.coretanium.net/sending-mail-from-perl</link>
		<comments>http://www.coretanium.net/sending-mail-from-perl#comments</comments>
		<pubDate>Wed, 03 Dec 2008 09:30:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Perl]]></category>

		<guid isPermaLink="false">http://blog.coretanium.net/?p=87</guid>
		<description><![CDATA[I am using this as a skeleton in various scripts where I need to be notified of errors or successful runs&#8230;

#!/usr/bin/perl

    open(MAIL,"&#124;/usr/lib/sendmail -t");

     print MAIL "To: you\@domain.com\n";
     print MAIL "From: name \n";
     print MAIL "Subject: your subject\n\n";
    [...]]]></description>
			<content:encoded><![CDATA[<p>I am using this as a skeleton in various scripts where I need to be notified of errors or successful runs&#8230;</p>
<pre lang="perl">
#!/usr/bin/perl

    open(MAIL,"|/usr/lib/sendmail -t");

     print MAIL "To: you\@domain.com\n";
     print MAIL "From: name <script\@domain.com>\n";
     print MAIL "Subject: your subject\n\n";
     print MAIL "\nnotification\n";

    close (MAIL);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.coretanium.net/sending-mail-from-perl/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
