-
-
Save msfidelis/1af9e11b33753359b4b1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? php | |
public function send_spoofing($data) { | |
#Constroi e manda o e-mail | |
$fromemail = $data['fromemail']; | |
$fromname = $data['fromname']; | |
$to = $data['toemail']; | |
$subject = $data['subject']; | |
$message = $data['message']; | |
$utf = "Content-Type: text/plain;charset=UTF-8\n"; | |
$lt = '<'; | |
$gt = '>'; | |
$sp = ' '; | |
$from = 'From:'; | |
$headers = $utf . $from . $fromname . $sp . $lt . $fromemail . $gt; | |
if (mail($to, $subject, $message, $headers)) { | |
return TRUE; | |
} else { | |
return FALSE; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment