[{"ID":"D939B99E-3F98-4B0C-9F3F-A0DFFF83223F","title":"sendmail","tags":"mail fonctions php","date":"23\/09\/2013","timestamp":"1379927643","rss_date":"Mon, 23 Sep 2013 11:14:03 +0200","status":"public","dependency":"","source":"http:\/\/www.warriordudimanche.net","content":"function sendmail($to,$subject='message',$msg,$from=null,$format='text\/plain'){\r\n\t$r=\"\\r\\n\";$header='';\r\n\t$msg=wordwrap($msg, 70,$r);\r\n\tif ($format!='text\/plain'){$msg=htmlspecialchars($msg);}\r\n\tif (!empty($from)){$header.='From: '.$from.$r;}\r\n\t$header='Content-Type: text\/plain; charset=\"utf-8\"'.$r.'Content-Transfer-Encoding: 8bit'.$r.$header;\r\n\treturn mail($to,$subject,$msg,$header);\r\n}"}]