Anonymous E-mail

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mshita
Forum Commoner
Posts: 32
Joined: Sat Jul 03, 2004 8:55 pm
Location: Portland, OR
Contact:

Anonymous E-mail

Post by mshita »

Hi,

Is it possible to use php to strip an outgoing e-mail any information saying where it is coming from?

I want to be able to send an e-mail without making it possble for the receiver to send any e-mail back. I'm making a little fun site where members can send funny anonymous e-mails to each other.

Mounir
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

just set the reply level email addresses to some blackhole address on your email server..
mshita
Forum Commoner
Posts: 32
Joined: Sat Jul 03, 2004 8:55 pm
Location: Portland, OR
Contact:

Post by mshita »

I'm doing this:

Code: Select all

$user = "From ".$from.":"; 
				
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; ";
$headers .= "charset=iso-8859-1\r\n";
$headers .= "From: $user \r\n";
Good thing is that it doesn't show who the e-mail is from. But the mail message is sent to some cell phone and with t-mobile it shows the main e-mail address to my server. While on Sprint and AT&T it shows it came from nobody (which is what I want).
Post Reply