Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $mail = new PHPMailer(true);
- $mail->CharSet = "UTF-8";
- $mail->IsSMTP();
- $mail->Host = SMTPHost;
- $mail->SMTPDebug = SMTPDebug;
- $mail->SMTPAuth = SMTPAuth;
- $mail->Port = SMTPPort;
- $mail->Username = SMTPUsername;
- $mail->Password = SMTPPassword;
- $mail->SMTPSecure = "ssl";
- $mail->IsHTML(true);
- $mail->AddAddress($to, $to);
- $mail->SetFrom($from, $from);
- $mail->AddReplyTo($from, $from);
- $subject = "oublié ?"; // if "oublie": it works fine !
- $mail->Subject = $subject;
- $mail->Send();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement