I need help to send an email with an html design in php mailer , the fact is that I send my recipient email to an external server (not to gmail, or to hotmail, etc.), when sending it , all the html document is outdated and does not arrive as it should, in the case of gmail and hotmail arrives super well, I do not know if it is a problem of the recipient mail server or I am doing something wrong.
Annex the code:
<html>
<p>$mail = new PHPMailer; // se crea el objeto mail</p>
<p> $mail->isSMTP(); /// se activa smtp</p>
<p>$mail->CharSet = 'UTF-8';</p>
<p>$mail->SMTPDebug = 0;</p>
<p>$mail->Debugoutput = 'html';</p>
<p>$mail->Host = 'smtp.gmail.com'; /// servidor de correo de salida</p>
<p>$mail->SMTPAuth = true; /// validar authentication</p>
<p>mail->Username = '[email protected]'; /// correo de salida</p>
<p>$mail->Password = 'XXXXXXX'; //Contraseña</p>
<p>$mail->Port = 25; ///salida del puerto</p>
<p>$mail->setFrom('[email protected]', 'Fes'); //// correo de salida</p>
<p>$mail->addAddress('[email protected]', 'Pedido'); /// correo a ventas</p>
<p>$mail->isHTML(true); // Set email format to HTML</p>
<p>$mail->Subject = 'Pedido tienda Online'; // Asunto</p>
$mail->Body = "<html>Aqui va todo el diseño</p>
</html>";
</html>