Trying to set up email in 11g

I migrated a server + data + APEX application from 10g to 11g. Now my email sending is all messed up because of the ACL in 11g. I can't seem to figure out how to appease it. I have the smtp server correctly set in the parameters. Here is the procedure I'm trying to use (from http://www.morganslibrary.org/reference/pkgs/utl_smtp.html):
CREATE OR REPLACE PROCEDURE send_email(
  pFromUser IN VARCHAR2,
  pToUser IN VARCHAR2,
  pSubject IN VARCHAR2 DEFAULT NULL,
  pBody IN VARCHAR2 DEFAULT NULL)
IS
  conn          UTL_SMTP.CONNECTION;
  crlf          VARCHAR2(2)    := CHR(13) || CHR(10);
  EmailServer   VARCHAR2(60)   := 'mail.mt.net';
  mesg          VARCHAR2(4000) := 'Hello World';
  pwd           VARCHAR2(200)  := '{substituted}';
  SenderAddress VARCHAR2(200)  := '{substituted}';
  SenderName    VARCHAR2(50)   := 'Blair Christensen';
  pToList       VARCHAR2(4000);
  vToReceivers  VARCHAR2(200);
  uname         VARCHAR2(200);
BEGIN
  conn:= utl_smtp.open_connection(EmailServer, 587);
  utl_smtp.ehlo(conn, EmailServer);
  --utl_smtp.helo( conn, EmailServer );
  utl_smtp.command(conn, 'AUTH LOGIN');
  utl_smtp.command(conn, utl_raw.cast_to_varchar2(
    utl_encode.base64_encode( utl_raw.cast_to_raw(uname))));
  utl_smtp.command(conn, utl_raw.cast_to_varchar2(
    utl_encode.base64_encode( utl_raw.cast_to_raw(pwd))));
  utl_smtp.mail(conn, SenderAddress);
  utl_smtp.rcpt(conn, pToList);
  mesg:= 'Date: '|| TO_CHAR(SYSDATE, 'DD MON RR HH24:MI:SS' )|| crlf ||
         'From: "' || SenderName || '" ' || SenderAddress || crlf ||
         'Subject: ' || pSubject || crlf ||
         'To: '|| pToList || crlf||
         pBody || crlf || crlf;
  utl_smtp.data(conn, mesg);
  utl_smtp.quit(conn);
EXCEPTION
  WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR(-20001,SQLERRM);
END;
/When I call it, I get the following error:
Error starting at line 1 in command:
exec send_email('--','--','Test','Test email')
Error report:
ORA-20001: ORA-24247: network access denied by access control list (ACL)
ORA-06512: at "APPS.SEND_EMAIL", line 40
ORA-06512: at line 1Can anyone help me?
To Oracle: Why isn't there a nice graphical tool to help administer this?

Can someone please list out the syntax or packages necessary for USE with the DBMS_NETWORK_ACL_ADMIN package to enable email via UTL_SMTP and UTL_MAIL. THAT is the piece I can't find ANYWHERE.
http://docs.oracle.com/cd/E14072_01/appdev.112/e10577/d_networkacl_adm.htm
Is a great document for describing the DBMS_NETWORK_ACL_ADMIN package, but I don't have any idea how to apply THIS
BEGIN
  DBMS_NETWORK_ACL_ADMIN.CREATE_ACL(acl         => 'www.xml',
                                    description => 'WWW ACL',
                                    principal   => 'SCOTT',
                                    is_grant    => true,
                                    privilege   => 'connect');
  DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(acl       => 'www.xml',
                                       principal => 'SCOTT',
                                       is_grant  => true,
                                       privilege => 'resolve');
  DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL(acl  => 'www.xml',
                                    host => 'www.us.oracle.com');
END;
COMMIT;to setting up email! What does 'www.xml' represent? What do I need to substitute to apply it for use with UTL_MAIL and UTL_SMTP? THAT's the part that ISN'T documented and makes this whole process so frustrating!

Similar Messages

  • HT201320 im trying to set a email up on the exchange and it will not allow me

    I am trying to set a email in exchange and it will not allow me to do so

    I have also tried the fixes offered in this forum such as using the "Other" mail in setting up the gmail accounts, and not using the dedicated gmail setting.  I also went to google and signed in and enable the additional devices.  I had the same problems with the original account I set up for gmail, but it corrected when i went to using the "Other" instead of the Gmail button.  I was able to set up the new gmail accounts on my iphone without problem and on my husband's ipad1 for his gmail account.  Just the ipad 2 is giving me problems.   Again, thanks for any suggestions.

  • Trying to set an email address

    I am using Oracle 9i and SQL*Plus on Windows XP.
    I am trying to set an email address in my object table using an object method.
    I have the following types:
    CREATE OR REPLACE TYPE student_type AS OBJECT
    (FirstName varchar2(15),
    LastName varchar2(15),
    Address address_type,
    Contact contact_type,
    DateOfBirth date,
    Nationality varchar2(15),
    AttendanceMode varchar2(15),
    StudentNo varchar2(15),
    Userid varchar(15),
    FeeStatus varchar2(25))
    create type contact_type as object
    (home_tel_no number(14),
    mobile number(14),
    email varchar2(25))
    and have created a method to set an email address:
    MEMBER FUNCTION setEmail (self IN OUT student_type, em varchar2) RETURN number,
    PRAGMA RESTRICT_REFERENCES (setEmail, WNPS, RNPS)
    along with all of the other necessary code which works OK.
    I have implemented it with the following code but am not sure if it is correct:
    MEMBER FUNCTION setEmail (SELF IN OUT student_type, em varchar2) RETURN NUMBER IS
    BEGIN
    SELF.CONTACT.EMAIL := em;
    RETURN 1;
    END;
    but when I try to run it, i get the following error:
    SQL> SELECT S.SETEMAIL('[email protected]') FROM STUDENT_TABLE S WHERE FIRSTNAME = 'Sammy';
    SELECT S.SETEMAIL('[email protected]') FROM STUDENT_TABLE S WHERE FIRSTNAME = 'Sammy'
    ERROR at line 1:
    ORA-06572: Function SETEMAIL has out arguments
    Any help with this would be great.
    James

    SELECT S.SETEMAIL('[email protected]') FROM
    STUDENT_TABLE S WHERE FIRSTNAME = 'Sammy'
    ERROR at line 1:ORA-06572: Function SETEMAIL has out arguments
    er...that'll be because your member function has an OUT parameter, self:
    MEMBER FUNCTION setEmail (self IN OUT student_type, em varchar2) RETURN number,(1) You need to reference all parameters in the function, so you need two arguments in your call - but...
    (2) we cannot use methods with OUT parameters in SELECT statements, because that's the law.
    Do you need to pass SELF into your method? If so you'll have to use PL/SQL to do this instead.
    Looking at your code again, I see you are actually using a SELECT statement to alter the data iin the database. This is not allowed at all. SELECT statements are, must be, read only.
    Cheers, APC

  • HT1146 Just started using Apple mail.  Trying to set up email folders with Company/Company P.O. and it won't work.  Went to Edit and added special characters and it still won't work.  What am I doing wrong or can this not be done.

    Just started using apple mail.  Trying to set up email folders with example:  Company/Company P.O.  It won't let me do it.  It will not allow / or . .  What am I doing wrong or can this not be done.  I tried to use the Edit menu and adding the special characters, but it still won't work.  Please advise.  mmather

  • I am trying to set up email on new ipad and get msg yahoo!Server Unavailable Please try again later. Any suggestions please?

    I just bought an Ipad 2 and have been trying to set up my yahoo email. I continually get the msg, Yahoo! Server Unavailable Please try again later. I am not real savvy with this stuff so I need an answer I can understand, please...
    Thanks for any help,
    jeannie

    OK this is what I had to do; Not sure why but apple does not support yahoo email on the new ipad 2 so I had to create a gmail account. Deleted my yahoo account on ipad and entered new gmail account on the ipad, and it worked. I can now get email on ipad. Also gamil will import all contacts and mail from yahoo.
    Jeannie

  • Trying to set up email account for sub account

    I have been trying to set up an email account for a sub account through verizon message center all day with no luck.  It won't let me past the first screen.  Any ideas?

    Mechrissy2 wrote:
    I have been trying to set up an email account for a sub account through verizon message center all day with no luck.  It won't let me past the first screen.  Any ideas?
    Are you getting some kind of error? This is a peer-to-peer support board, so the more information you give us to work with, the better. (Not personal information like username or password, though.)
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.
    "All knowledge is worth having."

  • When I go to the option and then application I do not have a mailto content. How do I add this to my application so I can get my links mail from gmail? I am trying to set up email links to gmail. I have vista on this computer.

    I do not have a mailto under my application file. How do I add this to the application. I am trying to change my email links to gmail. I am using Vista.

    Try "Reset all user preferences to Firefox defaults" on the [[Safe mode]] start window.
    * http://kb.mozillazine.org/Resetting_preferences

  • Im trying to set up email on my iphone4 and it is saying "cannot connect using SSL" what does this mean?? what am i doing wrong because i cannot set up email??

    how do i set up email on my iphone??? it says "cannot connect using ssl" whats this mean, i cant recieve or send emails coz of this

    Try just choosing yes when it says that.  And yes if you get it a second time.  Lots of mail providers don't use SSL.

  • Getting unknown error 0x8004011c. when trying to set up email account in Outlook 2013 with a Domain

    Hi all
    The title basically states the problem - Outlook 2013 wont set up with a Domain. This only seems to affect Windows 8.1 pro, Win 7 Pro has no problems.  If I log on to the computer itself (not the domain) Outlook runs no problem
    If anyone has any ideas I would be most grateful
    Thank you
    Fionnbarr

    Hi Fionnbarr,
    When you say "...with a Domain", do you mean login to the computer with a domain user account?
    Does this happen on all your Windows 8.1 clients? What's the error message in full? At which exact step will you get this error?
    So you have observed that "This only seems to affect Windows 8.1 pro", it could be an issue with this specific system. I would suggest we first check for Windows updates and install any available ones, then try again.
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Error when trying to set up email

    When I try to set up my email by going to "Manage Internet Email" an error message reads: "The application has encountered an error and cannot continue." Anyone know how to bypass this error so I can get my email set up? Thanks for your help!!!

    Hello Karenfu,
    Welcome to the BlackBerry Support Community Forums
    As a workaround, try this process to add the email to your BlackBerry Internet Service account using your PC:
    http://www.blackberry.com/btsc/KB04553
    Cheers,
    -FB
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.
    Click "Accept as a Solution" for posts that have solved your issue(s)!

  • Getting Ssl message when trying to set up email

    How do I get my email to work again. I keep getting ssl message

    Settings>Mail, contacts, calendars>Tap your email account>Advanced>Use SSL>Off. Try that. You might have to swipe up to see advanced in the setting or hide the keyboard.

  • Can't get past the "Create Your Blackberry ID" screen when trying to set up email

    I had a 9810 and pretty much wore it out.   My wife also had a 9810 that was in good shape and recently got a new phone.    I backed up my phone and wipe hers, swith the SIM cards and restored my data to her phone.   Everything works perfectly except the email.   I can see all the email that was transferred, but I can't send or receive any new email.
    I figured I needed to go through the email set up.  In that process it wants me to create a blackberry ID.   I have filled otu the fiels numerous times and every it looks like it is going to go through and then it goes back to a screen where everything I just filled out is still there except it wants be to select a password and then confrim it a second time.   I do that again and it does the same thing again.   When I put a password in it telss me I have picked a "strong" one, but it just won't seem to stick and let me past this screen
    All I really want to do is get my phone to send and received email, like I said I can see all the old emails that came over from my old phone in the data restore.
    Any suggestions would be appreciated.

    Hello,
    I recommend you contact AT&T's dedicated BB Support staff (call their front line, request escalation to BB Support) and have them check to be sure that your account with them is correctly configured for this device. Sometimes when switching devices things don't fully automatically move behind the scenes, and only they (ATT) can validate that.
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • HT1937 Trying to set up email account and it says that 'this account may not be able to send or receive emails. Are you sure you want to save'

    Cannot see answer to question

    Good morning to all.
    Well I spent many hours last night trying to get my Mail going on my iPad. I phoned Yahoo. After listening music for 3/4 of hour, they gave me so called advise, which I had already tried 25 times. I exchanged emails with Apple support team. They said I did not have support arrangement, so they could not help me unless I buy one time support that costs $30.
    I can do emailing through Safari, but It is not up to current standard after I am so used to using "Mail" feature on iPad.
    I am now in a desperation state, so I am thinking to buy one time support from Apple.
    Just so someone might be thinking about Downloading Yahoo app for Mail, you should know it would not help me because my iPad iSO is 5.1.1. It has to be iSO 6.0 or higher. So I thought rather than spending $30 on one time support from Apple, I just trade in my iPad to get newer iPad.
    Is there anyone out there who might save me $30?   Thank you everyone for thinking about my problem.  BcCanip

  • Trying to set up email account ocountn the Iphone 4s but cannot get to POP ac

    How do I change setting for the Iphone 4s to a POP account?

    Is the exchange server run locally in the office or is it an outside provider?
    If outside, is it Exchange from Google services or someone else?
    Here's the way it works with Microsoft-hosted Exchange.
    Email address: [email protected]  
    Server: m.outlook.com
    Domain: Not needed (will be needed for a local server)
    Username: [email protected]
    Password: *********
    Description: My Company Email
    Use SSL: On

  • Trying to set-up email on iPod Touch

    Has anyone been successful connecting to bellsouth.net? While trying to verify POP account information, I get the message 'Cannot connect using SSL'. Even when I try w/o SSL, still no joy. Thanks

    Well, do you have Outlook?
    You can either install that and import the accounts or replicate them on the Touch.
    If you set them up in Thunderbird, you should be able to do them with one of the above methods.

Maybe you are looking for

  • Itunes can't find my iPhone 4 and tells me to restore it?

    First, my iPhone was in WiFi sync mode, but when it was in sync it always stopped because of an error -50. So I plugged my iPhone in my computer so it can sync normally, it worked but I couldn't do it with the WiFi anymore. After reading tips on this

  • Error while doing File to File Scenario

    All, I am trying a simple file to file scenario - where xi picks up the file from a location and maps the message and dumps it in another location. I am Getting the below error while doing the same ......... Time Stamp Status Description 2009-03-30 1

  • BEA Weblogic 6.1

    I'm trying to find a a version of BEA Weblogic 6.1 to use with some examples that came with a book. Does anyone know if I can find one or is it just too old?

  • Open old Pagemaker pmd files in CC Indesign

    How can I open Pagemaker files with pmd extension in CC Indesign?  I'm using Windows 7.

  • MB1C issues

    Hi, Can any one explain how to increase the line items in MB1C transaction. Because i have to upload the initial stock for about 150 material. I find there is only 12 lines available. How to increase the lines (rows)? Regards, abi