[thelist] php mail() settings limited?

Andrew Maynes andrew at humanbehaviour.co.uk
Mon Oct 14 03:20:01 CDT 2002


I haven't put the code in the file as I was unsure which file to insert it!  I
guess it needs to go into email.php file which looks like this, which to me
doesn't look complete!

require("config.php");

IF ($emailid == "plain")
	$field = tipnl_plainemail;
	ELSE
		$field = tipnl_htmlemail;

$result = DBquery("	SELECT $field
			FROM newsletters
			WHERE tipnl_id = '$newsid'");

$row = mysql_fetch_array($result);

extract($row);

IF ($field == "tipnl_plainemail")
	echo stripslashes(nl2br($$field));
	ELSE
		echo stripslashes($$field);
?>

Funny thing is when I run this file on its own, I get an error, does this sound
right?

Warning: extract() expects first argument to be an array in c:\program
files\apache group\apache\htdocs\efficiente\newsletter\email.php on line 26

Andrew

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.400 / Virus Database: 226 - Release Date: 10/9/02




More information about the thelist mailing list