Skip to content

Commit

Permalink
Merge pull request #939 from NatLibFi/issue936-invalid-smtp-header
Browse files Browse the repository at this point in the history
Fix bad quotes in SMTP header.
  • Loading branch information
osma authored Feb 24, 2020
2 parents 88b7a02 + 083a989 commit c769247
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller/WebController.php
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ public function invokeFeedbackForm($request)

private function createFeedbackHeaders($fromName, $fromEmail, $toMail, $sender)
{
$headers = "MIME-Version: 1.0 . '\r\n";
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type: text/html; charset=UTF-8" . "\r\n";
if (!empty($toMail)) {
$headers .= "Cc: " . $this->model->getConfig()->getFeedbackAddress() . "\r\n";
Expand Down

0 comments on commit c769247

Please sign in to comment.