How to solve send mail: ORA-29279 SMTP issue
<p>I'm getting an ORA-29279 error when running the below snipped. Suggest me if some issue in this</p>

<pre><code>    CREATE OR REPLACE PROCEDURE CPO.fsc_temp_MAIL (l_from  IN VARCHAR2,
               l_to    IN VARCHAR2,
               Subject IN VARCHAR2,
               Mesg    IN VARCHAR2,
               Cc      IN VARCHAR2 default null,
               P_Html  BOOLEAN := FALSE) IS
  l_to1       VARCHAR2(32000) := l_to;
  Mhost  VARCHAR2(64) := '192.168.0.6';
  crlf        varchar2(2) := CHR(13) || CHR(10);
  conn UTL_SMTP.connection;
  Address   varchar2(32700);
BEGIN
  conn := UTL_SMTP.open_connection(Mhost,25);
     UTL_SMTP.helo(conn, Mhost);
 UTL_SMTP.mail(conn, l_from);
  GET_TEMP_INFO_MAIL(conn,l_to1);
  If Cc is not null then
    GET_TEMP_INFO_MAIL(conn,Cc);
  end if;
  IF P_Html THEN
   Address := 'Date: ' || TO_CHAR(SYSDATE, 'DD MON RRRR HH24:MI:SS') ||
   crlf ||'From: ' || l_from ||
   crlf ||'To: ' || l_to ||
   crlf ||'Cc: ' || Cc ||
   crlf ||'Subject: ' || Subject || crlf

      || 'Content-Type: text/html; charset=us-ascii' || crlf
      || 'Content-Transfer-Encoding: 7bit' || crlf
      || '&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&gt;' || crlf
      || '&lt;html&gt;'  || crlf
      || '&lt;head&gt;'  || crlf
      || '&lt;meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"&gt;' || crlf
      || '&lt;title&gt;' || subject || '&lt;/title&gt;' || crlf
      || '&lt;/head&gt;' || crlf
      || '&lt;body&gt;'  || crlf|| utl_tcp.crlf
      || mesg || crlf
      || '&lt;/body&gt;&lt;/html&gt;';
  ELSE
   Address := 'Date: ' || TO_CHAR(SYSDATE, 'DD MON RRRR HH24:MI:SS') ||
   crlf ||'From: ' || l_from ||
   crlf ||'To: ' || l_to ||
   crlf ||'Cc: ' || Cc ||
   crlf ||'Subject: ' || Subject ||
   crlf || utl_tcp.crlf || mesg;
  END IF;
  UTL_SMTP.data(conn, Address);
  UTL_SMTP.quit(conn);
  EXCEPTION
 WHEN utl_smtp.Transient_Error OR utl_smtp.Permanent_Error then
   raise_application_error(-20000, 'Unable to send mail: '||sqlerrm);

END;
</code></pre>

<p>when I execute that procedure </p>

<pre><code>execute fsc_temp_MAIL('usmanafb@ctm.com.pk','abc@ctm.com.pk','test for subject  ','sdf','xyz@ctm.com.pk',True);
</code></pre>

<blockquote>
  <p>ORA-29279: SMTP permanent error: 530 5.7.1 Client was not authenticated</p>
</blockquote>

<p><a href="https://i.stack.imgur.com/oSN09.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oSN09.jpg" alt="enter image description here"></a></p>

<p>don't know how to deal with this
this is some kind of smtp setting ? <strong>all email address is valid</strong> </p>

<p>if some one have better solution then tell me I create these pocedure in plsql</p>