Hello,
I have pasted below an email function...
Could anyone help me with amending / adding the php in the function so as to create the ouptut as required in the function ?
function email_postvars() {
/*
// example data
$_POST = array('forename' => 'Dave',
'surname' => 'Johnson',
'email' => 'dave.johnson@example.com',
'extra_age' => '24',
'extra_hobbies' => 'Cricket, cycling and chess',
'extra_height' => '2 metres')
// output - an email
// Email header
From: "Dave Johnson" <dave.johnson@example.com>
Subject: Feedback form - 25th November 2004
// Email body (Additional info = any fields with 'extra_' prefix)
Forename - Dave
Surname - Johnson
Email - [email]dave.johnson@example.com[/email]
Additional info:
Age: 24
Hobbies: Cricket, cycling and chess
Height: 2 metres
*/
/*
$recipient = 'test@example.com';
mail($recipient, ...);
*/
}