Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $from = "prueba.com <noreply@prueba.com>";
- $to = "myemail@gmail.com";
- echo "<div>";
- $contenido = ob_get_contents();
- echo "</div>";
- $cabeceras = "Content-type: text/html; charset=iso-8859-1 rn"
- ."MIME-Version: 1.0 rn"
- ."To: $cliente <$email> rn"
- ."From: prueba <prueba@example.com> rn";
- mail($to,$subject,$contenido,$cabeceras);
- ob_end_flush();
- ob_start();
- echo "<div>";
- // more html
- echo "</div>";
- $contenido = ob_get_clean();
- $from = "prueba.com <noreply@prueba.com>";
- $to = "myemail@gmail.com";
- ob_start();
- echo "<div>";
- echo "<table border='1'><tr><td>TEST</td></tr></tr>";
- echo "</div>";
- $contenido = ob_get_clean();
- $cabeceras = "Content-type: text/html; charset=iso-8859-1 rn"
- ."MIME-Version: 1.0 rn"
- ."To: $cliente <$email> rn"
- ."From: prueba <prueba@example.com> rn";
- mail($to,$subject,$contenido,$cabeceras);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement