<?php function mailer ( $to, $subject, $content, $headers ) { if ( mail($to, $subject, $content, $headers) ) { return true; } else { return false; } } mailer('moi@lol.com', 'sujet', 'contenu', 'From : xxx'); ?>