Fix bug in php mail function