[eluser]Iverson[/eluser]
Anyone have an idea why this might not be working? I understand that I'm using constants, but I thought PHP would recognize what I was trying to do...
Code:
$fake_vars[] = VAR_COMPANY_NAME; // VAR_COMPANY_NAME is '%company-name%'
$real_vars[] = $company['name'];
// EMAIL_SUBJECT_NEW_CUSTOMER is "Welcome to %company-name%"
$subject = str_replace($real_vars, $fake_vars, EMAIL_SUBJECT_NEW_CUSTOMER);