All pastes #475817 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-05-07 18:29 UTC
rendered paste body
// from the index.php file...
include('config.php');
include('functionLib.php');

// from the config file....
$_CONF['admin_email'] = 'me@domain.com';
$_CONF['admin_name'] = 'My Name';

// from the functionLib file...

$from_name = $_CONF['admin_name']; // this does not work
$from_name = "My Name"; // this works

// same for the email...

$headers .= "From: ".$from_name." <".$from_email.">\r\n"; 

$headers .= "Reply-To: ".$from_name." <".$from_email.">\r\n"; 

$headers .= "Return-Path: ".$from_name." <".$from_email.">\n";