• LJagermaster

    (@the-living-legend)


    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)
  • 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 for more info.

    Love & joy – Callum.

    Thread Starter LJagermaster

    (@the-living-legend)

    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

    (@esmi)

    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

    (@the-living-legend)

    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

    (@esmi)

    No probs. I saw your new topic and poked the plugin developer concerned. ??

    Thread Starter LJagermaster

    (@the-living-legend)

    Thank you ??

    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

    (@the-living-legend)

    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:

      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

    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.