GoPymes's Blog

Agregar HTML a wp_mail()

email wordpress

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/gopymes/blog.gopymes.pe/wp-content/plugins/codecolorer/codecolorer-core.php on line 111

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/gopymes/blog.gopymes.pe/wp-content/plugins/codecolorer/codecolorer-core.php on line 112

Al usar la funcion wp_mail() de WP para envíar emails, nos tomamos con la sorpresa que no podemos incluir etiquetas HTML en el cuerpo del email. Eso se soluciona rápidamente con un hook que WP te permite:

1
 

[notification type=”alert-info” close=”false” ]Recuerda que este código debes colocarlo en functions.php[/notification]

Leave a Reply

Your email address will not be published. Required fields are marked *