29d28 < $pdfis=""; 37,46d35 < // .replace(/\+\=/g,'#@!#').replace(/\+\+/g,'#@!#').replace(/ \+ /g,'#@#') < < if (strpos($emailto, "@") !== false) { < if (isset($_GET['htmltp'])) { < $pdfis=str_replace('#@#',' + ',str_replace('#@!#','++',str_replace('#@~#','+=',urldecode($_GET['htmltp'])))); < } else if (isset($_POST['htmltp'])) { < $pdfis=str_replace('#@#',' + ',str_replace('#@!#','++',str_replace('#@~#','+=',urldecode($_POST['htmltp'])))); < } < } < 116c105 < var pem=prompt('Please enter email address to email report to (and consider adding a comma separated mention of your own email address for Reply To All purposes)', emailtois); --- > var pem=prompt('Please enter email address to email report to', emailtois); 139,141c128 < global $outputto, $outputsofar, $outputpdf, $top, $istitle, $wastitle, $emailto, $pdfis; < $textareapointing=false; < if ($pdfis != "") $textareapointing=true; --- > global $outputto, $outputsofar, $outputpdf, $top, $istitle, $wastitle, $emailto; 230d216 < if ($pdfis == "") { 232,234d217 < } //else { < //file_put_contents("zaq.qaz",$emailto); < //} 246c229 < $message = "Please see the attachment."; --- > $message = "

Please see the attachment.

"; 257,263d239 < if (substr($pdfis,0,1) == "<") { < //$message=$pdfis; < $filename = str_replace(" ","",$wastitle) . ".html"; < //file_put_contents("zaq.qaz",$emailto . ' ' . str_replace(" ","",$wastitle)); < $filename = "tareap.html"; < $message = "Please download the attachment to open the webpage using Textarea Pointing techniques."; < } else { 265d240 < } 275d249 < 278d251 < //$headers .= 'Reply-To: ' . 'rmetcalfe@rjmprogramming.com.au' . $eol; 290d262 < if (substr($message,0,1) == '<') { 292,294d263 < } else { < $body .= "Content-Type: text/plain; charset=\"iso-8859-1\"".$eol; < } 296c265 < $body .= $message.$eol.$eol; --- > $body .= $message.$eol; 302,303c271,272 < $body .= "Content-Disposition: attachment;filename=\"" . $filename . "\"" . $eol; < $body .= $attachment.$eol.$eol; --- > $body .= "Content-Disposition: attachment".$eol.$eol; > $body .= $attachment.$eol; 306d274 < 310,317c278,279 < $mret=mail($to, $subject, $body, $headers); < //file_put_contents("zaq.qaz",$emailto . ' ' . str_replace(" ","",$wastitle) . ' ... ' . $mret); < < if ($textareapointing) { < exit; < } < exit; < //header("Location: ./prediff.php"); --- > mail($to, $subject, $body, $headers); > header("Location: ./prediff.php"); 406,412d367 < } else if ($pdfis != "") { < $outputto="pdfdownloademail"; < $title="Textarea Pointing Webpage"; < $istitle=$title; < $wastitle=$istitle; < ourhtmltopdf(""); < exit; 540c495 < } else if ($pdfis == "") { --- > } else {