document.write('<div class="c" style="font-family: monospace;"><br />');
document.write('&lt;html&gt;<br />');
document.write('&lt;head&gt;<br />');
document.write('&lt;title&gt;&lt;/title&gt;<br />');
document.write('&lt;meta http-equiv=<span style="color: #ff0000;">&quot;Content-Type&quot;</span> content=<span style="color: #ff0000;">&quot;text/html; charset=iso-8859-1&quot;</span>&gt;<br />');
document.write('<br />');
document.write('&lt;/head&gt;<br />');
document.write('<br />');
document.write('&lt;?php<br />');
document.write('include <span style="color: #ff0000;">\'./inc/config.inc.php\'</span>;<br />');
document.write('?&gt;<br />');
document.write('<br />');
document.write('&lt;?<br />');
document.write('<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>isset<span style="color: #66cc66;">&#40;</span>$_POST<span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">\'submit\'</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><br />');
document.write('<span style="color: #66cc66;">&#123;</span><br />');
document.write('<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; $subject = $_POST<span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">\'subject\'</span><span style="color: #66cc66;">&#93;</span>;<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; $message = $_POST<span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">\'message\'</span><span style="color: #66cc66;">&#93;</span>;<br />');
document.write('<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; $query=<span style="color: #ff0000;">&quot;SELECT email FROM users_test&quot;</span>;&nbsp; <span style="color: #808080; font-style: italic;">//Change users_test to users</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; $result=mysql_query<span style="color: #66cc66;">&#40;</span>$query<span style="color: #66cc66;">&#41;</span>;<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; $num=mysql_num_rows<span style="color: #66cc66;">&#40;</span>$result<span style="color: #66cc66;">&#41;</span>;<br />');
document.write('<br />');
document.write('<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; $i=<span style="color: #cc66cc;">0</span>;<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">while</span> <span style="color: #66cc66;">&#40;</span>$i &lt; $num<span style="color: #66cc66;">&#41;</span> <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $email=mysql_result<span style="color: #66cc66;">&#40;</span>$result,$i,<span style="color: #ff0000;">&quot;email&quot;</span><span style="color: #66cc66;">&#41;</span>;<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mail<span style="color: #66cc66;">&#40;</span>$email, $subject, $message, <span style="color: #ff0000;">&quot;From: Someone&lt;someone@somewhere.com&gt;<span style="color: #000099; font-weight: bold;">\n</span>X-Mailer: PHP/&quot;</span> . <span style="color: #202020;">phpversion</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo <span style="color: #ff0000;">&quot;Email sent to: &quot;</span> . $email . <span style="color: #ff0000;">&quot;&lt;br /&gt;&quot;</span>;<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $i++;<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />');
document.write('<span style="color: #66cc66;">&#125;</span><br />');
document.write('?&gt;<br />');
document.write('&lt;br /&gt;<br />');
document.write('<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&lt;form name=<span style="color: #ff0000;">&quot;email&quot;</span> action=<span style="color: #ff0000;">&quot;&lt;?=$_SERVER[\'email.php\']?&gt;&quot;</span> method=<span style="color: #ff0000;">&quot;post&quot;</span>&gt;<br />');
document.write('<br />');
document.write('Subject<br />');
document.write('&lt;br /&gt;<br />');
document.write('&lt;input name=<span style="color: #ff0000;">&quot;subject&quot;</span> type=<span style="color: #ff0000;">&quot;text&quot;</span> size=<span style="color: #ff0000;">&quot;50&quot;</span> id=<span style="color: #ff0000;">&quot;subject&quot;</span>&gt;&lt;br /&gt;&lt;br /&gt;<br />');
document.write('Message<br />');
document.write('&lt;br /&gt;<br />');
document.write('&lt;textarea name=<span style="color: #ff0000;">&quot;message&quot;</span> cols=<span style="color: #ff0000;">&quot;50&quot;</span> rows=<span style="color: #ff0000;">&quot;10&quot;</span> id=<span style="color: #ff0000;">&quot;message&quot;</span>&gt;&lt;/textarea&gt;<br />');
document.write('&lt;br /&gt;&lt;br /&gt;<br />');
document.write('&lt;input type=<span style="color: #ff0000;">&quot;submit&quot;</span> name=<span style="color: #ff0000;">&quot;submit&quot;</span> value=<span style="color: #ff0000;">&quot;Email!&quot;</span>&gt;<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&lt;/body&gt;<br />');
document.write('&lt;/html&gt;<br />');
document.write('&nbsp;</div>');
document.write('<br />&nbsp;<br /><div style="font-size: 12px">Brought to you by the community at <a href="http://www.bytemycode.com/snippets/snippet/605/1/" target="_blank">byteMyCode</a>.</div>');
