Re: Prevent sending emails with hook_mail_alter() in d6?

Mario Schnauss <[email protected]>
Newsgroups gmane.comp.php.drupal.devel
Message-ID <81E696C5C04B324BACD5B46ED537B2522E253880CB@camira-zh.corp.unic.com>
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()?

Mario


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

On Thu, Mar 15, 2012 at 7:20 AM, Mario Schnauss wrote:
> Hi all,
>
>
>
> i am looking for a clean way to prevent drupal 6 sending emails on my custom
> conditions. In drupal7 i can use hook_mail_alter() and set "send" parameter
> to false. Is there an workaround for that drupal6?

Did you try to do it the same way?  I just looked at api.drupal.org to
compare the differences and I don't see any.

-- 
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.