In Drupal 7.10 I have the /contact form open to anyone and would liketo add the Reply-To header to the mail message.
How do I get the value of the e-mail address field in the /contact form - both for guests and registered users?
Here is what I'm trying:
function your_module_mail_alter(&$message) {
if ( $message['id'] == 'contact_page_mail' ) {
$message['headers']['Reply-to'] = YYY;
}
}