The additional headers should be a single string.
Where you have $name should be a variable that contains any additional headers and a proper format.
($to, $subject, $message, $headers)
Where $headers might be "From: email@example.com' . "\r\n" . 'Reply-To: firstname.lastname@example.org' . "\r\n" . 'X-Mailer: PHP/".
So if you are using $name and $email1 as additional headers, you just need to insert them into a proper email header string.