print "<br><font size='5' color='#FF0000'>The Email address {$to} may not be valid and may be undeliverable.</font><br>"; flush(); continue; } else { if ($result == 1) { print "<br><font size='5' color='#008000'>Email Address {$to} is valid and deliverable.</font><br>"; } else { print "<br><font size='5' style='color:#FF0000'>The Email address {$to} may not be valid and may be undeliverable.</font><br>"; } } flush(); } print " Sending mail to {$to} ..."; } if (isset($_POST['chk_smtp']) && $_POST['chk_smtp'] == 'external') { $smtpMailer->setMailSubject($subject); if ($unsubLinkFlag === false) { if ($contenttype == 'plain') { $smtpMailer->setMailType('plain'); } else { $smtpMailer->setMailType('html'); $message = stripslashes($message); } $smtpMailer->setMailBody($message); $attachmentArray = array(); if (is_uploaded_file($fileatt)) { $file = fopen($fileatt, 'rb'); $data = fread($file, filesize($fileatt)); $attachmentArray['data'] = $data; $attachmentArray['type'] = $fileatt_type; $attachmentArray['name'] = $fileatt_name;