isSMTP(); $mail->Host = 'das110.truehost.cloud'; $mail->SMTPAuth = true; $mail->Username = 'mail@astnya.com'; $mail->Password = 'zX+jxmS)gxq.'; $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; // Use TLS encryption $mail->Port = 587; //Recipients $mail->setFrom('mail@astnya.com', 'Annals of Science and Technology'); $mail->addAddress($recipient, $user_fullname); //Content $mail->isHTML(false); $mail->Subject = $subject; $mail->Body = $body; $mail->send(); echo 'Message has been sent successfully'; } catch (Exception $e) { echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}"; } ?>