First a few infos:
mail()
Do you have a problem using:
exec('php -r \"mail('rudolf@geardev.de', 'test', 'test');\"');