We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

The email_start_finalbody hook is missing...

Development and Programming

Dave Scotese's avatar
Dave Scotese
5 posts
15 years ago
Dave Scotese's avatar Dave Scotese

I wrote my own extension so that members of my site would receive only 3 emails before the “accept_admin_email” setting on their account would be set to N. This extension also tacks on a message about the feature to every outgoing email, but it requires the email_start_finalbody hook, which doesn’t exist in EE 2.1.3.

I added it, and would appreciate any insight from EE developers on any issues my alteration of the code might cause. I added the following two lines at the top of the _build_message function in /codeigniter/system/libraries/Email.php:

$this->Ext = new EE_Extensions();
$this->Ext->call('email_start_finalbody',$this);
       
John Henry Donovan's avatar
John Henry Donovan
12,339 posts
15 years ago
John Henry Donovan's avatar John Henry Donovan

Welcome to the forums Dave 😊

I’m going to move this thread to the developers forum for you

You are also welcome to make a feature request for this hook

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.