email .. should I be able to do this?

Weepweiniup

New Member
I have a website, \[code\]example.com\[/code\] hosted at godaddy. I was just messing around with PHP's \[code\]mail\[/code\] function and uploaded the following to my website at \[code\]example.com\[/code\]:\[code\]mail( "[email protected]", "test", "test message", "From: [email protected]" );\[/code\]Why does this work? I mean, it shouldn't, right? The "From" address domain isn't "@example.com". Yet, when I check my email at [email protected], I get the message from [email protected]... How is it that I'm able to (potentially) send an email from anyone's email account without their password?
 
Back
Top