Adding extra data to the notification email

If you search in process.php for $config['extra'], you will find some examples of code you can use to add extra data to the notification email. You can add 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 user’s IP address you can use this code:

1
$config['extra']['IP address'] = Quform::getIPAddress();
$config['extra']['IP address'] = Quform::getIPAddress();

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();
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy