Cc = $Cc; $msg->Bcc = $Bcc; //** set the message to be text only and set the email content. $msg->TextOnly = false; $msg->Content = $htmlVersion; //** attach any images to the email for ($i = 0; $i <= $maxcounter-1; $i++) { $mime = "image/".$matches[1][$i]; $target_file = $matches[0][$i]; $msg->Attach($target_file, $mime); } //** send the email message. $SendSuccess = $msg->Send(); // echo "HTML email w/attachment was ",($SendSuccess ? "sent" : "not sent"), "
"/n; unset($msg); //** do MD5 to prevent repeat emails chdir('..'); $myFile = "rss_backup.txt"; $fh = fopen($myFile, 'w') or die("can't open file"); fwrite($fh, $hash); fclose($fh); //** clean up $foo = system('rm -r wget_dump'); ?>