Title: Custom e-mails&#8230;
Last modified: August 19, 2016

---

# Custom e-mails…

 *  [LJagermaster](https://wordpress.org/support/users/the-living-legend/)
 * (@the-living-legend)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/custom-e-mails/)
 * I’ve literally spent months trying to find something that allows to _only_ customise
   e-mails sent via any action of my wordpress site (ie. registration, password 
   related e-mails, post/comment notifications, etc…). I’m aware of and have used
   one of the more notorious ones – Theme My Login – however, I’m currently using
   Mingle since it’s a community based site but it doesn’t seem to have an option
   for e-mails.
 * I’m dubious about using both Mingle & TML together especially after I was unable
   to login using the TML login page and widget. And as yet haven’t found a plugin
   that will allow **complete customisation** of all e-mails (not just the technical
   stuff such as which host or port to use – **WP Mail SMTP** for example – but 
   also the content of the e-mail).
 * There are many plugins that provide this functionality, however they also change
   other settings that could mess with what I’ve already got in place, so far none
   do just this one thing. Short of a core hack which involves too much time and
   work to keep updated, I did come across **WP Mail Options**, which seems to contain
   a “Body” field, but there’s no real information on what this is for. Will it 
   do what I need or does anyone know of one that will?
 * Thanks in advance,
 * Lee C

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [Callum Macdonald](https://wordpress.org/support/users/chmac/)
 * (@chmac)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/custom-e-mails/#post-1781494)
 * Are you familiar with PHP? You could write something to do this like:
 *     ```
       add_filter('wp_mail', 'your_mail_hacking_function');
   
       function your_mail_hacking_function($vars) {
       	$vars['message'] = str_replace('search', 'replace', $vars['message']);
       	return $vars;
       }
       ```
   
 * See [wp_mail() in pluggable.php](http://core.trac.wordpress.org/browser/branches/3.0/wp-includes/pluggable.php#L271)
   for more info.
 * Love & joy – Callum.
 *  Thread Starter [LJagermaster](https://wordpress.org/support/users/the-living-legend/)
 * (@the-living-legend)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/custom-e-mails/#post-1781710)
 * Unfortunately I’m not familiar or confident enough with it to jump straight in
   and write my own code (past experience has proven this to be a _very_, **bad**,
   idea… :-/ ). Tbf if I was Iwould more than likely have “borrowed” code from other
   plugins referring specifically to this function. I’ll research it over time and
   hopefully come up with something, but any more info/advice you can give on this
   would be a great help…
 * Thanks again,
 * Lee C
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/custom-e-mails/#post-1781711)
 * [eShop](http://wordpress.org/extend/plugins/eshop/) includes the functionality
   to send out emails based upon templates stored in the database. Perhaps there’s
   something in there that might help?
 *  Thread Starter [LJagermaster](https://wordpress.org/support/users/the-living-legend/)
 * (@the-living-legend)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/custom-e-mails/#post-1781713)
 * Thanks esmi. Rather than diving straight into I’ve fired up a message on its 
   forum to ask advice first, so I’ll see what happens from there. I’m assuming 
   it would be a similar approach to taking code from Theme My Login and customising
   it to fit my needs, unfortunately that’s the difficult part, but time will tell
   if it can be done.
 * Thanks again,
 * Lee C
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/custom-e-mails/#post-1781714)
 * No probs. I saw your new topic and poked the plugin developer concerned. 🙂
 *  Thread Starter [LJagermaster](https://wordpress.org/support/users/the-living-legend/)
 * (@the-living-legend)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/custom-e-mails/#post-1781715)
 * Thank you 🙂
 *  [Callum Macdonald](https://wordpress.org/support/users/chmac/)
 * (@chmac)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/custom-e-mails/#post-1781721)
 * The code I posted is enough to modify any outgoing email. The challenge is, what
   do you want to do with emails? Which emails do you want to modify? How will you
   identify an email to modify? What changes do you want to make?
 * If you’re talking about simple search / replace, the code I posted is enough.
   If you’re talking about something more complicated, there’s no getting away from
   it, you’ll need to figure out exactly what you want changed and how it’s going
   to be changed.
 * Love & joy – Callum.
 *  Thread Starter [LJagermaster](https://wordpress.org/support/users/the-living-legend/)
 * (@the-living-legend)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/custom-e-mails/#post-1781753)
 * Essentially I’m looking to achieve the same results I’d get as if I were using
   Theme My Login, where I can set the exact content (including the slightly more
   technical stuff such as sender name/e-mail) of all e-mails sent out for:
    1.  New registrations
        Lost passwords Post/Comment notifications Essentially all
       of the main e-mails that would be triggered and sent out automatically by the
       system…
 * Since I’m not confident about running both TML and Mingle together after having
   login issues with the TML page/widget I’d be anxious about relying on it for 
   the e-mail customisation, so any help on this would be appreciated.
 * And since this thread is appearing in the WP Mail Options forum I have a couple
   of questions for the developer:
 * In the next update, would it be possible to replace the “body” fields with text
   boxes, rather than tiny text fields? A typical body of an e-mail has multiple
   lines & paragraphs, so a box that size is pretty useless.
 * Is it (or would it in future) be possible to customise all e-mails with different
   content (relative to the type of e-mail)?
 * Thanks again,
 * Lee C
 *  [derebo](https://wordpress.org/support/users/derebo/)
 * (@derebo)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/custom-e-mails/#post-1781904)
 * Hello,
 * Glad to read I’m not the only one with the same problem. I’d like to customise
   any WP outgoing email such as registration, lost password and so on.
 * Hacking WP files is always an option but definitely not the best one. Any WP 
   update will most probably render the hacking useless in the best scenario.
 * And yes, Theme My Login does allow at least to customise two email messages. 
   Does anyone know of a plugin that meets outgoing email customization needs? I’ve
   searched the plugin section, googled pages and pages and have not found a solution…
   🙁
 * Greetings and thanks for your attention.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Custom e-mails…’ is closed to new replies.

## Tags

 * [custom emails](https://wordpress.org/support/topic-tag/custom-emails/)

 * 9 replies
 * 4 participants
 * Last reply from: [derebo](https://wordpress.org/support/users/derebo/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/custom-e-mails/#post-1781904)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
