Sending a mail using DB2's Proceude UTL_MAIL
Based on what you are trying to do you would want to set up the STMP server at the database level rather than the DAS level. You set it up at the DAS level if you want DB2 to email alerts to you. See the Information Center here.

You set it up at the database level if you want to use the UTL_MAIL module as you are wishing to use.

You would need to do the following:

db2 connect to mydb -- or whatever your database name is.
db2 update db cfg using smtp_server '&lt;server or ip&gt;:&lt;port&gt;' 
-- you can have a list of smtp servers if you want, just use a comma between them.
db2 connect reset


This setting takes affect immediately. Please see Information Center for more details.