(2003-2009) * @author Froxlor team (2010-) * @license GPLv2 http://files.froxlor.org/misc/COPYING.txt * @package Functions * */ /** * Create a valid from/to - mailheader (remove carriage-returns) * * @param string The name of the recipient * @param string The mailaddress * @return string A valid header-entry * @author Florian Aders */ function buildValidMailFrom($name, $mailaddress) { $mailfrom = str_replace(array("\r", "\n"), '', $name) . ' <' . str_replace(array("\r", "\n"), '', $mailaddress) . '>'; return $mailfrom; }