The ALTER FUNCTION (External Scalar) statement alters an external scalar function at the current server.
The function MAIL() has been thoroughly tested. To improve its performance, alter the function to be not fenced.
ALTER FUNCTION MAIL() NOT FENCED
For more information, see ALTER FUNCTION (External Scalar) in the SQL Reference topic in the Information Center.