Oracle PLSQL Send mail Issue.

Hi All,
I used to send some emails using oracle PLSQL code in both 10 g and 11g.But now days mail is getting triggered without any body in both the 10g and 11g versions.
Some mails are triggering perfectly.I am unable to sort out the issue, please help me in this concern.

Code that i have used is:
create or replace
PROCEDURE Sendmail(V_MAILHOST VARCHAR2,V_FROM VARCHAR2,V_TO clob ,V_CC VARCHAR2, V_SUBJECT VARCHAR2,V_MSGTEXT VARCHAR2,V_MODULE VARCHAR2) AS
  l_mail_conn   UTL_SMTP.connection;
  l_subject      VARCHAR2(100):='test mail';
  l_msg_text   VARCHAR2(500):='hi , testing alert mail';
  v_reply      utl_smtp.reply;
  L_RECIPIENTS  clob;
  l_recipients1  clob;
  V_TO1            clob;
  v_errmsg        VARCHAR2(500);
  mul_recip        NUMBER;
  mul_recip1        NUMBER;
  slen             NUMBER:=1;
  slen1             NUMBER:=1;
  V_errcode        VARCHAR2(500);
BEGIN
  l_mail_conn:= UTL_SMTP.open_connection(v_mailhost,25);
   v_reply :=UTL_SMTP.helo(l_mail_conn, v_mailhost);
   v_reply :=UTL_SMTP.mail(l_mail_conn, v_from);
  -- V_TO1:=null;--'[email protected]';
   SELECT INSTR(V_TO,',') INTO mul_recip FROM dual;
    IF mul_recip =0
    THEN
         utl_smtp.rcpt(l_mail_conn, V_TO );
    ELSE
        WHILE(INSTR(V_TO,',',slen) > 0)
        LOOP
              l_recipients := SUBSTR(V_TO, slen, INSTR(SUBSTR(V_TO,slen),',')-1);
              slen := slen+INSTR(SUBSTR(V_TO, slen),',');
            utl_smtp.rcpt(l_mail_conn, l_recipients);
        END LOOP;
            l_recipients := SUBSTR(V_TO, slen);
            utl_smtp.rcpt(l_mail_conn, l_recipients);
    END IF;    
     IF V_CC IS NOT NULL
     THEN
      SELECT INSTR(V_CC,',') INTO mul_recip1 FROM dual;
    IF mul_recip1 =0
    THEN
         utl_smtp.rcpt(l_mail_conn, V_CC );
    ELSE
        WHILE(INSTR(V_CC,',',slen1) > 0)
        LOOP
              l_recipients1 := SUBSTR(V_CC, slen1, INSTR(SUBSTR(V_CC,slen1),',')-1);
              slen1 := slen1+INSTR(SUBSTR(V_CC, slen1),',');
            utl_smtp.rcpt(l_mail_conn, l_recipients1);
        END LOOP;
            l_recipients1 := SUBSTR(V_CC, slen1);
            utl_smtp.rcpt(l_mail_conn, l_recipients1);
    END IF;    
END IF;        
v_reply :=utl_smtp.open_data(l_mail_conn );
utl_smtp.write_data(l_mail_conn, 'From: ' || V_FROM || utl_tcp.crlf);
utl_smtp.write_data(l_mail_conn, 'Subject: ' || v_subject || utl_tcp.crlf);
utl_smtp.write_data(l_mail_conn, 'To: ' || V_TO || utl_tcp.crlf);
utl_smtp.write_data(l_mail_conn, 'CC: ' || V_CC || utl_tcp.crlf);
utl_smtp.write_data(l_mail_conn, 'Content-Type: text/html' || utl_tcp.crlf);
UTL_SMTP.WRITE_DATA(L_MAIL_CONN, V_MSGTEXT );
  if length(V_TO)>=4000 then
  dbms_output.put_line('none');
  else
   insert into MAIL_LOG(MAILFROM, MAILTO, SUBJECT, LOGGED_DATE, MAIL_STATUS, MAILCC, MAILTEXT,MODULE_ID)
      VALUES(V_FROM,v_to,V_SUBJECT,SYSDATE,'sent',V_CC,V_MSGTEXT,V_MODULE);
    end if;
    utl_smtp.close_data(l_mail_conn );
    utl_smtp.quit(l_mail_conn);
EXCEPTION
WHEN utl_smtp.transient_error OR utl_smtp.permanent_error THEN
    BEGIN
      UTL_SMTP.QUIT(l_mail_conn);
    EXCEPTION
      WHEN UTL_SMTP.TRANSIENT_ERROR OR UTL_SMTP.PERMANENT_ERROR THEN
        NULL; -- When the SMTP server is down or unavailable, we don't have
              -- a connection to the server. The QUIT call will raise an
              -- exception that we can ignore.
    END;
     v_errmsg:='Failed to send mail due to the following error: ' ||SQLERRM||' errcode '||SQLCODE||'from :'||V_FROM|| ' V_TO '||V_TO;
INSERT INTO MAIL_LOG(MAILFROM, MAILTO, SUBJECT, LOGGED_DATE, MAIL_STATUS, MAILCC, MAILTEXT,MODULE_ID)
VALUES(V_FROM,v_to,V_SUBJECT,SYSDATE,v_errmsg,V_CC,V_MSGTEXT,V_MODULE);
END Sendmail;

Similar Messages

  • Unable to send 'Chinese Character' in plsql send mail program

    Hi All,
    I am sending mail through plsql.
    in mail body, i need to send some chinese character. I have compiled the package in Toad 9.5
    but when i received mail, it is showing just ???????????????.
    Details are as below:
    Application: 12.1.1 ,
    Database : 10g
    Toad 9.5
    how can i send that chinese words in mail? please suggest me.

    Hi;
    I suggest close your issue here as answered than move your issue Forum Home » Database » SQL and PL/SQL which you can get more quick response
    Regard
    Helios

  • Windows Live Sending mail Issue

    Hi Team,
    As I can't able to send mails to more than 50 recepients on a single go. I'm getting this error
    Subject '*************'
    Server: 'smtp.gmail.com'
    Windows Live Mail Error ID: 0x800CCC0B
    Protocol: SMTP
    Port: 25
    Secure(SSL): Yes
    I changed the Port to 587 and 465 but no result. Please help me out how to tackle from this situation

    That error ID indicates that the destination is busy, rather than you've reached the recipient limit. Gmail seem to have multiple limits depending on method of sending, but from what I can see in this instance the recipient limit would be 100 rather than
    50 so that's not your issue.
    Most common cause for that error is local anti-virus / firewall software causing issues. There's a thread discussing the same issue here
    http://answers.microsoft.com/en-us/windows/forum/windows_vista-networking/error-code-0x800ccc0b-when-trying-to-send-email/31dce8ff-7b1a-4b25-b3bf-eba5eccabd29 and includes a few troubleshooting steps, but the main initial one is to disable any AV software
    you have installed on your machine temporarily and try sending again. If that works then it's definitely the AV software causing the problem, and configuring it to no longer scan outbound mail may resolve it, depending on the AV software you're using.

  • Mail 7.0 (1822) Sending Mail Issues

    In OS X 10.9, I consistently have issues when sending mail, the message seems to stall at the outgoing server for some reason and Mail forces me to select a different outgoing server.  After I select the same server as is already correctly configured, Mail.app finally sends the message.
    Steps I've taken to replicate this issue:
    Removed all email accounts from: System Preferences/Internet Accounts
    Rebooted MacBook
    Verified all accounts were removed
    Rebooted once more
    Added accounts back to Mail.app
    Rebooted once more
    Problem persisted so I repeated above 3 times before sending this message.
    Problem will not go away!  I didn't have this issue in 10.8.x
    Types of Mail accounts:
    MS Exchange (config as Exchange, not IMAP)
    iCloud (Mac mail)
    GoogleMail IMAP account
    Standard IMAP account

    I installed Mavericks on my iMac as a completely new installation due to a replaced dead hard drive. I also have a powerbook with a standard Mavericks install. Both are updated to the 1822 build of Mail version 7.0. My host is 123-reg.
    Recieving emails works fine. Sending is near impossible, yet strangely intermittent. However both computers will either work, or not, for no apparent reason. I have been in touch with 123-reg support who suggest it is due to the ISP ( in my case BT). My iPhone 5s meanwhile hums along happily which is on O2.
    I cannot pinpoint any one change at my end that makes any sort of permanent difference. I have made all the normal checks and gone through the loops of changing ports and security etc. It sometimes works and sometimes don't. Everytime the error message is the same:-
    Connections to the server “smtp.123-reg.co.uk” on the default ports timed out.
    Activity monitor shows the turning Barbers Pole but just hanging there. Suddenly nearly all my messages were sent! I thought I might have done something my temporarily deactivating my account in system prefs/internet accounts. So I turned on my laptop, but that still would not work, nietehr would the iMac upon my return to it.
    Activity monitor seems to show some very quick actions that I cannot read. I wonder if it is set to go too fast for the server to respond?
    Hope this helps someone work out a fix as I need one as well.

  • Send mail issue

    I am using JavaMail API 1.1.3 to compose and send mail messages. It is possible to send messages both in text or HTML format with or without attachments. But recently just one user has complained that some mails sent out from our system is not being parsed by recipient servers. There is no pattern to the problem - apparently people from different companies using different mail servers are reporting this problem.
    Below is part of the header of a mail that was sent from my server. Does anyone know what could be the reason? I suspect the content-transfer-encoding: 7bit. If that is the culprit, how can I change it?
    Thanks in advance.
    Message-ID: <12173.1045192088842.JavaMail.IUSR_RLIVE-DEV@RLDEVIIS>
    Date: Fri, 14 Feb 2003 14:08:08 +1100 (GMT+11:00)
    Subject: Test header
    Mime-Version: 1.0
    Content-Type: text/html
    Content-Transfer-Encoding: 7bit

    Hi asheque have a look on following link.
    http://ccm.redhat.com/asj/mime/
    rest if u think there is some problem withe encoding u can try addheader Content-Transfer-Encoding Quoted-printable or something like that.

  • Smtp - sending mail issues

    Bought a new Macbook Pro and have a home wireless connection (Orange). Can send and receive email (Pipex is my office ISP). Had to change smtp setting to Orange's in order to send mail.
    Problem: I intend to use my MacBook at various locations and have successfully logged into several wireless connections. Web browsing and receiving email no problem. Sending email never works other than at home?
    I cannot beleieve that I have to change smtp settings for every network I connect to in order to send email - It will be impossible.
    Pipex and Orange are not interested and offer no help at all. Help please.
    Not a .Mac user.
    MacBook Pro   Mac OS X (10.4.9)  
    MacBook Pro   Mac OS X (10.4.9)  

    Most networks block sending mail on port 25, except for their own customers.
    Ask Orange or Pipex (or google for it) if they have an alternate smtp port (like 587) that works instead of port 25.

  • Sending mail issues from personal account with bt router

    Please can anyone help? I have a personal email address which mails fine from my ipad and iphone but since changing to a BT router it won't mail from my macbook pro despite the other devices working fine!
    BT won't help and say they don't support 3rd party emails which I never knew - now I'm stuck with them for 18 mnths!
    Is it a firewall issue on the Macbook pro? I had a friend try to set up Thunderbird on my macbook pro with the personal address and again it received mails fine but wouldn't send - just gives the same error message saying it couldn't connect to the SMTP server...
    Please does anyone have any suggestions as I can now received and read work based messages on my macbook pro but have to respond from ipad or iphone :-(
    Thank you for any advice anyone can offer...

    I have experienced the same problems. I could receive but not send email through a third party email. Our ISP is BT and it would appear even though they wont admit it that they have changed some peoples settings.
    I spoke with my email provider 123-reg and they asked me to check my ISP and then check the SPAMHAUS and our ISP has been Blocklisted. I called BT and they wouldnt answer why this had happened.
    To cut a long story short I have had to pay BT £30 (not happy) to resolve the problem. They set my SMTP details as mail.btinternet.com and i had to authenticate this by logging into a BT/Yahoo email account that we never use., go to options then mail options then mail accounts and add details for the account your having problems with. You should then receive an email link on your third party email address.
    I have actually complained to OFCOM about this as I dont believe that I should have to pay to rectify a problem that I havent caused. All BT would say is that they fixed the problem and I have to pay the £30. they wouldnt answer why I couldnt send emails prior to this fix. I asked why I now have to have the SMTP as mail.btinternet.com and again they couldnt answer this.
    I hope this helps

  • Yet another cant send mail issue

    Hi, I am going nuts here!! At home I have Comcast and my dotmac account works via port 25 no set up, perfect. I am now in another house with comcast and I cannot send anything. I telnetted port 25, nothing shows, so I contacted Comcast and they sent me this url http://www.comcast.net/help/faq/index.jsp?faq=EmailMail_(Mac)17798 it seems to have ALL the answers, but I am just going round in circles.
    Assume I want to set up for traveling purposes. I set up a new account POP, used dotmac info for incoming mail/server info and for outgoing server I have smtp.comcast.net, I use the 465 port with ssl, and for the password authentication I use my dotmac name and password.
    In advanced I use 995 port and ssl.
    This info seems good to go, but when I try to send I always get the dialog box The SMTP server “smtp.comcast.net” rejected the password for user “dotmac account”.
    I just cant work out why it wont accept the password. Should I have some extra comcast info?
    this is madness, but oh well, is there an answer out there

    Checking Comcast's website, Comcast's SMTP server settings should be as follows:
    SMTP Server: smtp.comcast.net
    Server Port: 587
    Use SSL: Off or not selected.
    Authentication: Password
    User Name: The portion of your Comcast email address in front of the @ sign only.
    Password: Your Comcast account password - the same password used to check the incoming mail server for new messages.
    .Mac's SMTP server settings should be as follows:
    SMTP Server: smtp.mac.com
    Server Port: 587
    Use SSL: On/Selected but isn't required.
    Authentication: Password
    User Name: The portion of your .Mac email address in front of the @ sign only.
    Password: Your .Mac account password - the same password used to check the incoming mail server for new messages.
    These settings will not guarantee being able to send messages with either account and SMTP server when traveling and not connected to the internet with Comcast. This is determined by the ISP being used to connect to the internet since all ISPs have restrictions on using an SMTP server that is outside of their network or not provided by the ISP.
    You can use .Mac's authenticated SMTP server to send messages with your .Mac account only but you can use Comcast's authenticated SMTP server to send messages with your .Mac account when connected to the internet with Comcast.

  • Sending mail slow

    All of a sudden, it seems like it takes forever to send a small simple (Text only email)* (Apple Mail: Version 3.0 (912.1/912).
    I'm hooked up to "Super road runner". I just did a speed test and the results were: Download= 9185 kbps, Upload 956 kbps. Any ideas??

    jabidof wrote:
    Maybe this can be helpful to others.
    I solved this weird problem by adding manually some DNS server IP addresses to my Airport configuration. This happened to solve the slow sending mail issue.
    I'm still a bit puzzled why this can happen on a 21st century OS... Should be smarter than that to my opinion.
    Anyway, Mail.app is back on tracks
    Great suggestion! To flesh it out some more, I'd be sure to use the ISP's DNS numbers, rather than some third party, in the System Preferences » Network control panel. Then if it doesn't work, call the ISP and get some feedback from them...

  • Is there a fix for "can't send mail?"

    I just spent 4+ hours on this forum and worked through all suggestions I could find - still can't send mail. It happened yesterday afternoon, from one moment to the next - suddenly all my three POP accounts are offline and there was nothing I could do about it. I checked with Entourage, same thing there as well, can't send mail.
    I have no idea if this is connected with the problem in many posts about the "can't send mail" issue or not, but at least on the surface it looks like it is.
    Any help is appreciated! Thank you.

    Yes, there are complaint sites online where I've read hundreds of complaints that trickle in one by one on different dates.
    Take a look at this post, and the comments below it:
    http://www.lockergnome.com/usrbingeek/2007/04/12/comcast-blocking-port-25/
    This is going to be an ongoing problem for different users, one at a time.
    DSL users in my area are going through a similar issue with their CenturyTel email accounts. Over the last two years they have added a new smtp server and some people were transferred immediately to it, and others got added month by month (some were on smtp.centurytel.net while others are on smtpauth.centurytel.net). Then a couple of months ago, they started requiring login and password to the smtp server, but not for all users. I get a few calls a month for the next batch. Centurytel has gone with a 3rd party email hosting company so that they don't have to deal with it.
    I'm trying to set up all clients with the latest changes, but they don't always work in advance of the changes. It's hit and miss. CenturyTel has said that they have posted notices on their help site, but who goes there?
    Maybe they are just trying to manage their tech support load during changes?
    Message was edited by: dechamp

  • Issue with sending mail through java stored procedure in Oracle

    Hello
    I am using Oracle 9i DB. I created a java stored procedure to send mail using the code given below. The java class works fine standalone. When its run from Java, mail is sent as desired. But when the java stored procedure is called from pl/sql "Must issue a STARTTLS command first" error is thrown. Please let me know if am missing something. Tried the same code in 11.2.0.2 DB and got the same error
    Error:
    javax.mail.MessagingException: 530 5.7.0 Must issue a STARTTLS command first. va6sm31201010igc.6
    Code for creating java stored procedure: (T1 is the table created for debugging)
    ==================================================
    create or replace and compile java source named "MailUtil1" AS
    import java.util.Enumeration;
    import java.util.Properties;
    import javax.mail.Message;
    import javax.mail.Session;
    import javax.mail.Transport;
    import javax.mail.internet.InternetAddress;
    import javax.mail.internet.MimeMessage;
    public class MailUtil1 {
    public static void sendMailwithSTARTTLS(String host, //smtp.projectp.com
    String from, //sender mail id
    String fromPwd,//sender mail pwd
    String port,//587
    String to,//recepient email ids
    String cc,
    String subject,
    String messageBody) {
    try{
    Properties props = System.getProperties();
    props.put("mail.smtp.starttls.enable", "True"); // added this line
    props.put("mail.smtp.host", host);
    props.put("mail.smtp.user", from);
    props.put("mail.smtp.password", fromPwd);
    props.put("mail.smtp.port", port);
    props.put("mail.smtp.auth", "true");
    #sql { insert into t1 (c1) values ('1'||:host)};
    Session session = Session.getDefaultInstance(props, null);
    MimeMessage message = new MimeMessage(session);
    message.setFrom(new InternetAddress(from));
    #sql { insert into t1 (c1) values ('2')};
    InternetAddress[] toAddress = new InternetAddress[1];
    // To get the array of addresses
    for( int i=0; i < toAddress.length; i++ ) { // changed from a while loop
    toAddress[i] = new InternetAddress(to);
    //System.out.println(Message.RecipientType.TO);
    for( int i=0; i < toAddress.length; i++) { // changed from a while loop
    message.addRecipient(Message.RecipientType.TO, toAddress);
    if (cc!=null) {
    InternetAddress [] ccAddress = new InternetAddress[1];
    for(int j=0;j<ccAddress.length;j++){
    ccAddress[j] = new InternetAddress(cc);
    for (int j=0;j<ccAddress.length;j++){
    message.addRecipient(Message.RecipientType.CC, ccAddress[j]);
    message.setSubject(subject);
    message.setText(messageBody);
    message.saveChanges();
    #sql { insert into t1 (c1) values ('3')};
    Enumeration en = message.getAllHeaderLines();
    String token;
    while(en.hasMoreElements()){
    token ="E:"+en.nextElement().toString();
    #sql { insert into t1 (c1) values (:token)};
    token ="ConTyp:"+message.getContentType();
    #sql { insert into t1 (c1) values (:token)};
    token = "Encod:"+message.getEncoding();
    #sql { insert into t1 (c1) values (:token)};
    token = "Con:"+message.getContent();
    #sql { insert into t1 (c1) values (:token)};
    Transport transport = session.getTransport("smtp");
    #sql { insert into t1 (c1) values ('3.1')};
    transport.connect(host, from, fromPwd);
    #sql { insert into t1 (c1) values ('3.2')};
    transport.sendMessage(message, message.getAllRecipients());
    #sql { insert into t1 (c1) values ('3.3')};
    transport.close();
    #sql { insert into t1 (c1) values ('4')};
    catch(Exception e){
    e.printStackTrace();
    String ex= e.toString();
    try{
    #sql { insert into t1 (c1) values (:ex)};
    catch(Exception e1)
    Edited by: user12050615 on Jan 16, 2012 12:18 AM

    Hello,
    Thanks for the reply. Actually I have seen that post before creating this thread. I thought that I could make use of java mail to work around this problem. I created a java class that succesfully sends mail to SSL host. I tried to call this java class from pl-sql through java stored procedure. That did not work
    So, is this not supported in Oracle ? Please note that I have tested this in both 9i and 11g , in both the versions I got the error. You can refer to the code in the above post.
    Thanks
    Srikanth
    Edited by: user12050615 on Jan 16, 2012 12:17 AM

  • ORA-29279: SMTP permanent error: To Send Mail from Oracle 10g (10.2.0.1)

    I have installed Oracle 10g (10.2.0.1) on Windows XP (SP2) machine at my home PC.There is a broadband connection on my home PC.I have installed UTL_MAIL package and then set SMTP_OUT_PARAMETER by the following SQL Statement.
    My machine IP address is 192.168.0.3
    SQl> alter system set smtp_out_server = 'smtp.bsnl.in:25' scope = 25;
    Then we run the following script.
    BEGIN
    UTL_MAIL.SEND(
    SENDER => '[email protected]',
    RECIPIENTS => '[email protected]',
    SUBJECT => 'Testing UTL_MAIL',
    MESSAGE => 'The receipt of this email means'||
    'that it works for UTL_MAIL'
    END;
    Then following error message comes.
    BEGIN
    ERROR at line 1:
    ORA-29279: SMTP permanent error: 553 Authentication is required to send mail as
    <[email protected]>
    ORA-06512: at "SYS.UTL_SMTP", line 21
    ORA-06512: at "SYS.UTL_SMTP", line 99
    ORA-06512: at "SYS.UTL_SMTP", line 222
    ORA-06512: at "SYS.UTL_MAIL", line 407
    ORA-06512: at "SYS.UTL_MAIL", line 594
    ORA-06512: at line 2
    Can anybody suggest the solution of the above problem.

    Hi,
    is your smtp server configured to use anonymous connection?
    Attackwave
    Reply Code       Description
    211      System status, or system help reply
    214      Help message [Information on how to use the receiver or the meaning of a particular non-standard command; this reply is useful only to the human user]
    220      <domain> Service ready
    221      <domain> Service closing transmission channel
    250      Requested mail action okay, completed
    251      User not local; will forward to <forward-path>
    252      OK, pending messages for node <node> started. Cannot VRFY user (for example, info is not local), but will take message for this user and attempt delivery.
    253      OK, <messages> pending messages for node <node> started
    354      Start mail input; end with <CRLF>.<CRLF>
    355      Octet-offset is the transaction offset
    421      <domain> Service not available, closing transmission channel (This may be a reply to any command if the service knows it must shut down.)
    450      Requested mail action not taken: mailbox unavailable [for example, mailbox busy]
    451      Requested action terminated: local error in processing
    452      Requested action not taken: insufficient system storage
    453      You have no mail.
    454      TLS not available due to temporary reason. Encryption required for requested authentication mechanism.
    458      Unable to queue messages for node <node>
    459      Node <node> not allowed: reason
    500      Syntax error, command unrecognized (This may include errors such as command line too long.)
    501      Syntax error in parameters or arguments
    502      Command not implemented
    503      Bad sequence of commands
    504      Command parameter not implemented
    521      <Machine> does not accept mail.
    530      Must issue a STARTTLS command first. Encryption required for requested authentication.
    534      Authentication mechanism is too weak.
    538      Encryption required for requested authentication mechanism.
    550      Requested action not taken: mailbox unavailable [for , mailbox not found, no access]
    551      User not local; please try <forward-path>
    552      Requested mail action terminated: exceeded storage allocation
    *553      Requested action not taken: mailbox name not allowed [for example, mailbox syntax incorrect]*
    554      Transaction failed

  • Not Able to Send Mail in Oracle Apex

    Hello Apex Experts,
      I am using Amazon Cloud  with details as using Oracle Apex 4.1 and Oracle 11g as database using Glass Fish Server.
    Problem am facing is E-Mail are not working. I tried adding our company smtp address but still it is not working.
    In Oracle Apex Admin scree Under Manage Instance --> Instance Settings --> Email tryed adding ( localhost and 10.1.1.100 SMT address ) this didnt work
    I am using below code to send mail 
    Begin
    -- Send plain text email
      APEX_MAIL.SEND(
        P_TO       =>  '[email protected]',
        P_FROM     =>  '[email protected]',
        P_CC       =>  '[email protected]',
        P_BCC      =>  '[email protected]',
        P_SUBJ     => 'test',
        P_BODY     => 'test');
       apex_mail.push_queue('10.1.1.100', 25);
    End;
    SELECT * FROM APEX_MAIL_QUEUE;
    I get ORA-24247: network access denied by access control list (ACL) . I also see last_updated as SYS in the log
    Please suggest me how to fix this issue.
    Thanks
    Sudhir

    Hi Mike,
      Thanks for your reply, Let me give you a detail on where we are stuck on send mail.
       We have a Schema called PORTAL
      We are able to send mail from UTL_SMTP as mentioned below in a procedure
    create or replace PROCEDURE send_mail (p_to        IN VARCHAR2,
                                           p_from      IN VARCHAR2,
                                           p_message   IN VARCHAR2,
                                           p_smtp_host IN VARCHAR2,
                                           p_smtp_port IN NUMBER DEFAULT 25)
    AS
      l_mail_conn   UTL_SMTP.connection;
    BEGIN
      l_mail_conn := UTL_SMTP.open_connection(p_smtp_host, p_smtp_port);
      UTL_SMTP.helo(l_mail_conn, p_smtp_host);
      UTL_SMTP.mail(l_mail_conn, p_from);
      UTL_SMTP.rcpt(l_mail_conn, p_to);
      UTL_SMTP.data(l_mail_conn, p_message || UTL_TCP.crlf || UTL_TCP.crlf);
      UTL_SMTP.quit(l_mail_conn);
    END;
    Begin
    send_mail('[email protected]','[email protected]','test','10.0.0.100','25');
    End;
    The above code works i am able to send and receive mails.
    We also create ACL as mentioned below
    begin
    dbms_network_acl_admin.create_acl (
    acl => 'http_permission.xml', -- or any other name
    description => 'HTTP Access',
    principal => 'APEX_040100', -- the user name trying to access the network resource
    is_grant => TRUE,
    privilege => 'connect',
    start_date => null,
    end_date => null
    end;
    commit;
    SELECT * FROM dba_network_acl_privileges where principal='APEX_040100';
    begin
    DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(acl => 'http_permission.xml',
    principal => 'APEX_040100',
    is_grant => true,
    privilege => 'connect');
    end;
    commit;
    begin
    DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(acl => 'http_permission.xml',
    principal => 'APEX_040100',
    is_grant => true,
    privilege => 'resolve');
    end;
    commit;
    BEGIN
    dbms_network_acl_admin.assign_acl (
    acl => 'http_permission.xml',
    host => '10.1.1.100', /*can be computer name or IP , wildcards are accepted as well for example - '*.us.oracle.com'*/
    lower_port => 80,
    upper_port => 80
    END;
    But still we are getting same ACL Error Please suggest US
    ORA-24247: network access denied by access control list (ACL)
    Thanks
    Sudhir

  • How to send mail in APEX 4.1 using PLSQL

    Hi All,
    How to send mail in APEX 4.1 using PLSQL?
    Thanks In advance.
    Regards
    Shail

    http://lmgtfy.com/?q=oracle+apex+4.1+send+mail

  • How to setup and send mails using utl_mail on Oracle E-Biz R12

    Dear All
    There is a new requirement from client to setup and send mails using utl_mail utility on Oracle EBS R12.1.1
    What is utl_mail utility ? what is the difference between Workflow Notification Mailer and this utility/tool?
    What are etiquette's to pursue mail functionality in apps / db?
    - Chetan

    What is utl_mail utility
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/u_mail.htm
    How to Use the UTL_MAIL Package [ID 269375.1]
    FAQ and Known Issues While Using UTL_SMTP and UTL_MAIL [ID 730746.1]
    Master Note For PL/SQL UTL_SMTP and UTL_MAIL Packages [ID 1137673.1]
    Workflow Notification Mailer:
    you can send email using workflow notification email procedures,These ar built into the system and only need some minor configuration. check Workflow Administrator's Guide, Chapter 2, Section: Setting Up Notification Mailers for more detail.

Maybe you are looking for

  • TODATE and AGO function errors in OBIEE

    I have aggregated time dimension. The time calendar comprises of the following structure with a physical table for each level in the Physical Layer - Year -> Half Year -> Quarter -> Month -> Week -> Day These tables form the calendar. The RPD works f

  • Commission report

    Hi Experts, Do you have any sample of commisson report in SD? Or, any FMs to get commisson? Thanks a lot. Yu

  • Special Ledger (steps)

    Hi Friends! I need load the data from R/3 Special Ledger. Does somebody has the 'Best Practices', 'How to guide', or the steps for this? Which are the infocubes and datasource? Thanks a lot!

  • Xserve RAId MTBF

    Hello, Acn anyone tell me the MTBF (Mean Time before Failure) of the Apple Drive Modules for the Xserve RAID. Thanks!

  • Macbook pro 15" i7 vs retina

    Hi people, I was wondering if the difference between the macbook pro 15" i7 and the retina one is toomuch, because I´m gonna buy a new one and in order to make my budget, bieng specific is because I work with photoshop, ilustrator an indesign all day