[ol][li][COLOR=rgb(0,0,136)]die[COLOR=rgb(102,102,0)]([COLOR=rgb(0,136,0)]“not send”[COLOR=rgb(102,102,0)]);[/li]
[li]isnt needed because catch() case already exits the script.[/li][/ol]
Perhaps dump the error instead of just printing “not send” /emoticons/default_wink.png
die($e->getMessage());
Also, @Scias, catch does not necessarily end the script, the point of catching errors is to allow execution to continue even though something went wrong. If this file would be included from an other php script, it definitely does make a difference if you use die there or not. Whether that is the intended behaviour is questionable of course.