Page 1 of 1

how to stop mailing users

PostPosted: Sun May 28, 2006 1:22 pm
Author: Adrian Rea
I was asked this in an email and thought I would share it.
An other question, i am changing server with my stuff, also my forum

so i want to test with the forum db, but other files
but i don't want the "test" site to mail or send messages to people

how can i prevent this?
I would recommend the easiest way to create a :blackhole: email address that automattically kills mails sent to it, eg blackole at myforum.com then in emailer.php
FIND
Code: Select all
        $this->reply_to = trim($address);
REPLACE WITH
Code: Select all
        $this->reply_to = trim('blackole at myforum.com');
I have not tested this but this is where I would start.

A

Re: how to stop mailing users

PostPosted: Tue May 30, 2006 1:55 pm
Author: Okki
How about these then?
Code: Select all
    // Sets an email address to send to     function email_address($address)     {         $this->addresses['to'] = trim($address);     }       function cc($address)     {         $this->addresses['cc'][] = trim($address);     }       function bcc($address)     {         $this->addresses['bcc'][] = trim($address);     }  

PostPosted: Wed May 31, 2006 3:29 pm
Author: Adrian Rea
yes looking at it more closely you can bin every single mail with
Code: Select all
    // Sets an email address to send to     function email_address($address)     {         $this->addresses['to'] = trim('blackole at myforum.com');     }       function cc($address)     {         $this->addresses['cc'][] = trim('blackole at myforum.com');     }       function bcc($address)     {         $this->addresses['bcc'][] = trim('blackole at myforum.com');     }  


A