Has anyone ran into issues when sending email in a production environment and seeing slowness compared to your staging environment? We are using utl send mail (code below) to do our emails from the database via a stored procedure. When we go to production it is VERY slow. It will only send an email every 5 seconds. In staging/development it runs fine. Anyone have a clue how this could be fixed or is it something with the mail server? Does utl send mail wait for a response from the smtp server? Can something be changed on how utl send mail is set up on the production server?
UTL_MAIL.SEND ( sender IN VARCHAR2 CHARACTER SET ANY_CS, recipients IN VARCHAR2 CHARACTER SET ANY_CS, cc IN VARCHAR2 CHARACTER SET ANY_CS DEFAULT NULL, bcc IN VARCHAR2 CHARACTER SET ANY_CS DEFAULT NULL, subject IN VARCHAR2 CHARACTER SET ANY_CS DEFAULT NULL, message IN VARCHAR2 CHARACTER SET ANY_CS, mime_type IN VARCHAR2 DEFAULT 'text/plain; charset=us-ascii', priority IN PLS_INTEGER DEFAULT NULL);