Setting the “From” address

Open process.php and search for the term $config['from'] = '';, add the email address you want inside the quotes.

1
$config['from'] = 'company@example.com';
$config['from'] = 'company@example.com';

Setting a name with your “From” address

You can also set a name to be sent with the address using the code below.

1
$config['from'] = array('company@example.com' => 'Company');
$config['from'] = array('company@example.com' => 'Company');

Setting the “From” address to the submitted email address

You can also set the from address to a submitted email address. To do that set it to be the unique element name surrounded by percent signs, e.g.

1
$config['from'] = '%email%';
$config['from'] = '%email%';

Setting the “From” address to the submitted email address and name

You can also set the from address to a submitted email address and name combination. To do that, set it to be
an array with the email unique element name surrounded by percent signs as the key and the name unique element name
surrounded by percent signs as the array value, e.g.

1
$config['from'] = array('%email%' => '%name%');
$config['from'] = array('%email%' => '%name%');

Still having trouble? Head over to the forums.

Forums