note 39006 deleted from ref.mail by nlopess

From: Date: Wed, 14 Jan 2004 19:10:14 +0000
Subject: note 39006 deleted from ref.mail by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-63553@lists.php.net to get a copy of this message
Note Submitter: TimofeyShickolenkov ---- Some antispam soft requires some text in a header of message for identify a message is not spam. I send a mail like follows: $email = "someuser@target_domain"; $body = "<html based body>"; $idmes = rand(); $afterdot = Now(year).Now(month).Now(day).Now(hour).Now(min).Now(sec); $newheader = "From: \"User\" <manager@myshop.lan>\nMIME-Version: 1.0\nContent-Type: text/html; charset=\"koi8-r\"\nContent-Transfer-Encoding: 8bit\nX-Mailer: My Internet Agent v3.10\nMessage-ID: <$idmes.$afterdot@myshop.lan>\n"; mail("$email",$subject,$body,$newheader); Especially needed: 1. a name in a "From" field (not only email address). 2. Message-ID 99% of my automatically generated mail are recieving by recipients.

« previous php.notes (#63553) next »