diff --git a/mod/invite.php b/mod/invite.php index 03330f32cf..6807ff2c12 100644 --- a/mod/invite.php +++ b/mod/invite.php @@ -77,8 +77,8 @@ function invite_post(App $a) $nmessage = $message; } - $additional_headers = 'From: ' . $a->getSenderEmailAddress() . "\n" - . 'Sender: ' . $a->user['email'] . "\n" + $additional_headers = 'From: ' . $a->user['email'] . "\n" + . 'Sender: ' . $a->getSenderEmailAddress() . "\n" . 'Content-type: text/plain; charset=UTF-8' . "\n" . 'Content-transfer-encoding: 8bit';