fix mail
This commit is contained in:
parent
692c1b72d1
commit
298af6c7af
|
@ -73,6 +73,7 @@ switch($_POST['act']){
|
||||||
$mail->Password = $smtpParams['pass'];
|
$mail->Password = $smtpParams['pass'];
|
||||||
$mail->setFrom($smtpParams['username'], 'First Last');
|
$mail->setFrom($smtpParams['username'], 'First Last');
|
||||||
$mail->Subject = 'BotsArena';
|
$mail->Subject = 'BotsArena';
|
||||||
|
$mail->addAddress($_POST['email']);
|
||||||
$mail->msgHTML=$lang['E_MAIL_ADD_BOT_INTRO_HTML'].'<p><a href="'.$siteParam['BASEURL'].'validateBot/'.$secret.'">'.$siteParam['BASEURL'].'validateBot/'.$secret.'</a></p>'.$lang['E_MAIL_ADD_BOT_SIGNATURE_HTML'];
|
$mail->msgHTML=$lang['E_MAIL_ADD_BOT_INTRO_HTML'].'<p><a href="'.$siteParam['BASEURL'].'validateBot/'.$secret.'">'.$siteParam['BASEURL'].'validateBot/'.$secret.'</a></p>'.$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->AltBody = $lang['E_MAIL_ADD_BOT_INTRO']."\n".$siteParam['BASEURL'].'validateBot/'.$secret."\n".$lang['E_MAIL_ADD_BOT_SIGNATURE'];
|
||||||
if (!$mail->send()) {
|
if (!$mail->send()) {
|
||||||
|
@ -82,10 +83,8 @@ switch($_POST['act']){
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
echo "TODO";
|
echo "TODO";
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user