Update analytics.php
[clinton/MarylandElectronicPetitionSignature.git] / email.php
index ab9ac0a..8dd59b1 100644 (file)
--- a/email.php
+++ b/email.php
@@ -31,10 +31,10 @@ function meps_mail($to,$msg,$sub){
     $mail = $smtp->send($to, $headers, $body);
 
     if (PEAR::isError($mail)) {
-       // echo('<p>' . $mail->getMessage() . '</p>');
+       return $mail->getMessage();
     } else {
-       // echo('<p>Message successfully sent!</p>');
+       return 'NO ERROR';
     }
-    return $mail->getMessage();
+    
 }