- assigned_to: nobody --> boaddrink
Hi,
if a field realname is used but is left empty by the user
filling the form, the script generates the header line
From: abc@def.co ()
This displays empty sender in many e-mail programs
and makes it impossible to see the sender's e-mail
address.
I propose to modify the script in the following way:
if \(isset\($form\['realname'\]\) && \(trim\($form
['realname']) != ''))
$realname = $form['realname'];
elseif ((isset($form['firstname']) || isset($form
['lastname'])) && ((trim($form['firstname']) != '') || (trim
($form['lastname']) != '')))
$realname = trim($form
['firstname'] . ' ' . $form['lastname']);
With this modification in the case of empty realname
only the e-mail address without () is used in the From:
field.
Regards
Peter