Modifying Email HTML Content

6.03K viewsThemes
1

I’d like to know how the email templates can be edited, I’d like to properly style the emails going out and include some other elements. Doing this under Options -> Emails doesn’t work, do I need to edit a core plugin file?

Also emails are being sent out with the From address as “wordpress” and the email as [email protected] – would be good to be able to adjust this…

Maybe Postman plugin for WP can help you with your second problem (the sender address).

0

I have the same problem also it is not possible to put a enter or something like that.

commented on answer

Hello Rik,
Already got fixed in 4.0, try our beta version.

0

Hello,

Also emails are being sent out with the From address as “wordpress” and the email as [email protected] – would be good to be able to adjust this…

Please use an SMTP plugin to fix this.

For HTML email, you have to edit this line: email-header.  Replace text/plain to text/html. And then you can add html to your email message.

commented on answer

I did this, but every time I include HTML markup in the email content box under options, once I save, the markup clears and it defaults to the original message and any plain text added.

Same here, I’d changed the header to send html markup. That’s work fine when I add some html content directly to `send_email()` function.
But when insert some html content to message textarea in anspress’s email options panel, after save it removes html content and just keep the plain text. Seems it escaping the html tags.