Skip to content
Snippets Groups Projects
Commit f65deb3e authored by Olav Morken's avatar Olav Morken
Browse files

errorreport: Fix sending of error reports.

Fixes issue 258.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2122 44740490-163a-0410-bde0-09ae8108e29a
parent a3ff374f
No related branches found
No related tags found
No related merge requests found
...@@ -95,9 +95,9 @@ if(array_key_exists('email', $_POST)) { ...@@ -95,9 +95,9 @@ if(array_key_exists('email', $_POST)) {
/* Send the email. */ /* Send the email. */
$toaddress = $config->getString('technicalcontact_email', 'na@example.org'); $toaddress = $config->getString('technicalcontact_email', 'na@example.org');
if($email !== 'na@example.org') { if ($toaddress !== 'na@example.org') {
$email = new SimpleSAML_XHTML_EMail($email, 'simpleSAMLphp error report', $from); $email = new SimpleSAML_XHTML_EMail($toaddress, 'simpleSAMLphp error report', $from);
$email->setBody($message); $email->setBody($message);
$email->send(); $email->send();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment