success) { $captchaResp = "";} } else{ $captchaResp = "Invalid Captcha"; } // Send mail if ( $nameErr == "" && $emailErr == "" && $captchaResp == "") { $mail = new PHPMailer(true); $mail->IsSMTP(); // telling the class to use SMTP try{ $mail->SMTPDebug = 0; // enables SMTP debug information (for testing) $mail->Subject = $Subject; $sparxAddress = "marketing@sparxsystems.com"; $mail->SetFrom($sparxAddress, "Sparx Marketing"); $mail->AddAddress($email , $name); $body = " Newsletter / Webinar: $Subject

Hi $name,

Please reply to this message to confirm your $Subject request to the Sparx Systems Newsletter and Webinar List.

Best Regards

The Sparx Marketing Team
www.sparxsystems.com "; $mail->MsgHTML($body); // Send the message if($mail->Send()) { $mailsendOK = true; $note = $Subject; header("Location:/partners/submit_success.html?notice=$note"); exit; } } catch (phpmailerException $e) { echo $e->errorMessage(); //Pretty error messages from PHPMailer } catch (Exception $e) { echo $e->getMessage(); //Boring error messages from anything else! } } } function test_input($data) { $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); return $data; } function spamcheck($field) { $field=filter_var($field, FILTER_SANITIZE_EMAIL); if(filter_var($field, FILTER_VALIDATE_EMAIL)) { return TRUE; } else { return FALSE; } } ?>

Restez informé des dernières nouveautés de Sparx

" method="post" id="form1" name="form1">
    Restez en contact avec:
  • Annonces de produits et bulletins d'information
  • Webinaires interactifs mensuels sur le produit

">

" />