From: Grant Date: Thu, 3 Dec 2020 08:45:08 +0000 (+0000) Subject: Merge pull request #361 from polarbearing/patch-1 X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/2eeabe9b50dc30e53e2477f7cc55a45ea5912a7a?hp=a68381ff0b21ebe57d7cef919c34c4e31460bc45 Merge pull request #361 from polarbearing/patch-1 DMCA form: add Content-Type header to generated email --- diff --git a/cookbooks/dmca/files/default/html/index.php b/cookbooks/dmca/files/default/html/index.php index d81deb70a..47e1afb06 100644 --- a/cookbooks/dmca/files/default/html/index.php +++ b/cookbooks/dmca/files/default/html/index.php @@ -12,7 +12,8 @@ function process_data ($values) { $email_body .= print_r($values, true); $reply_address = $values['name_first'].' '.$values['name_last'].' <'.$values['email'].'>'; $email_body .= 'Formatted address: '.$reply_address."\n\n"; - mail('dmca@osmfoundation.org','OSM Claim of Copyright Infringement', $email_body, 'From: OSMF Copyright Form ', '-fdmca@osmfoundation.org'); + $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'); } ?>