Forum   Search   Register   Log in SUPERJER FORUM
 

Sending email from another person's mail

Pages: [1]
Programming Help
Mate de Vita
Kelli

2008 Oct 4 • 2397
159 ₧
So, my schoolmate claimed today that he can send an email to someone and make it say e.g. superjer@hotmail.com under receiver, so that Someone thinks the email is actually from superjer.
Also if Someone decides to reply to this email, he will send the email to superjer@hotmail.com, not my friend's real address.

Naturally my friend wouldn't share the instructions on how to do it with me, so that he can try to prank me some time in the future.

It may be worth mentioning that this friend of mine is learning php.

So, any idea how he can do that (or if he can do that)?
...and that's the bottom line because Mate de Vita said so.

Who controls the past, controls the future. Who controls the present, controls the past.
    (Edited 2009 Dec 4 at 15:02)     2009 Dec 4 at 15:02
Down Rodeo
Cap'n Moth of the Firehouse

Find the Hole II Participation Medal
2007 Oct 19 • 5258
57,583 ₧
He can, it's called "spoofing headers". Dunno how though.
Everyone stares when you walk in the room, they stare when you go....
    2009 Dec 4 at 15:19
superjer
superjer

2005 Mar 20 • 3742
This is very easy to do. For example in PHP:

php code
<?php $to = "you@example.com"; $subj = "Spoofed mail from Jer"; $body = "Hello there"; $headers = "From: Jer <superjer@hotmail.com>"; $sendmail_params = "-fsuperjer@hotmail.com"; mail($to,$subj,$body,$headers,$sendmail_params); ?>


I use this all the time for sending email from automated systems on SuperJer.com, ClassifiedAds.com and other sites.

But if hotmail is using SPF, and your email server or client bothers to check SPF records, the email should get marked as spam or dropped completely.

SPF ensures that only authorized IP addresses can send mail on behalf of a particular domain, but only if your email system checks the records.
    (Edited 2009 Dec 4 at 16:35)     2009 Dec 4 at 16:32

Pages: [1]
Forum and design copyright © 2008-2010 SuperJer.com