alguem ae pode me ajuda a configura esse script de confirmaçao via email?
<?php header("Content-Type: text/html; charset=ISO-8859-1",true);
$nome = strip_tags(trim($_POST[nome]));
$email = strip_tags(trim($_POST));
$titulo = strip_tags(trim($_POST[titulo]));
$mensagem = strip_tags(trim($_POST[mensagem]));
{
require('phpmailer/class.phpmailer.php');
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->SMTPAuth = true;
$mail->Port = '587'; /*/ Do not change without knowing what it is /*/
$mail->Host = 'smtp.gmail.com';
$mail->Username = '
[email protected]';
$mail->Password = 'SENHA';
$mail->SetFrom('EMAIL QUE RECEBERA', 'Conta '.$account_logged->getCustomField("name").' fez pagamento');
$mail->AddAddress('EMAIL QUE RECEBERA', 'Confirmação NOME DO OT');
$mail->Subject = 'Confirmação - '.$account_logged->getCustomField("name").'';
$body = "
<font face='verdana, arial'>
<strong>Character : </strong>{$nome} <br />
<strong>E-mail : </strong>{$email} <br />
<strong>Account : </strong>{$titulo} <br />
<strong>Mensagem : </strong>{$mensagem} <br />
</font>
";
$mail->MsgHTML($body);
if($mail->Send())
$msg = '
<SCRIPT LANGUAGE="Javascript">
<!--
window.alert("Confirmation sent successfully !\n\n Wait 24 hours for them to drop their points in your account"); location.href=\'index.php?subtopic=latestnews\';
// -->
</SCRIPT>
';
else
$msg = ' <SCRIPT LANGUAGE="Javascript">
<!--
window.alert("Your message was not sent, try again")
// -->
</SCRIPT>';
};
?>
alguem ae sabe configura esse script de confirmaçao via email?
<?php header("Content-Type: text/html; charset=ISO-8859-1",true);
$nome = strip_tags(trim($_POST[nome]));
$email = strip_tags(trim($_POST));
$titulo = strip_tags(trim($_POST[titulo]));
$mensagem = strip_tags(trim($_POST[mensagem]));
{
require('phpmailer/class.phpmailer.php');
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->SMTPAuth = true;
$mail->Port = '587'; /*/ Do not change without knowing what it is /*/
$mail->Host = 'smtp.gmail.com';
$mail->Username = '
[email protected]';
$mail->Password = 'SENHA';
$mail->SetFrom('EMAIL QUE RECEBERA', 'Conta '.$account_logged->getCustomField("name").' fez pagamento');
$mail->AddAddress('EMAIL QUE RECEBERA', 'Confirmação NOME DO OT');
$mail->Subject = 'Confirmação - '.$account_logged->getCustomField("name").'';
$body = "
<font face='verdana, arial'>
<strong>Character : </strong>{$nome} <br />
<strong>E-mail : </strong>{$email} <br />
<strong>Account : </strong>{$titulo} <br />
<strong>Mensagem : </strong>{$mensagem} <br />
</font>
";
$mail->MsgHTML($body);
if($mail->Send())
$msg = '
<SCRIPT LANGUAGE="Javascript">
<!--
window.alert("Confirmation sent successfully !\n\n Wait 24 hours for them to drop their points in your account"); location.href=\'index.php?subtopic=latestnews\';
// -->
</SCRIPT>
';
else
$msg = ' <SCRIPT LANGUAGE="Javascript">
<!--
window.alert("Your message was not sent, try again")
// -->
</SCRIPT>';
};
?>