S
S
Sergey Goryachev2016-04-23 17:50:45
PHP
Sergey Goryachev, 2016-04-23 17:50:45

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

4 answer(s)
S
Sergey, 2016-04-23
@webirus

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 :)

C
CityCat4, 2016-04-24
@CityCat4

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 ...

S
Supme, 2015-04-27
@swipeshot

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.

X
xmoonlight, 2015-04-27
@xmoonlight

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 question

Ask a Question

731 491 924 answers to any question