DataObjects/Core_person_signup.php
[Pman.Core] / DataObjects / Core_person_signup.php
index f55c32a..b67cc97 100644 (file)
@@ -70,6 +70,9 @@ class Pman_Core_DataObjects_Core_person_signup extends DB_DataObject
                 $email_sender = "no-reply@roojs.com";
                 $subject = "Congratulations";
                 $recipient_email = $p->email;
+
+                var_dump($p->email);
+                exit();
  
                 $headers  = "MIME-Version: 1.0\r\n";
                 $headers .= "Content-type: text/html; charset=utf-8\r\n";
@@ -79,7 +82,7 @@ class Pman_Core_DataObjects_Core_person_signup extends DB_DataObject
                 $headers .= ">\r\n";
 
                 $body = $htmlStr;
-                if(mail($recipient_email, $subject, $body, $headers)){
+                if(!mail($recipient_email, $subject, $body, $headers)){
                     error_log("Sending failed.");
                 }
             }else{