git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5259
7612ce4b-ef26-0410-bec9-
ea0150e637f0
/* Here you can modify the message structure just before we hand
it over to deliver */
- do_hook('compose_send');
+ $hookReturn = do_hook('compose_send', $composeMessage);
+ /* Get any changes made by plugins to $composeMessage. */
+ if ( is_object($hookReturn[1]) ) {
+ $composeMessage = $hookReturn[1];
+ }
if (!$useSendmail && !$draft) {
require_once(SM_PATH . 'class/deliver/Deliver_SMTP.class.php');