ORA-06502: PL/SQL: numeric or value error

When trying to send an e-mail with the UTL_MAIL package, the error “ORA-06502: PL / SQL: numeric or value error” is received when the smtp_out_server start parameter is not set even though there is no problem in its parameters or parameter values.

The error received will be as follows.

The smtp_out_server parameter should be set to solve the problem. It can be set as follows.

Then, the problem will be solved.