Answer the question
In order to leave comments, you need to log in
How to send an email from a fake sender?
I need to send one email from an address I don't have access to.
How can this be implemented in PHP, through a server or website.
Answer the question
In order to leave comments, you need to log in
You can just send via php mail function. But then the recipient will display "it is impossible to authenticate the sender."
In general, it's better not to do that :)
The From: header is easy to fake. But the email header data will still indicate which server the email went through. It will work for a lamyr, but not for a well-versed person, on the contrary, he will know that someone tried to forge a letter ...
I don't understand what I need... Maybe like this:
if( isset( $_COOKIE['token'] ) )
{
header( 'Refresh: 0; url=/profile.php' );
}
else{
}
But keep in mind that cookies are stored by the user and he can set them himself.
Something like this (after authorization, $_SESSION['token'] should get the desired value, and the browser should set cookies):
if ($_COOKIE['token']===$_SESSION['token']) .... .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question