Commits

christiansalazar  committed 0acab43

crugemailer original funcional

  • Participants
  • Parent commits 4f6f381

Comments (0)

Files changed (1)

File CrugeMailerBase.php

 	}
 	protected function sendEmail($to,$subject,$body) {
 		$from = $this->mailfrom;
+		$_subject = $this->subjectprefix.$subject;
 		$headers="From: {$from}\r\nReply-To: {$from}";
-		$ret = @mail($to,$this->subjectprefix.$subject,$body,$headers);
-		$tmp = "to:".$to."\nsubject:".$subject."\nbody:".$body."\n";
+		$ret = @mail($to,$_subject,$body,$headers);
+		$tmp = "to:".$to."\nsubject:".$_subject."\nbody:".$body."\n";
 		Yii::log("email:\n".$tmp."\n","info");
 		return $ret;
 	}