how to stop mailing users

Support for IntegraMOD 140

Moderator: Integra Moderator

how to stop mailing users

PostAuthor: Adrian Rea » Sun May 28, 2006 1:22 pm

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
Last edited by Adrian Rea on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Adrian Rea
Sr Integra Member
Sr Integra Member
 
Posts: 1263
Likes: 0 post
Liked in: 0 post
Joined: Sun Mar 12, 2006 12:59 am
Cash on hand: 0.00

Re: how to stop mailing users

PostAuthor: Okki » Tue May 30, 2006 1:55 pm

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);     }  
Last edited by Okki on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[hr][size=99px] [url=http]http][/size]
[color=red][size=99px][/size]
Please visit our advertisers.
User avatar
Okki
Dev Team
Dev Team
 
Posts: 576
Likes: 0 post
Liked in: 0 post
Joined: Sun Mar 26, 2006 2:05 pm
Cash on hand: 0.00

PostAuthor: Adrian Rea » Wed May 31, 2006 3:29 pm

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
Last edited by Adrian Rea on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Adrian Rea
Sr Integra Member
Sr Integra Member
 
Posts: 1263
Likes: 0 post
Liked in: 0 post
Joined: Sun Mar 12, 2006 12:59 am
Cash on hand: 0.00


Return to IntegraMOD 140

Who is online

Registered users: App360MonitorBot, Bing [Bot], Google [Bot]