In my email php file there is the follow code: $bodyMsg .= _L('Subject').': '.$data['SUBJECT']."\n"; $bodyMsg .= _L('Name') .': '.$data['NAME']."\n"; $bodyMsg .= _L('Email') .': '.$data['EMAIL']."\n"; $bodyMsg .= _L('Date') .': '.gmdate ('Y-m-d H:i:s')."\n"; Code (markup): I want to add another $bodyMsg line with the site name in it. How do I do that?
$bodyMsg .= _L('Subject').': '.$data['SUBJECT']."\n"; $bodyMsg .= _L('Name') .': '.$data['NAME']."\n"; $bodyMsg .= _L('Email') .': '.$data['EMAIL']."\n"; $bodyMsg .= $SITENAMEGOESHERE."\n"; $bodyMsg .= _L('Date') .': '.gmdate ('Y-m-d H:i:s')."\n"; PHP:
Thanks for the reply. I've tried it and for some reason the email output by the code just puts a blank line instead of "SITENAMEGOESHERE". Do you know why?
Did you tell the script what $sitenamegoeshere was equal to ? $SITENAMEGOESHERE = 'ThisSite.com'; $bodyMsg .= _L('Subject').': '.$data['SUBJECT']."\n"; $bodyMsg .= _L('Name') .': '.$data['NAME']."\n"; $bodyMsg .= _L('Email') .': '.$data['EMAIL']."\n"; $bodyMsg .= $SITENAMEGOESHERE."\n"; $bodyMsg .= _L('Date') .': '.gmdate ('Y-m-d H:i:s')."\n"; PHP: