X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/6cc4164ddaaa23454453920a3154d67c8e5ad8f1..58fa98e466c9b59f9352240e86c6349eba21440e:/cookbooks/dmca/files/default/html/index.php?ds=sidebyside diff --git a/cookbooks/dmca/files/default/html/index.php b/cookbooks/dmca/files/default/html/index.php index 33c28006e..47e1afb06 100644 --- a/cookbooks/dmca/files/default/html/index.php +++ b/cookbooks/dmca/files/default/html/index.php @@ -10,7 +10,10 @@ function process_data ($values) { $email_body = 'OpenStreetMap - Claim of Copyright Infringement form:'."\n\n"; $email_body .= 'Automated Email - Form Posted.'."\n\n"; $email_body .= print_r($values, true); - mail('dmca@osmfoundation.org','OSM Claim of Copyright Infringement', $email_body, 'From: OSMF Copyright Form ', '-fdmca@osmfoundation.org'); + $reply_address = $values['name_first'].' '.$values['name_last'].' <'.$values['email'].'>'; + $email_body .= 'Formatted address: '.$reply_address."\n\n"; + $email_header = 'From: OSMF Copyright Form ' . "\r\n" . 'Content-Type: text/plain; charset="utf-8"'; + mail('dmca@osmfoundation.org','OSM Claim of Copyright Infringement', $email_body, $email_header, '-fdmca@osmfoundation.org'); } ?>