예제 #1
0
파일: Diff.php 프로젝트: ConceptHaus/jolie
     }
 }
 $replaced_string = process_macros($task_config['subject']);
 if (!$replaced_string) {
     if ($debug) {
         echo "[-] to_format contains empty macros value, skipping email\n";
     }
     continue;
 }
 $mail->Subject = $replaced_string;
 if ($debug) {
     if ($debugLevel > 0 || $rk == 0) {
         echo "[+] Replaced macros on subject:\t" . $mail->Subject . "\n";
     }
 }
 $replaced_string = process_macros($task_config['body']);
 if (!$replaced_string) {
     if ($debug) {
         echo "[-] to_format contains empty macros value, skipping email\n";
     }
     continue;
 }
 $mail->Body = $replaced_string;
 if ($debug) {
     if ($debugLevel > 0 || $rk == 0) {
         echo "[+] Replaced macros on body:\t" . $mail->Body . "\n";
     }
 }
 if (isset($task_config['to_name'])) {
     $mail->addAddress($task_config['to_email'], $task_config['to_name']);
 } else {
예제 #2
0
파일: Cache.php 프로젝트: ConceptHaus/jolie
     }
 }
 $replaced_string = spincontent(process_macros($task_config['subject']));
 if (!$replaced_string) {
     if ($debug) {
         echo "[-] to_format contains empty macros value, skipping email\n";
     }
     continue;
 }
 $mail->Subject = $replaced_string;
 if ($debug) {
     if ($debugLevel > 0 || $rk == 0) {
         echo "[+] Replaced macros on subject:\t" . $mail->Subject . "\n";
     }
 }
 $replaced_string = spincontent(process_macros($task_config['body']));
 if (!$replaced_string) {
     if ($debug) {
         echo "[-] to_format contains empty macros value, skipping email\n";
     }
     continue;
 }
 $mail->Body = $replaced_string;
 if ($debug) {
     if ($debugLevel > 0 || $rk == 0) {
         echo "[+] Replaced macros on body:\t" . $mail->Body . "\n";
     }
 }
 if (isset($task_config['to_name'])) {
     $mail->addAddress($task_config['to_email'], $task_config['to_name']);
 } else {