<?xml version="1.0" encoding="iso-8859-1" ?>
<rss version="2.0">
  <channel>
    <title>DEVELOPMENT</title>
    <link>http://www.iternity.co.uk/phorum/list.php?6</link>
    <description><![CDATA[PHP, MySQL, JavaScript, HTML, AJAX]]></description>
    <language>EN</language>
    <pubDate>Tue, 08 Jan 2008 11:32:25 +0100</pubDate>
    <lastBuildDate>Tue, 08 Jan 2008 11:32:25 +0100</lastBuildDate>
    <category>DEVELOPMENT</category>
    <generator>Phorum 5.1.22</generator>
    <ttl>600</ttl>
    <item>
      <title>Using PHP mailer to send emails</title>
      <link>http://www.iternity.co.uk/phorum/read.php?6,28,28#msg-28</link>
      <author>iternity</author>
      <description><![CDATA[$filename=&quot;emails/send_contact.html&quot;;
$fd=fopen($filename,&quot;r&quot;);
$content=fread($fd,filesize($filename));
fclose($fd);

$content = str_replace(&quot;#EMAIL#&quot;,@$_POST[email],$content);
$content = str_replace(&quot;#TEL#&quot;,@$_POST[tel],$content);
$content = str_replace(&quot;#NAME#&quot;,@$_POST[name],$content);
$content = str_replace(&quot;#COMPANY#&quot;,@$_POST[company],$content);
$content = str_replace(&quot;#PADDRESS#&quot;,@$_POST[paddress],$content);
$content = str_replace(&quot;#MESSAGE#&quot;,nl2br(@$_POST[query]),$content);			
		
$header  = &quot;From: &quot;.@$_POST[name].&quot; \n&quot;;
$header .= &quot;X-Sender: \n&quot;;
	
$header .= &quot;X-Mailer: PHP\n&quot;;
$header .= &quot;X-Priority: 1\n&quot;;
$header .= &quot;Return-Path: \n&quot;;
$header .= &quot;Content-Type: text/html; charset=iso-8859-1\n&quot;;

mail(&quot;to@email.address&quot;,&quot;SUBJECT&quot;,$content,$header);]]></description>
      <category>DEVELOPMENT</category>
      <guid isPermaLink="true">http://www.iternity.co.uk/phorum/read.php?6,28,28#msg-28</guid>
      <pubDate>Tue, 08 Jan 2008 11:32:25 +0100</pubDate>
    </item>
  </channel>
</rss>
