From 9441abdfff1e1ba0f7e2cf5a9810c44fe8212c6d Mon Sep 17 00:00:00 2001 From: gnieark Date: Fri, 4 Dec 2015 23:32:53 +0100 Subject: [PATCH] fix mail --- src/act.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/act.php b/src/act.php index 49a481a..855e6ea 100644 --- a/src/act.php +++ b/src/act.php @@ -63,7 +63,7 @@ switch($_POST['act']){ $mail = new PHPMailer; $mail->isSMTP(); - $mail->IsHTML(true); + //$mail->IsHTML(true); $mail->SMTPDebug = 2; $mail->Debugoutput = 'html'; $mail->Host = $smtpParams['host']; @@ -75,8 +75,8 @@ switch($_POST['act']){ $mail->setFrom($smtpParams['username'], 'First Last'); $mail->Subject = 'BotsArena'; $mail->addAddress($_POST['email']); - $mail->msgHTML=$lang['E_MAIL_ADD_BOT_INTRO_HTML'].'

'.$siteParam['BASEURL'].'validateBot/'.$secret.'

'.$lang['E_MAIL_ADD_BOT_SIGNATURE_HTML']; - $mail->AltBody = $lang['E_MAIL_ADD_BOT_INTRO']."\n".$siteParam['BASEURL'].'validateBot/'.$secret."\n".$lang['E_MAIL_ADD_BOT_SIGNATURE']; + //$mail->msgHTML=$lang['E_MAIL_ADD_BOT_INTRO_HTML'].'

'.$siteParam['BASEURL'].'validateBot/'.$secret.'

'.$lang['E_MAIL_ADD_BOT_SIGNATURE_HTML']; + $mail->Body = $lang['E_MAIL_ADD_BOT_INTRO']."\n".$siteParam['BASEURL'].'validateBot/'.$secret."\n".$lang['E_MAIL_ADD_BOT_SIGNATURE']; if (!$mail->send()) { echo "Mailer Error: " . $mail->ErrorInfo; } else {