Skip to content

Commit

Permalink
Added hook: mail_compose_after_save
Browse files Browse the repository at this point in the history
  • Loading branch information
asig2016 authored and ralfbecker committed Jul 22, 2020
1 parent 8c46a2d commit ea548a9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mail/inc/class.mail_compose.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,13 @@ function compose(array $_content=null,$msg=null, $_focusElement='to',$suppressSi
try
{
$success = $this->send($_content);

//hook mail_compose_after_save
Api\Hooks::process( array(
'location' => 'mail_compose_after_save',
'content' => $_content,
));

if ($success==false)
{
$sendOK=false;
Expand Down

0 comments on commit ea548a9

Please sign in to comment.