Email. Should I do this?

I have a website example.comhosted on godaddy. I just messed around with the PHP function mailand uploaded the following to my website at example.com:

mail( "someone@yahoo.com", "test", "test message", "From: someone@gmail.com" );

Why does it work? I mean, it shouldn't, right? The From domain is not "@ example.com". However, when I check my email address at someone@yahoo.com , I get a message from someone@gmail.com ... How can I (potentially) send an email from any email account without their password?

+3
source share
4 answers

, , E-Mail , , . , , , , , , ; .

, , , , "".

( ) , . - - ( ) . , , - , , IP- , , ( ), .

+3

, , . RFC , . - , .

PHP. ,

: , , - , , , . , , , , " ". , . , , , .

0

, Framework (SPF) MailKeys Identified Mail (DKIM).

SPF , . , SPF , , Go Daddy, ​​, gmail.com. A (Yahoo), SPF, , .

DKIM , , , . , Gmail, .

SPF/DKIM, , , , .

: : -)

0

Source: https://habr.com/ru/post/1762095/


All Articles