Ah, that's because if you do return mail(); then after that command is run, the control of the software goes to the original calling function... Say you have the following code:
1 - function test(){
2 - command
3 - command
4 - return command
5 - command
6 - }
The commands in lines 2, 3, 4 are run, but it never gets to line 5, because the "return" keyword in line 4 will make the script jump over the line 5 and go directly to the original calling command.
|