Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1.  
  2. $preferences = array(
  3. "input-charset" => "ISO-8859-1",
  4. "output-charset" => "UTF-8",
  5. "line-length" => 76,
  6. "line-break-chars" => "\n"
  7. );
  8.  
  9. $preferences["scheme"] = "B";
  10. // This yields "Subject: =?UTF-8?B?UHLDvGZ1bmcgUHLDvGZ1bmc=?="
  11. $from= iconv_mime_encode("FROM", stripslashes($_POST['fromname'])."<".stripslashes($_POST['fromemail']).">", $preferences);
  12.  
  13.  
  14. ############### message
  15.  
  16. $mime_boundary="==Multipart_Boundary_x".md5(mt_rand())."x";
  17.  
  18.  
  19. $headers = "$from\r\n" .
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement