isSMTP(); ////Enable SMTP debugging //// 0 = off (for production use) //// 1 = client messages //// 2 = client and server messages $mail->SMTPDebug = 2; ////Ask for HTML-friendly debug output $mail->Debugoutput = 'html'; ////Set the hostname of the mail server $mail->Host = "mx.iamfabulous.de"; ////Set the SMTP port number - likely to be 25, 465 or 587 $mail->Port = 587; ////Whether to use SMTP authentication $mail->SMTPAuth = false; ////Set who the message is to be sent from $mail->setFrom('jungegemeinde@iamfabulous.de', 'JG Adlershof'); ////Set an alternative reply-to address $mail->addReplyTo('mail@iamfabulous.de', 'Maximilian Möhring'); return $mail; } function sendMailWithHash($email, $name, $hash) { $mail = getInstance(); $mail->addAddress($email); $mail->Subject = 'JG Login'; $mail->msgHTML(file_get_contents('static/mail_template.php')); return $mail->sent(); }