SMTPDebug = SMTP::DEBUG_SERVER; $mail->isSMTP(); $mail->Host = 'mail.blackhoundenterprises.com'; $mail->SMTPAuth = true; $mail->Username = 'info@blackhoundenterprises.com'; $mail->Password = 'r0N=mrp%l122'; $mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; $mail->Port = 465; // Email content $mail->setFrom('info@blackhoundenterprises.com', 'Blackhound | Architecture & Rendering'); $mail->addAddress('dewie125@gmail.com'); $mail->Subject = 'My Test'; $mail->Body = 'Hello world!'; $mail->send(); echo 'Email sent successfully'; } catch (Exception $e) { echo 'Email could not be sent. Error: ', $mail->ErrorInfo; } ?>