diff --git a/accounts/lostpassword.php b/accounts/lostpassword.php index bdf4569..62b7699 100644 --- a/accounts/lostpassword.php +++ b/accounts/lostpassword.php @@ -35,7 +35,7 @@ function generate($how_long) { $mail->SMTPAuth = true; $mail->Username = $mail_server; $mail->Password = $mail_server_password; - $mail->SMTPSecure = 'ssl'; + $mail->SMTPSecure = $mail_type; $mail->Port = $smtp_port; $mail->setFrom($mail_server); @@ -62,4 +62,4 @@ function generate($how_long) { } } -?> \ No newline at end of file +?>