Page 1 of 1

Anonymous E-mail

Posted: Sun Aug 22, 2004 12:40 pm
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

Posted: Sun Aug 22, 2004 12:54 pm
by feyd
just set the reply level email addresses to some blackhole address on your email server..

Posted: Sun Aug 22, 2004 12:59 pm
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).