To make UTL_SMTP available

Hi,
I try to run this in the 10g express DB
CREATE OR REPLACE PROCEDURE send_mail (
p_mail_host IN VARCHAR2,
p_from IN VARCHAR2,
p_to IN VARCHAR2,
p_subject IN VARCHAR2,
p_message IN VARCHAR2)
AS
l_mail_conn UTL_SMTP.connection;
BEGIN
l_mail_conn := UTL_SMTP.open_connection(p_mail_host, 25);
UTL_SMTP.helo(l_mail_conn, p_mail_host);
UTL_SMTP.mail(l_mail_conn, p_from);
UTL_SMTP.rcpt(l_mail_conn, p_to);
UTL_SMTP.open_data(l_mail_conn);
UTL_SMTP.write_data(l_mail_conn, 'Date: ' || TO_CHAR(SYSDATE, 'DD-MON-YYYY HH24:MI:SS') || Chr(13));
UTL_SMTP.write_data(l_mail_conn, 'From: ' || p_from || Chr(13));
UTL_SMTP.write_data(l_mail_conn, 'Subject: ' || p_subject || Chr(13));
UTL_SMTP.write_data(l_mail_conn, 'To: ' || p_to || Chr(13));
UTL_SMTP.write_data(l_mail_conn, '' || Chr(13));
UTL_SMTP.write_data(l_mail_conn, p_message || Chr(13));
UTL_SMTP.close_data(l_mail_conn);
UTL_SMTP.quit(l_mail_conn);
END send_mail;
SHOW ERRORS
But I've got
Errors for PROCEDURE SEND_MAIL:
LINE/COL ERROR
8/17 PL/SQL: Item ignored
8/17 PLS-00201: identifier 'UTL_SMTP' must be declared
10/3 PL/SQL: Statement ignored
10/3 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
11/3 PL/SQL: Statement ignored
11/17 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
12/3 PL/SQL: Statement ignored
12/17 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
13/3 PL/SQL: Statement ignored
13/17 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
14/3 PL/SQL: Statement ignored
14/22 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
15/3 PL/SQL: Statement ignored
15/23 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
16/3 PL/SQL: Statement ignored
16/23 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
17/3 PL/SQL: Statement ignored
17/23 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
18/3 PL/SQL: Statement ignored
18/23 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
Best regards

hi,
check this link below
utl_smtp
Mithun
Oracle DBA

Similar Messages

  • How do I make growl available to all accounts on my

    Hello,
    Can someone please tell me how to make Growl available to more than one user account? I have one account that I use mostly but it does not have growl anywhere that I can find. On another of my accounts it is in the systems preferences and applications folders. Both of these accounts are Admin so I don't know why I can't see the application on both. 
    Also can someone please tell me if I can use Growl as a notification software for phone calls. I have dial up and I miss lots of calls when I'm online so I wanted to find something that didn't cost an arm and a leg to use as a type of caller ID, notification so I can see if I miss any calls. I was told that I could do this with growl. I don't need anything with a lot of bells and whistles, just something to show who is calling so I can know who to call back when I get off line.
    Thank you.

    To be available to all users, the application must be in the main Applications folder at the root of Macintosh HD.
    If it's in a User/Applications folder it will ony be available to that user.
    For the notification problem I would have thought Growl's developer was the place to ask.

  • How to create the custom method and make it available to clients:

    Hello, Can any one help me with this problem ASAP??
    I am trying to work on an example of "Customizing the Query and Creating an Associated Custom Method"
    from http://helponline.oracle.com/jdeveloper/help/topics/jdeveloper/developing_mvc_applications/adf_pviewcustommethod.html?tp=true#method. To do that, the first task is to create the custom method and make it available to clients.
    Following instructions in the helponline documentation, I completed the three steps: (1) "Specify a custom query for the View Object definition for EmployeesView", (2) "Add the custom method to the application module Java class", and (3) "Make the method available to clients".
    The following is the error message I got to test the application module. Can anyone tell me what the message really means and what I should do. I am wondering if there is any mistakes in the document.
    (oracle.jbo.SQLStmtException) JBO-27122: SQL error during statement preparation. Statement: SELECT Employees.EMPLOYEE_ID, Employees.FIRST_NAME, Employees.LAST_NAME, Employees.EMAIL, Employees.PHONE_NUMBER, Employees.HIRE_DATE, Employees.JOB_ID, Employees.SALARY, Employees.COMMISSION_PCT, Employees.MANAGER_ID, Employees.DEPARTMENT_ID FROM EMPLOYEES Employees WHERE Employees.SALARY > :1 and Employees.DEPARTMENT_ID = :2
    ----- LEVEL 1: DETAIL 0 -----
    (java.sql.SQLException) ORA-01008: not all variables bound

    You need to set values for the parameters in your query before you try to execute the query in the view object.
    So you need to call the setBindVars method before the query.

  • Is there any way to embed the pdf file in the book created in iBooks Author to make it available to be downloaded or sent to email? So that the user can print it out.

    Is there any way to embed the pdf file in the book created in iBooks Author to make it available to be downloaded or sent to email?
    I'm making the book for children and there is one chapter providing coloring pages. So I wish to attach pdf files that allow users to download it at the end of chapter so that  they can print it out. Been searching through discussion, I've found some advice about taking screen snapshot page-by-page > then send the pics from photo album to email. However, I'm wondering if there's a way that make the process easier.

    Warehouse that PDF on your own server, then link to it from your book.
    Ken

  • How do I make firefox available to all users in Windows 7?

    I've installed Firefox on a Windows 7 computer. It is only available for the user who was logged in at the time. Is there a way to make it available to all users on that computer, or do I have to run the installer under each login?

    ''ricmcdav [[#question-1045158|said]]''
    <blockquote>
    I have already installed firefox on about 15 pc's. Just realized it is user specific. Any way change it to all users or do I have to reinstall using "run as admin".
    </blockquote>
    ''forgottengods [[#answer-686397|said]]''
    <blockquote>
    I believe you just use Firefox sync, to have the profiles mimic each other. Here is a link (https://support.mozilla.org/en-US/kb/how-do-i-set-up-firefox-sync).
    </blockquote>
    Thanks but The link returns a page not found,

  • Convert doc to PDF and make it available for workspace

    Hi,
    is there a way, how to convert a doc file to PDF file and make it available for the workspace (accept - deny scenario)?
    Lets say, that I have a contract that has to be approved by my manager. I convert the doc to PDF file and send it to his to-do queue. He than decides if it is a good agreement or bad one.
    I see couple of tricks in this. First, the converted file needs to have process fields included, so it has to be a form.
    Converted file is a flat PDF. I tried to use DDX to merge flat PDF and form with process fields, however that throwed and error.
    Workaround could be creating an envelope saying, hey, look in the attachments section, there is something you need to review.
    I can create an attachment in the form with DDX code, however only in the DDX UI interface, for some reason, it wont work in the process in LC.
    Also, I have difficulties with routes after user hits the accept, deny buttons in workspace, nothing happens :-(
    Could you please give me some advices, what kind of variables I need, what types they should be and how the process should looklike? I want to invoke it over the WSDL so at least one document has to be passed over it. The envelope can be in the resources section in LC (makes sense, but I do not know how to address it in the DDX and afterwards)
    Thanks in advance,
    H.

    Hi Jasmin,
    I can add the converted document to PDF as a attachment to the XDP form in the workspace.
    I am strugling now with that envelope (the XDP), cant render it to PDF and than workspace enable it. I will have a look around the web because it will be there. One question is can I control permitions on the attachment? I want just read only permitions.
    Thanks Jasmin for your continuous help.
    J

  • How to make iBooks available in iBookstore for Sri Lanka and India?

    Does anyone know how to make iBooks available for purchase in iBookstore for Sri Lanka and India?  I have tried going through iTunes Connect to add regions, but it doesn't give me the option to add any more.  Thanks

    ali.basheer.ahamed wrote:
    Can I know How to add to the Indian store please. I have been trying the same - unable to add.
    Consult this list to see whether paid books are available in those countries:
    http://support.apple.com/kb/TS3599
    If not, you have to use another store, like Kindle, Nook, Kobo, Googlebooks, or Sony.

  • HT5071 Can I publish my work produced with iBooks Author and make it available (free of charge) for my students only?

    Can I publish my work produced with iBooks Author and make it available (free of charge) for my students only?

    Yes. Put it on your own server, and/or send it out via email.

  • How to make PDFs available for viewing online only

    Sorry for the odd thread title — it is the only one that makes sense.
    I work for a small non-profit historical group.  We are digitizing to archival standards a collection of newspapers and periodicals and want to make them available to the public.  However we do not want to just put the PDF out there as that offers opportunities for theft.  Some of the already released material has already been lifted from Archives.Org and is now being sold on CDs and the Internet by for-profit nefarious people.
    So..., is there a way to take the PDF and have it so that it will not work unless it is viewed on our website?  In other words, if a person downloads the file to their computer it will not work?  I think it should be possible to include a java script routine somewhere whereby if the file is opened online, it opens.  But if a person downloads it to their computer and tries to open the file and does not see a small script file, it does not open.  OR, is it possible to give each file it's own certificate for online use only?
    A sample PDF can be viewed here.
    Thank you one and all for any replies,
    A. Wayne Webb

    Thank you for the response George and Isakten.
    I found my solution, and better yet it will not break the budget.  CopySafe PDF Protector while perhaps a bit unwieldy for a first-time end user, offers all I needed.  It forces the end user to add an add-on for their browser and we all know that can be difficult at best, but the program takes care of it handily.
    Cordially,
    A. Wayne Webb

  • Is there going to be an update to iTunes Radio that would make it available worldwide and not just U.S. only?

    Is there going to be an update to iTunes Radio that would make it available worldwide and not just U.S. only?

    Hi Laura.
    We're constantly improving HP Photo Creations and we welcome constructive suggestions. Can you provide more detail on the features you want and how you would use them?
    Thank you,
    RocketLife
    RocketLife, developer of HP Photo Creations
    » Visit the HP Photo Creations Facebook page — news, tips, and inspiration
    » See the HP Photo Creations video tours — cool tips in under 2 minutes
    » Contact Customer Support — get answers from the experts

  • 1013 File Adpter pick .pdf, .doc files and make it available in Worklist

    Hi,
    I am using 10.1.3 version. I have a file adapter that polss on a directory and picks up any file dropped in the folder can doc, pdf. I have a Human Task that a user looks at a file and then APPROVE or REJECT or if possible make changes to a file too.
    Now how do I pick-up a file using File Adapter and make it available in Human Task (Worklist). I did look at DocumentReview Sample but it accepts some URL as a parameter but in my case I want to have a file i.e. pdf, doc etc. How can I handle this. Any help is appreciated.
    Thanks

    Hi Jasmin,
    I can add the converted document to PDF as a attachment to the XDP form in the workspace.
    I am strugling now with that envelope (the XDP), cant render it to PDF and than workspace enable it. I will have a look around the web because it will be there. One question is can I control permitions on the attachment? I want just read only permitions.
    Thanks Jasmin for your continuous help.
    J

  • In Forms Central, attempting to do file attachment, but "select File" option is grayed lout/unavailable - how do I make it available?

    in Forms Central, attempting to do file attachment, but "select File" option is grayed lout/unavailable - how do I make it available?

    Is it necessary that all the files are on the local hard disks? In the case of the laptop I could understand this if the laptop is also used outside the network, but the desktops should stay in place, no?
    It could be as easy as to make a shortcut on all the computers to the samba-share and tell the inlaws that they have to use the samba-share to store their (shared) files.
    You are correct about this but I doubt they would remember to use this all the time so I want to sync the folders just in case.
    Assuming the laptop is always going to be in the same IP address when it connects to the network (which is unlikely in default configurations), you could create a script that checks for the existence of the machine on the network then perform a sync.  I had a script written in Python somewhere that would check to make sure the server side was up and run unison, but it could be modified to check for the laptop and copy files.  Let me know if that's something you're interested in and I can post it for you.
    This sounds like what I'm looking for. Also I wander If it could be done by NetBIOS  name instead of ip address? This way It wouldn't matter.
    The script sounds like what I'm looking for though
    Thanks for the help!

  • How to make material availability check work during Work Order creation

    Hi Experts,
    Kindly advice about these matters:
    1. How to make material availability check work during Work Order creation?
    My requirement is Work Order can not be created when it has missing parts. I have set the config to '3' can not created when is has missing parts, but it still does not work.
    I have implemented SAP Notes 1148139 on my system (SAP ECC 6 Ehp 5) also, but still does not have any effect.
    I must not set the config Res./Purch Doc creation to 'immediately', because it does not fit to my user requirement. Is there anyone knows how to solve this requirement?
    2. How to make information message/ Availability check screen appear when sparepart is missing, without clicking Availability Check button? for example: appear when clicking Save button.
    Thank you
    -amoonra-

    Hi Maheswaran,
    I have implement the prerequisite notes. (Notes 790219 and 1034962). Do you know why it is still does not work?
    Thanks
    -amoonra-

  • I had created two photo albums on my ipad, by transferring photos from my hp laptop. I want to make space available on my ipad by deleting these photos, but the same hp laptop is no more with me. How do I delete these photos?

    I had created two photo albums on my ipad, by transferring photos from my hp laptop. I want to make space available on my ipad by deleting these photos, but the same hp laptop is no more with me. How do I delete these photos?

    1, you can't at the moment, though with iOS 5 in the Autumn, from http://www.apple.com/ios/ios5/features.html#photos :
    Even organize your photos in albums — right on your device
    2, by removing it from you synced from and re-syncing. Only photos taken with the iPad, copied to it via the camera connection kit, or saved from emails/websites etc can be deleted directly on the iPad (either via the trashcan icon in the top right corner if viewing the photo in full screen, or via the icon of the box with the arrow coming out of it in thumbnail view)
    3, the location of the photos that you synced to the iPad should be listed on the iPad's Photos tab when connected to your computer's iTunes.
    4, you can copy the photos from your iPad to your computer : http://support.apple.com/kb/HT4083 . You should also be able to delete them from the iPad as part of the transfer process to your computer, and it's then your choice whether to add them to your sync photo list so as to copy them back to the iPad. Copying them to your computer would allow you to organise them into folders and therefore be able to sync them back into separate albums.
    5, I don't use Dropbox either. There are some third-party browser apps in the iTunes App Store that allow you to download pages so that you can view them when offline e.g. Atomic Web (the whole page is saved within Atomic Web, it doesn't place a photo into the Photos app)
    6, deleting content should help. If you remove an app from your iPad then you also remove the content that it's got on the iPad - so if you then decide to reinstall it back onto the iPad then you will need to manually add back any content that you want in it. None of the Apple built-in apps (including Photos) can be removed from the iPad

  • Word works on admin account but not available on other accounts.  How do I make it available?  I have tried dropping word into applications but still can't be used on other account users....Help!

    Can't make word available on other accounts on my imac.  Have tried dropping word into applications and then opening when on other user account but won't open word.....help!

    Duane,
    If no one is able to help on this forum there is a Office for Mac Product Forums hosted by Microsoft, you may find your answer there.
    Roger

Maybe you are looking for