Adding extra data to the notification email

If you search in process.php for $config['extra'], you will find the line that passes the submitter IP address to the notification email. You can send any other data you wish by adding more entries to this $config['extra'] array. The label will be the array key and the displayed value will be the array value. For example to show the time and date the form was submitted, add this code:

1
$config['extra']['Date'] = date('g:ia jS F Y');
$config['extra']['Date'] = date('g:ia jS F Y');

To show the page that the form was submitted from, you can use this code:

1
$config['extra']['Form URL'] = Quform::getReferer();
$config['extra']['Form URL'] = Quform::getReferer();

Still having trouble? Head over to the forums.

Forums