Re: PHP mail
- From: "C. (http://symcbean.blogspot.com/)" <colin.mckinnon@xxxxxxxxx>
- Date: Thu, 30 Oct 2008 06:10:05 -0700 (PDT)
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.
.
- References:
- PHP mail
- From: lak
- PHP mail
- Prev by Date: Re: bollhy"system" function output displays twice last line
- Next by Date: Re: Run a SQL query based on HTML drop down selection?
- Previous by thread: Re: PHP mail
- Next by thread: Re: PHP mail
- Index(es):
Relevant Pages
|