Re: Prevent sending emails with hook_mail_alter() ind 6?

Mario Schnauss <[email protected]>
Newsgroups gmane.comp.php.drupal.devel
Message-ID <81E696C5C04B324BACD5B46ED537B2522E253880F1@camira-zh.corp.unic.com>
Thank's a lot Earnie,

the ticket you mentioned is http://drupal.org/node/800434. Now i know this feature will come some day.

Mario


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Earnie Boyd
Sent: Donnerstag, 15. März 2012 15:02
To: [email protected]
Subject: Re: [development] Prevent sending emails with hook_mail_alter() in d6?

On Thu, Mar 15, 2012 at 9:25 AM, Mario Schnauss <[email protected]> wrote:
> Hi Earnie,
>
> I set $messages['send'] to false, but it had no effect. drupal_mail() does differ in d6 and d7 in that case, so i think that won't work. Is there any other chance to stop mails that are already initialized with drupal_mail()?
>

Ah, yea, I see the difference now.  There was obviously a ticket to
resolve the issue that was not back ported to D6, you could try
looking for that.  The only other options, make sure the $send
parameter to drupal_mail is set to FALSE or modify the core code for
drupal_mail to add the bits after ``if ($send) {'' that are present in
D7.

-- 
Earnie
-- https://sites.google.com/site/earnieboyd
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.