0
$email = $_REQUEST['email'];
$mail->IsSMTP();
$mail->Host = "smtp.***.com.br";
$mail->SMTPAuth = true;
$mail->Username = 'contato@***.com.br';
$mail->Password = '******';
$mail->From = $email; <<<<<<<<<<<<<<ERRO>>>>>>>>>>>>>>>>>>
$mail->Sender = "[email protected]";
$mail->FromName = "Contato - www.contato.com.br";
When I use I put the direct value in ($mail->From)= "[email protected]". It works normally, when I put a variable, error, algem can help me?
Which error appears?
– rray
Post the error so we can help better, please !
– Gabriel Ozzy
It was not possible to send the email. Error message: SMTP Error: The following Recipients failed: [email protected] SMTP server error: 5.7.1 : Sender address Rejected: Access denied
– Eduardo F. Santos
Comment this line $mail->Issmtp();
– Felipe Sampaio