The code aside processes a standard E-mail, its result would be to send a mail message to the Addressee and an hidden carbon copy [Bcc] to the SENDER The Addressee will see in his Mail-Client the following : 1) From: PHP-Mail 2) To: Addressee Title 3) html-message ...if the Addressee checks the properties of the received E-mail, he will be able to see the strings [From] & [To] and all other headers and details that the mail server will encode to the message. PHP-mail() can forge the From-header and this is the reason that some WEB-SERVER will classify this message as JUNK or SPAM. If you would like to let appear in plain the header strings, just set in the code :
It is our firm opinion that this should be left to the CLIENT, like for example Yahoo SERVERS do, by making related proper settings and releasing the appropriate TOOLS to their users' usage, as otherwise it would be left to Yahoo to decide what to return to their final users or not. |
<? $to = "Addressee Title <addressee@his_server.com>"; $subject = "Syntax & Performance"; $message = "<font color=green><b>html</font> - message :-)</b>"; $forge="ulyss@no.where"; $headers = "From: PHP-Mail <$forge>\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset='iso-8859-1'\r\n"; $headers .= "Bcc: <webmaster@your_server.com>\r\n"; $result = mail($to,$subject,$message,$headers); /* Parameters' Order : [1st=$to] - [2nd=$subject] - [3rd=$message] - [4th=$headers] Next blue line will tell the Sender that the E-mail has been sent. */ if($result){echo"E-mail has been sent to [$to]";} ?>
| ||
So these below will be the properties informations that the Clients will show. To view all properties' details, if you run Outlook Express, just rightclick on the message and choose Properties from the Menu. ...Then choose > Details > [finally] Original Message In conclusion remember that Pc-mail works the same as by real mail, if you receive a post-system mail, with a nicely stamped SENDER on the rear side, it's not assured that is real and correct. ...So watch out for the authenticity of the PC-mail-messages you might receive and always cross-check mails entering your IN-BOX. . . . Stay ALERT :-)
|
|
To header ...note that the Addressee-Server strains to return all possible informations to his USER. Return-Path: <nobody@id_php_server.domain.com> [php server mail()] Delivered-To: user@addressee.com Received: from localhost (smtp-in09.addressee.com [127.0.0.1]) [addressee server] by smtp-in09.addressee.com (Postfix) with ESMTP id 9A86144016 for <user@addressee.com>; Sat, 20 Jan 2007 09:01:13 +0100 (CET) X-Virus-Scanned: amavisd-new at addressee.com Received: from smtp-in09.addressee.com ([127.0.0.1]) by localhost (smtp-in09.addressee.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id e4nNrsdflBqa for <user@addressee.com>; Sat, 20 Jan 2007 09:01:10 +0100 (CET) Received: from id_php_server.domain.com (id_php_server.domain.com [69.50.195.153]) by smtp-in09.addressee.com (Postfix) with ESMTP id CAB4E4400C for <user@addressee.com>; Sat, 20 Jan 2007 09:01:07 +0100 (CET) Received: from nobody by id_php_server.domain.com with local (Exim 4.63) (envelope-from <nobody@id_php_server.domain.com>) id 1H8B9t-0001le-NT; Sat, 20 Jan 2007 01:01:05 -0700 To: Addressee Title <user@addressee.com> Subject: Syntax & Performance From: PHP-mail <ulyss@no.where> Message-Id: <E1H8B9t-0001le-NT@id_php_server.domain.com> Date: Sat, 20 Jan 2007 01:01:05 -0700 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - id_php_server.domain.com X-AntiAbuse: Original Domain - addressee.com X-AntiAbuse: Originator/Caller UID/GID - [99 32002] / [47 12] X-AntiAbuse: Sender Address Domain - id_php_server.domain.com X-Source: X-Source-Args: /usr/local/apache/bin/httpd -DSSL X-Source-Dir: ics-php.com:/public_html/forum/ss/t-mail X-Antivirus: AVG for E-mail 7.5.432 [268.17.1/640] Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=======AVGMAIL-45B1CC660096=======" --=======AVGMAIL-45B1CC660096======= Content-Type: text/html; charset='iso-8859-1' <font color=green><b>html</font> - message :-)</b> --=======AVGMAIL-45B1CC660096======= Content-Type: text/plain; x-avg=cert; charset=us-ascii Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Content-Description: "AVG certification" No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.1/640 - Release Date: 19/01/07 16.46 --=======AVGMAIL-45B1CC660096=======-- ============================================== ========================================================= ==================================================================== ********************************************************************Bcc header ************************************************* *************** Bcc header begin **************** Return-path: <nobody@id_php_server.domain.com> Envelope-to: webmaster@your_server.com [Line above reports these details as belonging to a Bcc header message] Delivery-date: Sat, 20 Jan 2007 01:01:06 -0700 Received: from nobody by id_php_server.domain.com with local (Exim 4.63) (envelope-from <nobody@id_php_server.domain.com>) id 1H8B9t-0001le-NT; Sat, 20 Jan 2007 01:01:05 -0700 To: Addressee Title <user@addressee.com> Subject: Syntax & Performance From: PHP-mail <ulyss@no.where> Message-Id: <E1H8B9t-0001le-NT@id_php_server.domain.com> Date: Sat, 20 Jan 2007 01:01:05 -0700 X-Antivirus: AVG for E-mail 7.5.432 [268.17.1/640] Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=======AVGMAIL-45B1CC6D00F8=======" --=======AVGMAIL-45B1CC6D00F8======= Content-Type: text/html; charset='iso-8859-1' <font color=green><b>html</font> - message :-)</b> --=======AVGMAIL-45B1CC6D00F8======= Content-Type: text/plain; x-avg=cert; charset=us-ascii Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Content-Description: "AVG certification" No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.1/640 - Release Date: 19/01/07 16.46 --=======AVGMAIL-45B1CC6D00F8=======-- *********** Bcc header end *********** **************************************