Ejemplo n.º 1
0
         }
     }
     //																															 -----SUBJECT---
     // Check for any fields called "subject" and substitue/append them as the new subject
     $strSubject = $objMyForm->subsituteEmailElement($form_data->mailSubject, "name", "subject", false, true, true);
     if ($strSubject == "") {
         $strSubject = $form_data->title;
     }
     //																															 -------Intro---
     if ($form_data->useintro) {
         $form_intro = parseAuto($form_data->intro);
     } else {
         $form_intro = "";
     }
     if ($goodToGo) {
         $mailSuccess = $objMyForm->formToEmail($strFromName, $strFromEmail, $strReplyToName, $strReplyToEmail, $strToEmails, $strSubject, $form_intro, $form_data->appendtimestamp == 1, $strCC, $strBCC);
         if ($pfDebug) {
             if (!$mailSuccess) {
                 report_error(96, "Unable to send!", "Unable to send the email.");
             } else {
                 echo "\n<br />Mail Success!\n";
             }
         }
     } else {
         report_error(97, "Not Good To Go!", "Unable to prepare the email.");
     }
 } else {
     if ($pfDebug) {
         echo '<h1 style="color:red;">Not Ok</h1>';
         $tabs->endTab();
     }