Sending Mail Notification From the database server

Hi All,
I want to send the mail notification to any email id from the database server.
I used the in built Package UTL_SMTP(pp_to,pp_from,pp_subject,pp_hostname) but i didn't got the success. Actually i dont know how and what parameters has to pass to this package .
It will great help if some body helps with the an example.
Thanks in Advance

917574 wrote:
I want to send the mail notification to any email id from the database server.Oracle version?
The easiest is to use UTL_MAIL - available from 10g onwards. If you're on 11g, you also need an ACL (Access Control List) entry to allow PL/SQL code to step outside the database and connect to an external server.
UTL_MAIL uses UTL_SMTP. You can use UTL_SMTP directly, but then you need to understand the SMTP protocol and how to correctly construct Multipurpose Internet Mail Extensions (MIME) e-mail bodies. Not difficult - but something that many developers seem insistent to remain ignorant about.

Similar Messages

  • Can't send mail, get message: the smtp server rejected the password. I tried lock and unlock keychain. I tried unlock captcha. Gmail works okay, it is Mail that does not. Help!! :(

    Can't send mail, get message: the smtp server rejected the password. I tried lock and unlock keychain. I tried unlock captcha. Gmail works okay, it is Mail that does not. Help!!

    Hi
    You need to check with your ISP whether or not the send mail server (SMTP) requires a password.  Some do, but many do not.  When you know the correct password to send mail, then you need to tell Mail as follows:
    Mail menu > Preferences > Accounts > Select the account
    Click on the Outgoing Mail Server (SMTP) combo box, and select Edit SMTP Server List...
    In the Account Information tab put the server name
    In the Advanced Tab, set up the authentication information from your ISP.
    Good luck
    Bob

  • Error Sending a notification from the Workflow

    Hi All,
    We are having the following error when we are trying to send a notification to the user.
    The is just a FYI notification so the workflow process is showing Completed with Errors.
    Then Error Message has the following text.
    [WF_ERROR] ERROR_MESSAGE=3835: Error '-20002 - ORA-20002: 2018: Unable to generate the notification XML. Caused by: 2020: Error when getting notification content. Caused by: ORA-01001: invalid cursor Wf_Engine.GetItemAttrNumber(PPGARWF, 569386-169741-1007928-4543134-301073, ORG_ID) Wf_Notification.GetAttrClob(601087, RECEIPT_DETAILS, text/html) Wf_Notification.oldGetAttrClob(601087, RECEIPT_DETAILS, text/html) WF_NOTIFICATION.GetFullBody(nid => 601087, disptype => text/html) WF_MAIL.GetLOBMessage3(nid => 601087, r_ntf_pref => MAILHTM2)' encountered during execution of Generate function 'WF_XML.Generate' for event 'oracle.apps.wf.notification.send'. ERROR_STACK= WF_MAIL.GetLOBMessage3(601087, WFMAIL, 2020: Error when getting notification content. Caused by: ORA-01001: invalid cursor Wf_Engine.GetItemAttrNumber(PPGARWF, 569386-169741-1007928-4543134-301073, ORG_ID) Wf_Notification.GetAttrClob(601087, RECEIPT_DETAILS, text/html) Wf_Notification.oldGetAttrClob(601087, RECEIPT_DETAILS, text/html) WF_NOTIFICATION.GetFullBody(nid => 601087, disptype => text/html) WF_MAIL.GetLOBMessage3(nid => 601087, r_ntf_pref => MAILHTM2), Step -> Getting text/html body) WF_XML.GenerateDoc(oracle.apps.wf.notification.send, 601087) WF_XML.Generate(oracle.apps.wf.notification.send, 601087) WF_XML.Generate(oracle.apps.wf.notification.send, 601087) Wf_Event.setMessage(oracle.apps.wf.notification.send, 601087, WF_XML.Generate) Wf_Event.dispatch_internal() [Error Process Error: 3116: Activity 'WFERROR/DEFAULT_ERROR' is not a runnable process.]
    Please can some one help me finding the root cause for the issue.
    Thanks,
    Varun

    Hi
    Thanks for your concern and help.
    Actually in my case it is a Sales Order OEOL workflow which is customised. Almost 90-100 SO get stuck with the following below error. When we try to run the "Retry Workflow Error Activitivity" program it clears them all except few. Please can you advice.
    Failed Activity Fulfill - Deferred
    Activity Type Function
    Error Name -1001 [Error Process Error: -1
    Error Message  ORA-01001: invalid cursor [Error Process Error: ORA-01001: invalid cursor ORA-01001: invalid cursor]
    Error Stack Wf_Engine.GetItemAttrText(OEOL, 3432469, ERROR_ITEM_TYPE) WF_ITEM.SetEndDate(OEOL, 3432469) Wf_Item_Activity_Status.Create_Status(OEOL, 3432469, 39202, COMPLETE) Wf_Engine_Util.Complete_Activity(OEOL, 3432469, 39202) Wf_Engine_Util.Complete_Activity(OEOL, 3432469, 132829, #NULL) Wf_Engine_Util.Execute_Activity(OEOL, 3432469, 132829, RUN) Wf_Engine_Util.Process_Activity(OEOL, 3432469, 132829, 50) Wf_Engine_Util.Complete_Activity(OEOL, 3432469, 132846) Wf_Engine_Util.Complete_Activity(OEOL, 3432469, 132555, #NULL) Wf_Engine_Util.Execute_Activity(OEOL, 3432469, 132555, RUN) Wf_Engine_Util.Process_Activity(OEOL, 3432469, 132555, 50) Wf_Engine_Util.Complete_Activity(OEOL, 3432469, 132551) Wf_Engine_Util.Complete_Activity(OEOL, 3432469, 131928, #NULL) Wf_Engine_Util.Execute_Activity(OEOL, 3432469, 131928, RUN) Wf_Engine_Util.Process_Activity(OEOL, 3432469, 131928, 50) Wf_Engine_Util.Complete_Activity(OEOL, 3432469, 131930, COMPLETE) Wf_Engine_Util.Execute_Activity(OEOL, 3432469, 131930, RUN) Wf_Engine_Util.Process_Activity(OEOL, 3432469, 131930, 50) Wf_Engine_Util.Complete_Activity(OEOL, 3432469, 131932, #NULL) Wf_Engine_Util.Execute_Activity(OEOL, 3432469, 131932, RUN) Wf_Engine_Util.Process_Activity(OEOL, 3432469, 131932, 50) Wf_Engine_Util.Process_Activity(OEOL, 3432469, 132551, 50) Wf_Engine_Util.Complete_Activity(OEOL, 3432469, 132559, COMPLETE) Wf_Engine_Util.Complete_Activity(OEOL, 3432469, 132458, #NULL) Wf_Engine_Util.Execute_Activity(OEOL, 3432469, 132458, RUN) Wf_Engine_Util.Process_Activity(OEOL, 3432469, 132458, 50) Wf_Engine_Util.Complete_Activity(OEOL, 3432469, 132460, COMPLETE) Wf_Engine_Util.Execute_Activity(OEOL, 3432469, 132460, RUN) Wf_Engine_Util.Process_Activity(OEOL, 3432469, 132460, 50) Wf_Engine_Util.Complete_Activity(OEOL, 3432469, 132466, #NULL) Wf_Engine_Util.Execute_Activity(OEOL, 3432469, 132466, RUN) Wf_Engine_Util.Process_Activity(OEOL, 3432469, 132466, 50) Wf_Engine_Util.Process_Activity(OEOL, 3432469, 132559, 50) Wf_Engine_Util.Complete_Activity(OEOL, 3432469, 132560) Wf_Engine_Util.Execute_Activity(OEOL, 3432469, 132560, RUN) Wf_Engine_Util.Process_Activity(OEOL, 3432469, 132560, 50) Wf_Engine_Util.Complete_Activity(OEOL, 3432469, 132557, #NULL) Wf_Engine_Util.Execute_Activity(OEOL, 3432469, 132557, RUN) Wf_Engine_Util.Process_Activity(OEOL, 3432469, 132557, 50) Wf_Engine_Util.Complete_Activity(OEOL, 3432469, 132553, #NULL) Wf_Engine_Util.Execute_Activity(OEOL, 3432469, 132553, RUN) Wf_Engine_Util.Process_Activity(OEOL, 3432469, 132553) Wf_Queue.ProcessDeferredEvent(OEOL) [Error Process Error: Wf_Engine.GetItemAttrText(OEOL, 3432469, .ADMIN_KEY)]
    *********************************************************************

  • How to send an email from the database

    i have create a post insert trigger at the database level for the emp table and that trigger call a procedure and that procedure send a email to the new employee, i the trigger send the firt name , second name , last name and the email address to the procedure .so my questions is about the command that will send the email to the new employee ,and the send email will look like this
    Dear "fist name "second name" "last name"
    welocme to..........................................................

    This thread could help answer some of your questions:
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:2391265038428
    C.

  • Is it possible to read , send emails from the database in oracle8.

    Hi,
    My present project needs me to send emails from the database through procedures. There is an oracle package UTL_HTTP in oracle8 which could be used to read emails from database. So kindly tell how to go about sending an email from the database. Is this feature available in Oracle8i.
    Thank you.

    Okay , Here's my Javascript wgich is in an onload process.
    Javascript variable addr_str displays the correct result.
    My hidden field is called P101_CHECKVAL.
    <html>
    <title>CodeAve.com(JavaScript: Display All URL Variables)</title>
    <body bgcolor="#FFFFFF">
    <script language="JavaScript">
    <!--
    // Create variable is_input to see if there is a ? in the url
    var is_input = document.URL.indexOf('P101_CHECKVAL:');
    // Check the position of the ? in the url
    if (is_input != -1)
    // Create variable from ? in the url to the end of the string
    addr_str = document.URL.substring(is_input+1, document.URL.length);
    // Loop through the url and write out values found
    // or a line break to seperate values by the &
    for (count = 0; count < addr_str.length; count++)
    if (addr_str.charAt(count) == "&")
    // Write a line break for each & found
    {document.write ("<br>");}
    else
    // Write the part of the url
    {document.write (addr_str.charAt(count));}
    // If there is no ? in the url state no values found
    else
    {document.write("No values detected");}
    -->
    </script>
    </body>
    </html>
    Everytime I put the HTML_get code into the javascript, it basically tells me I have an error on the page. So what exactly do I put that sets P101_CHECKVAL equal to the value of addr_str?

  • Sending email Notifications from BPM 11.1.1.5+FP

    Hi all,
    We're trying to send an email notifications from our process but we need to send HTML mails, not just plain text...
    Any help would be appreciated.
    Thanks in advance

    1. Configure the UMS Email Driver in Enterprise manager
    2. onfigure the SOA Suite Workflow Notification properties
    3. Restart the soa server
    4. On the BPM Process, drag the mail notification from the notification category.
    5. update the mail notification properties such as to address, title, and content etc.
    For the configuration, please refer the following url
    http://technology.amis.nl/blog/6019/configure-soa-suite-11g-for-sending-email-notifications-with-google-mail

  • Viewing a PDF from the database

    Ok I am now finally down to the last thing that I need to get working on my program, at least for the time being. I am still doing research trying to find out how to do it but so far it has been unsuccessful, I am trying to make it so that the user can select a file on the database and then display that file in PDF form (the file is already in PDF) and then once it is displayed they can do whatever with it. I've already got the selecting the file taken care of now I'm just trying to figure out how to get the selected file to display on the screen.

    is there a way to download the file to a temp folder on the app server and then display it from thereIn order to write your file from the Database Server (DS) to the Application Server (AS) you will have either have the DS and AS be the same server or you will have a shared drive that is accessible from both servers. I personally like the use of shared drives. The reason for this is that the RDMBS can only read/write to the file system of the DS; conversly, the AS can only read/write to the file system of the AS. With a shared drive (Mount Point) the AS and DS can write to the same directory.
    So the question now is how to extract the file from the database to the filesystem. If you have access to My Oracle Support (MOS) look up *How to Write BLOBs Stored Inside the Database Out to Files [Doc ID: 330146.1]*. If you don't have access to MOS let me know and I'll post the code from this document. Basically you create a procedure that uses the DBMS_LOB package to read the file form your table in chunks and then writes these chunks of the file to the file system using the UTL_FILE package. When you write the file to the file system, you write it to the shared drive. The shared drive must be accessable by the AS processes on the AS. Then in your form you could server the file to the user with a simple WEB.SHOW_DOCUMENT() call. The file will be delivered to the user via the Browser and the user will have the choice of saving or viewing the file. You will need to work with your DS and AS admins to set things up on your servers. I also recommend you built a process on the AS that will routinely delete the files in this shared drive to prevent accidently serving up an old copy of a file and to eliminate stale files on the shared drive.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Why Grid control will mis-judge agent state and send mail notifications?

    Sometime grid control will send mail notifications while the agent is still up.No log about network problems occur.So what about the root cause for this kind of issue?Has anyone falled into the same situation?And how to resolve?
    Thanks!

    Which alert are you getting?

  • SQL Server 2005 Database Mail - Mail configuration information could not be read from the database.

    I'm trying to setup Database Mail and send a test message, but it's not working.
    I've done several step-by-steps and all and I can't get it to work. Also checked several posts in this forum but none helped. I think it used to work before (2 months ago) but we had to turn it off.
    I've enabled it in Surface Configuration, have tried recreating all profiles, restarted SQL Agent, checked version mismatch...
    I check the Database Mail and I get the following message:
    Log Database Mail (Database Mail Log)
    Log ID 152
    Process ID 7684
    Last Modified 3/14/2013 6:49:58 PM
    Last Modified By SPEEDLING\sqlservice
    Message
    1) Exception Information
    ===================
    Exception Type: Microsoft.SqlServer.Management.SqlIMail.Server.Common.BaseException
    Message: Mail configuration information could not be read from the database.
    Data: System.Collections.ListDictionaryInternal
    TargetSite: Microsoft.SqlServer.Management.SqlIMail.Server.Objects.Account GetAccount(Int32)
    HelpLink: NULL
    Source: DatabaseMailEngine
    StackTrace Information
    ===================
       at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.DataAccessAdapter.GetAccount(Int32 accountID)
       at Microsoft.SqlServer.Management.SqlIMail.Server.Controller.CommandFactory.CreateSendMailCommand(DBSession dbSession)
       at Microsoft.SqlServer.Management.SqlIMail.Server.Controller.CommandRunner.Run(DBSession db)
       at Microsoft.SqlServer.Management.SqlIMail.IMailProcess.ThreadCallBack.MailOperation(Object o)
    2) Exception Information
    ===================
    Exception Type: System.IndexOutOfRangeException
    Message: timeout
    Data: System.Collections.ListDictionaryInternal
    TargetSite: Int32 GetOrdinal(System.String)
    HelpLink: NULL
    Source: System.Data
    StackTrace Information
    ===================
       at System.Data.ProviderBase.FieldNameLookup.GetOrdinal(String fieldName)
       at System.Data.SqlClient.SqlDataReader.GetOrdinal(String name)
       at System.Data.SqlClient.SqlDataReader.get_Item(String name)
       at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.DataAccessAdapter.GetAccount(Int32 accountID)

    I'm trying to setup Database Mail and send a test message, but it's not working.
    I've done several step-by-steps and all and I can't get it to work. Also checked several posts in this forum but none helped. I think it used to work before (2 months ago) but we had to turn it off.
    I've enabled it in Surface Configuration, have tried recreating all profiles, restarted SQL Agent, checked version mismatch...
    I check the Database Mail and I get the following message:
    Log
    Database Mail (Database Mail Log)
    Log ID
    152
    Process ID
    7684
    Last Modified
    3/14/2013 6:49:58 PM
    Last Modified By
    SPEEDLING\sqlservice
    Message
    1) Exception Information
    ===================
    Exception Type: Microsoft.SqlServer.Management.SqlIMail.Server.Common.BaseException
    Message: Mail configuration information could not be read from the database.
    Data: System.Collections.ListDictionaryInternal
    TargetSite: Microsoft.SqlServer.Management.SqlIMail.Server.Objects.Account GetAccount(Int32)
    HelpLink: NULL
    Source: DatabaseMailEngine
    StackTrace Information
    ===================
       at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.DataAccessAdapter.GetAccount(Int32 accountID)
       at Microsoft.SqlServer.Management.SqlIMail.Server.Controller.CommandFactory.CreateSendMailCommand(DBSession
    dbSession)
       at Microsoft.SqlServer.Management.SqlIMail.Server.Controller.CommandRunner.Run(DBSession db)
       at Microsoft.SqlServer.Management.SqlIMail.IMailProcess.ThreadCallBack.MailOperation(Object o)
    2) Exception Information
    ===================
    Exception Type: System.IndexOutOfRangeException
    Message: timeout
    Data: System.Collections.ListDictionaryInternal
    TargetSite: Int32 GetOrdinal(System.String)
    HelpLink: NULL
    Source: System.Data
    StackTrace Information
    ===================
       at System.Data.ProviderBase.FieldNameLookup.GetOrdinal(String fieldName)
       at System.Data.SqlClient.SqlDataReader.GetOrdinal(String name)
       at System.Data.SqlClient.SqlDataReader.get_Item(String name)
       at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.DataAccessAdapter.GetAccount(Int32 accountID)

  • Problem with "Capture Server Model from the Database"

    I've installed Oracle-Developer-Suite 10g and Designer 9.0.4.5.6. The repository databse is Oracle 10g and the application database is Oracle 9i (about 700 tables for the application). After I started the Designer Editor, I got the follwoing message:
    "No network notification service has been configured for this Repository instance. A desktop-only notification has been started."
    What does it mean? What's wrong with the configuration? How can I avoid this problem?
    Then I tried to "Capture Server Model from the Database". It took hours to read the data from the database. After reading the data, the following message occurs:
    "138 overlaps could not be eliminated by AutoLayout as there is insufficient room to layout the items. Select a large area and retry"
    I can not save the uncommited data into the repository.

    1. Designer 9i was made to capture 9i DB functionality. So no it will not capture full 11 DB functionality.
    2. Yes I have had some problems capturing from an 11DB and have written a bug on it.
         Bug.7138247     (74) CANNOT DESIGN CAPTURE A TIMESTAMP(6) FROM 11G DB:
    this is fixed in Designer 10.1.2.5

  • JAVA, sqlserver - Need to load an image from the sql server database

    hi,
    I need to load an image from the sql server database using java. I have connected to the database and getting all other records except the records for a photo (datatype = LONGVARBINARY) and Remarks (datatype = LONGVARCHAR).
    I am using java and sql server db. The photo and remarks are stored in the db. and i need to show the image and the remarks fetching them from there.
    I get the error :
    Thread-9 org.hibernate.MappingException: No Dialect mapping for JDBC type: -1
    How can I achieve this?
    Thanks,
    Gargi

    Exactly. And are you using MySQL?
    No. You are using Microsoft SQL server if I have to believe your initial post. A quick google tells me that the dialect class to use is:
    org.hibernate.dialect.SQLServerDialect

  • How to get Database name/IP address of the database server from forms10g

    Hi everybody,
    How do I get the database instance name and IP address of the database server?
    I am using Foms 10g and the database server is Oracle 10g.
    Sukanta

    Dear...........
    Plz use this code
    select SYS_CONTEXT('USERENV', 'IP_ADDRESS', 15) ipaddr from dual;
    SELECT utl_inaddr.get_host_address IP ,UTL_INADDR.get_host_name NAME FROM dual;
    select SYS_CONTEXT('USERENV', 'HOST') HELLO from dual;
    select SYS_CONTEXT('USERENV', 'TERMINAL') HELLO from dual;
    select SYS_CONTEXT('USERENV', 'OS_USER') HELLO from dual;
    SELECT SYS_CONTEXT ('USERENV', 'SESSION_USER') FROM DUAL;
    SELECT SYS_CONTEXT ('USERENV', 'DB_UNIQUE_NAME') FROM DUAL;
    thx.

  • HT2500 how do i get my mail from the pop server to my inbox

    Can someone please help me ! I'm sure I did something by accident and don't know how to fix it. My problem is i don't see any emails in my inbox, however my account info says there is mail on the pop server. how do i get the mail from the pop server to my inbox?
    thank you for helping

    First try rebuilding your Inbox.
    Select the Inbox.
    Under Mailbox in the Menu bar select Rebuild (last option in list)
    Note: If you delete a POP account in Mail, it will delete any messages in the Inbox. It does not delete your custom folders or your sent messages.
    If the messages have been deleted and are no longer on the server, you can restore from Time Machine.
    Let us know if this helps.

  • Failed to retrieve data from the database. 42000(Microsoft)(ODBC SQL Server

    Failed to retrieve data from the database. 42000(Microsoft)(ODBC SQL Server Driver)(SQL Server)Line 1: Incorrect syntax near 's'

    Hi Diptesh,
       What is your crystal reports version ? CRXI or higher?
    And does your filter bject consists of apostrophie s fields?
    If this is the case then this is a known issue try installing the latest service packs or fix packs to see if it resolves the issue?
    Regards,
    Vinay

  • Having problems in sending email..always saved in outbox and cannot send mail bcoz of the server failed

    Having problems in sending email..always saved in outbox and cannot send bcoz of server failed

    The email server you are using to send mail through requires the password, if any is required it needs to be set in the location that I pointed out in the earlier post.
    It is usually the same password you use for receiving emails.
    I don't use either Facebook or Twitter so I am not sure how to help with those.

Maybe you are looking for

  • Pages 5.2 - Recent font display and cmd + click missing?

    I just upgraded from Pages 4.0 to 5.2 and seems I've lost the recently used fonts list that used to be displayed at the top of the font list for quick selection. It's not a major issue, but it's really messing with my workflow having to search throug

  • Which sql server edition is better for client application?

    Hello all, Iam going to create Point Of Sale system using winforms. I want such type of database which should not install when installing POS setup and should be lightweight also and work without having to install. I have heared about LocalDB and sql

  • Color profiles of placed Tiff files

    Hi, I'm using CS3 on Mac with 10.4.11. I want to know what happens to a color profile when placed in Illustrator.  My color settings in Illustrator are to "Preserve Embedded Profiles". My guess though is that as soon as I choice to embed the .tif, it

  • Apply Keywords from the Mobile LR App?

    Is it possible to apply keywords to synchronized photos using the mobile Lightroom app?- then obviously the idea is that those keywords will sync to the desktop.

  • AUR filesize limit?

    when I try to upload a newly built src package to the aur, it tells me: 413 Request Entity Too Large This usually means there's a limit set on uploads with nginx, but in my case the file is only 2.3mb; that seems low for a limit on install packages.