"; $subject = "Transfer from $from_callsign"; $body = "$notice_text --$mime_boundary Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit $plain_text --$mime_boundary Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit $html_text --$mime_boundary--"; @mail($to_email, $subject, $body, "From: " . $from . "\n" . "MIME-Version: 1.0\n" . "Reply-To: <$from_email>\n" . "Content-Type: multipart/alternative;\n" . " boundary=" . $mime_boundary_header, "-f$from_email"); @mail("kelly@hamsphere.com", $subject, $body, "From: " . $from . "\n" . "MIME-Version: 1.0\n" . "Reply-To: <$from_email>\n" . "Content-Type: multipart/alternative;\n" . " boundary=" . $mime_boundary_header, "-f$from_email"); } function sendPayment($mycallsign, $myname, $hiscallsign, $hisname, $amount) { $ts = time(); $query = "insert into hs40.contributions set name='HS CREDIT TRANSFER', amount='$amount', callsign='$hiscallsign', ts='$ts';"; MYSQL_QUERY($query); $query = "insert into hs40.contributions set name='HS CREDIT TRANSFER', amount='-$amount', callsign='$mycallsign', ts='$ts';"; MYSQL_QUERY($query); $query = "update hamsphere.phorum_users set credit = credit + '$amount' where username='$hiscallsign'"; MYSQL_QUERY($query); $query = "update hamsphere.phorum_users set credit = credit + '-$amount' where username='$mycallsign'"; MYSQL_QUERY($query); } ?>