Re: PHP mail



On 30 Oct, 09:28, lak <lakindi...@xxxxxxxxx> wrote:
I send a mail by using the PHP functions.

I want to find whether the message is send by the original user or
some one send the message in another name.

For example:
In the PHP mail function I specified the from address as some other
user name.
How can I find, whether that user sends the mail or it is send by some
other user using PHP script

How can we check that.

If you want to establish the origin of an email, then the only
effective way to do so is via encryption using a key that the 'other'
person using the account does not have access to. How you implement
this is pretty much up to yourself. PGP (and GPG) use assymetric
encryption alogirthms - formerly the signature was appended to the end
of the email but more recent versions include the signature as an
attachment in the same way that x509 signed emails work. But you could
easily just generate a sha1 hash of the message body (contatenated
with a secret salt) and add that as an extra header, e.g. X-My-
Validation: $hashed

C.
.



Relevant Pages

  • Re: Core 5 Apache 2.2.2 PHP 5
    ... > Hi Tom ... PLEASE do not top post and kindly trim your signature to ... embedded php line html file is ignored A php file gets a message what do tou want firfox to do with the file save to disk or open with? ...
    (Fedora)
  • Re: deleting all the files in a directory
    ... Proudly running Debian Linux with 2.6.12-1-686 kernel, KDE3.5.0, and PHP ... 5.1.2-1 generating this signature. ... Version: GnuPG v1.4.2 ...
    (comp.lang.php)
  • Re: constructors
    ... > Is it possible to have more constructors in the same class? ... As I understand it, all methods in PHP follow the general functions rule, ... in PHP the "signature" is only the method's name. ...
    (comp.lang.php)
  • Re: strong/weak typing and pointers
    ... the signature (string, int) -> string? ... I don't know PHP, ... I don't know what "permanent coercions" means. ...
    (comp.lang.python)
  • Re: PHP mail
    ... I want to find whether the message is send by the original user or ... In the PHP mail function I specified the from address as some other ... other user using PHP script ...
    (comp.lang.php)