Basic PHPMailer SMTP configuration issue -


i trying configure phpmailer smtp.

here code:

if ($_server["request_method"] == "post") {      $recipient_email = $_post["eb_email_m"];     $recipient_name = $_post["eb_firstname"] . $_post["eb_lastname"];     $recipient_reference = $_post["eb_reference_m"];      $mail = new phpmailer;      $mail->issmtp();                                         $mail->host = 'smtp.strato.de';                           $mail->smtpdebug = 2;                            $mail->port = 587;                                        $mail->smtpauth = true;                                   $mail->username = 'contact@vroum.biz';                    $mail->password = 'xxxxxxxxxx';                        $mail->smtpsecure = 'tls';                                 $mail->addreplyto("contact@vroum.biz", "vroum gabon -- appli mobile");     $mail->setfrom('contact@vroum.biz', 'vroum gabon -- appli mobile');     $mail->addaddress($recipient_email);                       $mail->ishtml(true);                                     $mail->subject = 'vroum gabon - inscription conducteur';     $mail->body = 'bonjour' . $recipient_name . ',<br/><br/>' .                   'votre paiement est en cours.<br/><br/>' .                   'votre numéro de référence:' . $recipient_reference . '<br/><br/>' .                                                   'dès que la transaction est effectuée, votre profil de conducteur<br/>' .                   'sera mis en ligne et vous pourrez poster une offre de covoiturage.<br/>'  .                   '<br/><br/>' .                   '<b>questions/contact: tél: +241 07371979 - email: service@suncomcocotiers.com<b/>' .                   '<br/>' .                   '<b>@2016 vroum gabon</b><br/>'    .                   '<b><a href="#">suncom cocotiers</a></b>';      $mail->altbody = 'le contenu du message email pour les clients non html';      //send message, check errors     if (!$mail->send()) {         echo "mailer error: " . $mail->errorinfo;     } else {         echo "message sent!";     } }    

i looked closely @ example:

[https://github.com/phpmailer/phpmailer/blob/master/examples/smtp.phps][1]

the 3 recipient variables ($recipient_email,$recipient_name, $recipient_reference) have sanitized value.

i don't know how debug php code moves on next php page , correctly populates database form data.

thanks in advance.

k.


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -