"Apex_Mail.Send" with the body table

Hello

I would use the APEX_MAIL. SEND and fill the body with a table.

Something like this:
declare
begin

APEX_MAIL.SEND(

  p_to =>'my_test@just_debugging.com',
  p_from=>'my_test@just_debugging.com',
 
  p_body=>  chr(10)||
  APEX_UTIL.TABLE_TO_STRING(my_Table, ',') || chr(10)  || -- <- This does NOT work
  TO_CHAR(Select * from My_Table),  -- <- This does NOT work
  

  p_subj=>'My Subject');
 
-- push the e-mail queue for immediate delivery
wwv_flow_mail.push_queue(
P_SMTP_HOSTNAME => 'ip',
P_SMTP_PORTNO => 'port');

end;
Does anyone know how to do this?

Sorry...

DECLARE
   p_vc_arr2   htmldb_application_global.vc_arr2;
   p_string    VARCHAR2 (2000);
BEGIN

SELECT ename
   BULK COLLECT INTO p_vc_arr2
     FROM emp
    WHERE deptno = :p84_select_deptno; -- Or remove condition.

   p_string :=
     HTMLDB_UTIL.table_to_string (p_vc_arr2, ':');

APEX_MAIL.SEND(

  p_to =>'my_test@just_debugging.com',
  p_from=>'my_test@just_debugging.com',

  p_body=>  p_string

  p_subj=>'My Subject');

-- push the e-mail queue for immediate delivery
wwv_flow_mail.push_queue(
P_SMTP_HOSTNAME => 'ip',
P_SMTP_PORTNO => 'port');

end;

In http://apex.oracle.com/pls/otn/f?p=31517:84:2900701551472314

It should be something like this...

Tags: Database

Similar Questions

  • Mail send and the body of the email and the attachment to ATG.

    Hi all

    Can any body explain to me how I will send an email with the body of the email and attachments in ATG.

    Thank you
    Chadnra mohan

    You can use atg.service.email.MimeMessageUtils or javax.mail.internet.MimeMessage (both are under Message classes).

    You can set the body to aid below extracted.

    Message MSG = MimeMessageUtils.createMessage ();
    msg.setText ("your body of the email");

    You can define the setting and the content using below extracts.

    define the content of the message: message to multiple parties + attachment
    ContentPart happy [] =
    {New ContentPart ("it's clear","text/plain" ""),}
    {New ContentPart ("this is text html" , "text/html")};
    Attachment of files = new File ("attachment.html");
    MimeMessageUtils.setContent (msg, content, seizure, false);

    All of these are clearly explained in the link below.

    http://docs.Oracle.com/CD/E24152_01/platform.10-1/ATGPlatformProgGuide/HTML/s1013creatingjavamailmessages01.html

    Thank you
    Gopinath Ramasamy

  • How the parameter of the procedure with the default table type?

    Hello!

    How the parameter of the procedure with the default table type?
    For example:
    type varchar2lType is table of varchar2(50) index by binary_integer;
    create or replace procedure test1
       (
        s1  varchar2(50)
        sa2 Varchar2Type
       )
    as
    begin
       dbms_output.put_line('yyxxyyy!');
    end;
    /
    Published by: bullbil on 16.01.2012 06:35

    If he should really be an associative array for some reason any (can't think why, but just for fun...) you could declare a dummy array in the packet header and specify as the default:

    create or replace package wr_test
    as
       type varchar2ltype is table of varchar2(50) index by pls_integer;
       g_dflt_varchar2l_tab varchar2ltype;
    
       procedure testit
          ( p_testarray varchar2ltype default g_dflt_varchar2l_tab );
    end wr_test;
    
    create or replace package body wr_test
    as
       procedure testit
          ( p_testarray varchar2ltype default g_dflt_varchar2l_tab )
       is
       begin
          dbms_output.put_line('p_testarray contains ' || p_testarray.count || ' elements');
       end testit;
    
    end wr_test;
    

    It is a bit of a hack, because it relies on a global variable that is exposed. A more orderly approach would overload the procedure so that a version does not have the table and another argument:

    create or replace package wr_test
    as
       type varchar2ltype is table of varchar2(50) index by pls_integer;
    
       procedure testit;
    
       procedure testit
          ( p_testarray varchar2ltype );
    
    end wr_test;
    
    create or replace package body wr_test
    as
    
       procedure testit
       is
          v_default_array varchar2ltype;
       begin
          testit(v_default_array);
       end testit;
    
       procedure testit
          ( p_testarray varchar2ltype )
       is
       begin
          dbms_output.put_line('p_testarray contains ' || p_testarray.count || ' elements');
       end testit;
    
    end wr_test;
    
  • Why the head of the puppet does not work with the body on Animation character?

    On my first project, I have a head that works, but it's not connected with the body and the body is fixed, I can't move their arms or legs.

    I am late 2013 with Ox capitan iMac.

    I made the puppet on PS.

    Thanks for the reply,

    If the head is in motion, but the rest of the body is not, it means that these layers are not on the same mesh (for example, the head is on Warp independently, while the rest of the body is not). If you added a '+' in front of the name of the "Head" layer, try to remove it. Or, if you do this in the Panel of the puppet, try to select the layer of the head and by unchecking 'Independent chain' in the properties panel.

  • ORA-39060: one or more tables has declined due to conflicts with the main table

    Dear all,

    Currently, I have problems, I try to import the entire schema

    bash - $3.2

    bash - $3.2 impdp dumpfile = PRODDUMP BALL/BALL_BALL@BALL. DMP DIRECTORY = DUMP_DIR FULL = Y LOGFILE = IMP Log REMAP_SCHEMA = BALL: BALL REMAP_TABLESPACE = BALLDATA:BALLDATA

    Import: Release 11.2.0.3.0 - Production the my Sep 30 15:28:08 2013

    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

    Connected to: Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    With partitioning, Automatic Storage Management, Oracle Label Security, OLAP,.

    Options of Data Mining and Real Application Testing

    ORA-39060: one or more tables has declined due to conflicts with the main table

    UDI-31626: operation there was error ORACLE 31626

    ORA-31626: there is no job

    ORA-39086: cannot retrieve information about jobs

    ORA-06512: at "SYS." DBMS_DATAPUMP', line 3326

    ORA-06512: at "SYS." DBMS_DATAPUMP', line 4551

    ORA-06512: at line 1

    Any solution please

    Hello

    You can use the view:DBA_DATAPUMP_JOBS

    then use the table as drop statements

    drop table . purge;

    HTH

  • Nested tables will not align with the primary table


    Hi all. Looks like I am facing another obstacle focus on the table. While I was creating one of my pages, I used nested tables to create a column on the left side of the page that will contain my menu secondary, while the other column will hold a flash element and the content of the page.

    Although I have inserted tables nested with a spacing of the cell '0' and '0' cell padding and Visual AIDS seem to indicate that the values in the nested table are identical with the primary table who is the holder, the nested table that will contain the film and the page content is not embedded with the table above. It seems to be off by 1-2 pixels or more, but since there will be a right on the image under the menu is quite obvious.

    I enclose the code for your information (line 165, 166).

    Thank you for your time and your suggestions. I really appreciate it.

    Saturday, September 16, 2006 15:06:50 + 0000 (UTC), "HTML-Newbie.
    wrote:

    > Discover the link http://www.fastventures.com/dev/test_temp_2col.html and you
    > see the picture under the main menu align with her on the
    > right side.

    Change this:




    To do this:

    <>
    SRC = "img/place_second.jpg" width = "572" height = "200" > "

    align = "right" >

    <>
    SRC = "img/place_second.jpg" width = "572" height = "200" > "

    Gary

  • HP Officejet Pro 8620: Problem with the body of the e-mail showing after parsing a PDF to e-mail.

    I have a new 8620 Pro of Officejet and I loved this day except for one thing. When I scan a PDF document (and perhps other types), Outlook to send I then write in the body of the e-mail - for the recipient. However when I send it, the message does not send with attachment. The attachment of the e-mail but no message. What happened several times.

    When I send an email directly from QuickBooks, I can only send 1 inv both. I want to scan to PDF and send 2 or more both with a messge in the body. This method works except for the body (msg) is not there.  Why is that and can be set in the settings or? I tried all the settings that seem reasonable. Help, please!

    Lucinell007,

    As mentioned, I do not use Outloook - I him have not done for years.

    I might miss something else.

    In general, if "scan to e-mail" is not allowing you to scan and then add text to your body of the email to send, and then you have the option that works for those of us suffering from the lack of sophistication E-mail:

    • Scan the images / document (s) in your computer and save the file (s)
    • Create an e-mail using your Outlook email client
    • Join the image / document (s)
    • Send the email

    Reference:

    Scan_Multiple_Documents-combined

    Click on the thumbs-up Kudos to say thank you!

    And... Click on accept as Solution when my answer provides a fix or a workaround!

    I am happy to provide assistance on behalf of HP. I do not work for HP.

  • HTTP GET method with the body of the message

    Hi all

    I work with an API using HTTP to make calls to a server. I met an API call in the documetnation that uses the HTTP GET method with a message body. It seems that this is not supported by LV14 because I do not see an entry of message body for the LabVIEWHTTPClient.lvlib:GET.vi function. The POST methods and COULD appear to be banned for this API call, I a not found 405. I could be stuck with the help of GET.

    Certainly, this isn't recommended GET method - but it is not explicitly forbidden in the HTTP/1.1 specification. Is there a work around to submit an HTTP GET request to content? I have to use HTTP external DLL to achieve?

    All entries would be great.

    Thank you

    Richard

    Seems to be a problem on the server side?  Maybe I misunderstood what you were trying to get?

  • DM 4.0.0.833 and synchronization with the data-&gt; TABLES DROP dictionary

    Hello

    I have a DataModeler physics implemented in Oracle database, I drop a table of data in DM maker 4.0.0.833.

    The database with the data dictionary synchronization and does not detect that you have deleted a table.


    Is this a bug? Or am I something wrong?


    Thank you

    Please mark the thread as answered if answer has helped you to solve the problem.

    Thank you

  • Problem with the af:table links and views

    I want to display a table with data from a database table called PERSON, so I use af:table tag.

    The PERSON table has the following fields:

    • PERSON_CODE
    • PERSON_NAME
    • PERSON_COD_STATE

    The PERSON_STATE field is a foreign key to another table called PERSON_STATE:

    • PERSON_COD_STATE
    • DESCRIPTION

    I created a view for the data of the PERSON (personView) table. Because I want to show the person status description in the af: table, I created another view for the data in table PERSON_STATE (personStateView). And I've also created a link between personView and personStateView.

    In the column of the af: table that represents the State of no one, I drop the field 'description' of the State view linked to the view of anyone.

    When I run the JSP, the State is not displayed correctly. All persons are displayed with the same State.

    During the test directly with the application module, the display link works correctly.

    View links inside an af:table work?

    I work with ADF 10 g.

    Thank you

    Your scenario should be treated with a sql (VO on two EOs) join with a relationship master / detail. The table will be able to browse the details for each master record to time stamping.

  • Code of the trigger with the error table mutation

    I have 2 tables, cc_call_lists and cc_call_issues. I have a trigger on the table of cc_call_issues so that when the priority is updated I can determine how to set Issue_Priority.

    Basically, the priority update for an Issue_Id I need to update the I want to watch Issue_ids of all the participating on the cc_call_lists table and determine how to update the Issue_Priority column.

    Issue_Priority must always be the first priority of the table cc_call_issues for Issue_id records in the cc_call_lists table. So when I need to watch all changes priority priority values for which the Participant has records in the cc_call_lists table and take the max value priority after the record is updated.

    Unfortunately, I get the following error message when the trigger is activated:

    ORA-04091: table TTMS. CC_CALL_ISSUES is changing, function of triggering/can not see
    ORA-06512: at «TTMS.» UPDATEISSUEPRIORITY', line 30
    ORA-04088: error during execution of trigger ' TTMS. UPDATEISSUEPRIORITY'

    Is there a work around which is not too complicated? Any help would be greatly appreciated.


    Table: cc_call_lists
    Name
    -----------------
    PARTICIPANT_TYPE
    PARTICIPANT_ID
    LAST_ACCESS_DT
    LAST_ACCESS_BY
    CREATE_DT
    CREATE_BY
    MODIFY_DT
    MODIFY_BY
    CALL_STATUS
    CALL_PRIORITY


    Table: cc_call_issues
    Name
    -----------------
    ISSUE_ID
    ISSUE_DESCR
    DEACTIVATION_DT
    PRIORITY
    CREATE_DT
    CREATE_BY
    MODIFY_DT
    MODIFY_BY

    Trigger on cc_call_issues code:
    CREATE OR REPLACE TRIGGER TTMS.UpdateIssuePriority
    BEFORE UPDATE
    OF PRIORITY
    ON TTMS.CC_CALL_ISSUES 
    REFERENCING NEW AS New OLD AS Old
    FOR EACH ROW
    DECLARE
    tmpMaxPriority number:=0;
    
    -- Get list of all participants call queue records, existing priority who also have a participant issue record with this issue code
    cursor c1 is
    select a.participant_id, a.call_priority
    from cc_call_lists a, cc_participant_issues b
    where 
      a.participant_id = b.participant_id
      and b.issue_id = :new.issue_id
      and b.issue_status = '001'
      and a.call_status <> '003';  -- Not closed already
    
    BEGIN
        for thisone in c1 loop
                -- Get the existing highest priority
                select nvl(max(b.priority),0)
                into tmpMaxPriority
                from cc_participant_issues a, cc_call_issues b
                where
                  a.issue_id = b.issue_id and
                  a.participant_id = thisone.participant_id;
                  
                -- Update it if the new priority value is higher than the existing call queue record priority
                if :new.priority > tmpMaxPriority then
                        update cc_call_lists
                        set call_priority = :new.priority
                        where participant_id = thisone.participant_id; 
                elsif :new.priority < tmpMaxPriority then
                        update cc_call_lists
                        set call_priority = tmpMaxPriority
                        where participant_id = thisone.participant_id; 
                end if;
        end loop;
    END UpdateIssuePriority;
    /

    Move the level of LINE at the STATEMENT level triggers, see:
    http://www.Oracle-base.com/articles/9i/mutating-table-exceptions.php
    http://asktom.Oracle.com/pls/asktom/asktom.download_file?p_file=6551198119097816936

  • Related to images of a table showing visted and play with the whole table

    Help please.

    I've never had this happen in another version of dreamweaver.  Using dreamweaver CC now.

    I have an image created in photoshop. cut into slices. load the HTML and images in dreamweaver.  Dreamweaver then creates a table.  If I download just as, the site looks good.  Once I choose a slice of the image, create a link to it and then to download the site, there is a purple border around the image so ruin my entire table.  The site shows the breaks between each slice of the image.

    Thank you

    The only real advice I can give, which will help you in the long run, would be to take some time to learn at least the basics of html and css. How to Photoshop to do will almost always blow your site to pieces as soon as you start editing content around. To create professional sites with DW, you need to understand HTML and CSS (and to a lesser extent, javascript). However, without a solid understanding of HTML and CSS little issues like the problem of border IE can become huge problems.

    There are tons of places online to get tutorials on that, personally, I like the following links for the basics...

    HTML: http://w3schools.com/html

    CSS: http://w3schools.com/css

    Once you understand what is happening behind the scenes of DW, it is much easier to work with the program. Once you understand how to work with code, the program gives you, you can let Photoshop do the work, that it was designed for, image manipulation.

  • best component of data to deal with the mysql table

    Hello.

    I have an LMS (learning management system) with a lot of info in a mysql with a few tables dbb. I also use a lot of php.

    They said data flash components are not the best in the world so what do I do?

    Partyman said I should use Flex data components as they were built for this sort of thing and are much more powerful. So where can I get me one of those for the IE: do I have to download something that I only have Flash Cs5.5. So how this component in flash?

    Or would it be better to use a third-party plugin for display of the tables. Someone mentioned that excel and the PivotTable is amazing and simple.

    At the end of the day, I want to also customers can see a dashboard.

    Oh, and I missed the other parts of your post.

    There is no silver bullet in AS3 in terms of getting data unless your application is made in the AIR. If your applications are webgame - you must always write the data on the server layer to return with subsequent SQL queries feeding the data components.

    As far as databases Excel vs goes, DBs are much more powerful than the storage and data recovery facilities.

  • Calculate the % with the pivot table columns

    I created an application with these columns:
    Metric       Study          Fast          Slow       On-Target     Total
    ---------------------------------------------------------------------------------
    Metric1     Study1           1             0              0             1
    Metric1     Study2           1             0              0             1
    Metric1     Study3           0             0              1             1
    Metric1     Study4           0             0              1             1
    Metric1     Study5           0             1              0             1
    Metric1     Study6           0             1              0             1
    Metric1     Study7           0             0              1             1
    Metric1     Study8           0             0              1             1
    Metric1     Study9           1             0              0             1
    Metric1     Study10          1             0              0             1
    I want to create a pivot table looks like this.
    Metric          Fast     Slow      On-Target     Total      % Fast     % Slow   % On Target
    ------------------------------------------------------------------------------------------------------
    Metric1         4           2        4            10           40        20       40
    The fast, slow, on the target and Total columns are calculated fields. Picky, I'm having is to get the % columns to work. I also tried create columns % in the form of columns of the table, but at each level of study, the % is 100% or 0%.

    I tried with duplicate columns, all different options to display the value as. None of them worked.

    Could someone help me? The version of the OBI is 10.1.3.4

    Thank you

    Shi-ning

    Published by: SPUD on November 21, 2011 23:09

    Sounds like it. You will need the account of studies as a measure in the criteria. You could do something in the repository, but the fastest way is:

    Criteria:
    Add the study in (it will not go into the PivotTable)
    create new measure based on any existing measure that has the background you need with the formula:
    cases where [existing] is not null then 1 else 0 end

    This will give you 1 for each line that your measure in effect is valid. Add this new measure in the PivotTable and treat it as a normal amount.

  • Formulation of condition CQL with the source table and Javabean event

    Hello

    I managed to create a State in CQL that compares 2 values of TIMESTAMP between a source table and a Java bean.

    I did this by complying with the standard DATETIME SimpleDateFormat in the docs.

    But the format does not include milliseconds. Is there another way I can do this, without losing the value of millisecond of the Javabean?

    The request is something like

    Select table.*
    table, beans
    where table.sometimestamp < bean.startdate
    and table.sometimestamp > bean.enddate


    where bean.startdate and bean.enddate is a java.util.Date? (or all)

    I tried all kinds of combinations like to_timestamp (bean.startdate.getTime ()) but it is not the correct timestamp.

    Also tried to use types of java.sql. * but came through different CQL syntax errors.


    Any tips?

    Thank you!
    Jarell

    Hello

    I think you have two options:

    (1) to use SimpleDateFormat the of ' pattern. For example: "' yyMMddHHmmssSS', where the last two are the number of milliseconds.

    2) keep as a long (e.g. System.currentTimeMillis)

    Best regards
    Alex

Maybe you are looking for

  • Satellite U500 - physical button won't turn wireless power adapters

    Ladies and gentlemen, it is a little weird. For some reason, the physical power button on the front of U500 my wife will not turn adabters WLAN and Bluetooth enabled or disabled without a hard reboot. If I swtich off button and the LED next to her re

  • read txt large files (via Configuration files) takes too long

    Hello I want to read files txt large (about 1-8 MB) in memory. the structure of the file looks like this: [0]Shape = 'Point '.The size of the grid [nm] = 100,000000Dose of pixel [pC] = 0,100000Color = 0X = 38,169451Y = 10,102625 and for example a 1 M

  • Question - create a field in a SQL query with the status not nullable

    I want to create a field that is not nullable char (2) lengthIf I do CREATE TEMPORARY TABLE XSELECT"AH" AS CDTYPEorSELECTCAST ('AH' AS CHAR (2)) CDTYPEOrCAST (NVL(' ','AH') AS CHAR (2)) CDTYPEThe field is always created as a nullable field of Char (2

  • Creating a view in ODI

    Hello A few ODI experts in this regard, I earlier aid, but unfortunately I could not be implemented.My oracle database is. My requirement is I have one huge question I use to create a view, but the view of the source and target are in different datab

  • Model of third party poster very messy in design mode

    Hello worldSo I'm fairly new to dreamweaver. Whenever I used it, there have already been a model/site set up and I only did small changes. I was recently invited to a website who need a more fresh look. The customer wants to use the following site: h