Send the view / table in email

Try to send an email to apex in view, but I don't know how to include it in the body of the message...
What I use as a treat when click the button...


DECLARE
CURSOR EMP_CURSOR IS SELECT email FROM employee;
l_id NUMBER;
BEGIN

FOR SheikYerbouti IN EMP_CURSOR
LOOP
l_id: = APEX_MAIL. SEND)
p_to = > SheikYerbouti. EMAI,
P_FROM = > '[email protected]. "
p_subj = > "employee information"
p_body = > '?') ;
end loop;


I want to understand reviews of method in the mail... that will be displayed in the body... Can you help me please?

Hello

DECLARE
    l_body      CLOB;
BEGIN
    l_body := '' ;
FOR c1 IN (SELECT EMP_ID,emp_name from employee)
LOOP
        l_body:= l_body || '';

        END LOOP;
 l_body:= l_body || '
EmpNoEmpName
' || c1.emp_id || '' || c1.emp_name || '
'; htp.p(l_body); apex_mail.send( p_to => 'loga@*****.com', -- change to your email address p_from => 'loga@*****.com', -- change to a real senders email address p_body => l_body, p_body_html => l_body, p_subj => 'APEX_MAIL Package - HTML formatted message'); end;

Thank you
Loga

Published by: Logaa on May 18, 2012 04:19

Tags: Database

Similar Questions

  • How to remove the scroll bar in the view table obiee 11g

    Hello

    How to remove the scroll bar in the view table obiee 11g other than TNA config.

    Thank you

    In 11.1.1.7 you can change it in the table's properties. By default, it will be

    "Fixed headers with active scroll.

    To take

    "Pagination of the content" and check

    Thank you

    AJ

  • How can I make an osteonecrosis affects the form that will be present and send the pdf as an email?

    How to make a button on the form that will be present and send the pdf as an email?

    You can set up a button with an action to "Submit a form" and use a URL of the type mailto to specify the email address, you have the forms sent. If you want to send the whole PDF, select this option and not FDF or anything else. The mailto URL must not include spaces and the part "mailto" must be lowercase, as:

    mailto:[email protected]
    

    It will try to open an e-mail by using the users default email client. If the user has not implemented a or there is another problem, the email could not get started. If she has to work with versions of reader before 11, the form must be activated for the reader, what you do in Acrobat 11 selecting: file > save as other > Reader Extended PDF > activate tools more

  • How can I make my Contact form send the info to my email?

    Greetings! I this is a contact form that I have creaed with help, but I can't seem to send information to my email address after it is submitted. That is my biggest problem at the moment.

    Is a secondary question, can I do so once the form is submitted it send the info to my email without a page redirect?

    Thanks in advance!

    Change this:

    <>

    If ($_POST ['email']<>") {}

    $ToEmail = ' [email protected]';

    $EmailSubject = "BestMarketingNames.com survey";

    $mailheader = "from:". " $_POST ['email']. » \r\n » ;

    $mailheader. = "reply-To:". " $_POST ['email']. » \r\n » ;

    $mailheader. = "content-type: text/html;" charset = iso-8859-1\r\n ";

    $MESSAGE_BODY = "fullame:". " $_POST ['name']. » « ;"

    $MESSAGE_BODY. = "e-mail:". " $_POST ['email']. » « ;"

    $MESSAGE_BODY. = "phone number:".nl2br($_post["phone"])." « ;"

    $MESSAGE_BODY. = "BestTime:". " $_POST ['besttime"]. » « ;"

    $MESSAGE_BODY. = "PriceToStayUnder:". " $_POST ['price']. » « ;"

    $MESSAGE_BODY. = "Comment:".nl2br($_post["comment"])." « ;"

    mail ($EmailSubject, $MESSAGE_BODY, $ToEmail, $mailheader) or die ('Failure');

    ?>

    Thank you for your inquiry. A company representative will contact you within the next 72 hours!

    <>

    } else {}

    ?>

    to do this:

    <>

    If ($_POST ['email']<>") {}

    $ToEmail = ' [email protected]';

    $EmailSubject = "BestMarketingNames.com survey";

    $mailheader = "from:". " $_POST ['email']. » \r\n » ;

    $mailheader. = "reply-To:". " $_POST ['email']. » \r\n » ;

    $mailheader. = "content-type: text/html;" charset = iso-8859-1\r\n ";

    $MESSAGE_BODY = "fullame:". " $_POST ['name']. » \n";

    $MESSAGE_BODY. = "e-mail:". " $_POST ['email']. » \n";

    $MESSAGE_BODY. = "phone number:".nl2br($_post["phone"])." \n";

    $MESSAGE_BODY. = "BestTime:". " $_POST ['besttime"]. » \n";

    $MESSAGE_BODY. = "PriceToStayUnder:". " $_POST ['price']. » \n";

    $MESSAGE_BODY. = "Comment:".nl2br($_post["comment"])." \n";

    mail ($EmailSubject, $MESSAGE_BODY, $ToEmail, $mailheader) or die ('Failure');

    ?>

    Thank you for your inquiry. A company representative will contact you within the next 72 hours!

    <>

    } else {}

    ?>

    -ST

  • The view table selection error external references

    Can someone explain why the error near the bottom of the code below? If USER1 grants SELECT on the external table to User2, then USER2 can select the view without any problem; However, I would like to avoid to give User2 access to all the columns in the external table. (I mean only to give USER2 access to two of the four columns).
    SQL> CONNECT sys AS SYSDBA
    Connected as SYS@ as sysdba
    
    SQL> CREATE USER user1 IDENTIFIED BY user1
    User created.
    
    SQL> CREATE USER user2 IDENTIFIED BY user2
    User created.
    
    SQL> GRANT CONNECT, CREATE TABLE, CREATE VIEW TO user1
    Grant complete.
    
    SQL> GRANT CONNECT TO user2
    Grant complete.
    
    SQL> GRANT READ, WRITE ON DIRECTORY EXT_DATA_DIR TO user1, user2
    Grant complete.
    
    SQL> CONNECT user1/user1
    Connected as USER1@ 
    
    SQL> CREATE TABLE emp_xt
    (
      emp_id     NUMBER,
      first_name VARCHAR2(30),
      last_name  VARCHAR2(30),
      phone      VARCHAR2(15)
    )
    ORGANIZATION EXTERNAL
    (
      TYPE ORACLE_LOADER
      DEFAULT DIRECTORY EXT_DATA_DIR 
      ACCESS PARAMETERS 
      (
        RECORDS DELIMITED BY NEWLINE
        FIELDS TERMINATED BY ','
        OPTIONALLY ENCLOSED BY '"'            
      )
      LOCATION ('emp.txt')
    )
    REJECT LIMIT 0
    Table created.
    
    SQL> SELECT COUNT(1) FROM emp_xt
    
      COUNT(1)
    ----------
             4
    1 row selected.
    
    SQL> CREATE OR REPLACE VIEW emp_xt_view AS SELECT first_name, last_name FROM emp_xt;
    View created.
    
    SQL> SELECT COUNT(1) FROM emp_xt_view
    
      COUNT(1)
    ----------
             4
    1 row selected.
    
    SQL> GRANT SELECT ON emp_xt_view TO user2
    Grant complete.
    
    SQL> CONNECT user2/user2
    Connected as USER2@ 
    
    SQL> SELECT COUNT(1) from user1.emp_xt_view
    SELECT COUNT(1) from user1.emp_xt_view
    *
    Error at line 0
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    ORA-04043: object "USER1"."EMP_XT" does not exist
    
    SQL> CONNECT user1/user1
    Connected as USER1@ 
    
    SQL> GRANT SELECT ON user1.emp_xt TO user2
    Grant complete.
    
    SQL> CONNECT user2/user2
    Connected as USER2@ 
    
    SQL> SELECT COUNT(1) from user1.emp_xt_view
    
      COUNT(1)
    ----------
             4
    1 row selected.
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

    user503699 wrote:

    Sven wrote:
    You have an interesting point for the current user AUTHID. What would be the consequences for that?

    Published by: Sven w. on August 11, 2010 16:45

    I'm not quite familiar with the feature of the data cartridge, nor used TYPEs a lot. But as the external tables use a type defined by the system (ORACLE_LOADER), I think a SQL against an external table called the underlying type procedure/function, and it is where the user rights come into picture.

    This seems very likely. I'm just thinking if there is a way around the problem. An idea might be to select on the view with User1 instead of user2. Perhaps via a loopback database link.

    Complete shot in the dark:

    not tested syntax

    /* do this as user1!  */
    create database link myDb connect to user1 identified by user1 using 'myDB';
    
    create view testLink_view as select * from externalTable_view@myDB;
    
    grant select on testLink_view to user2;
    

    I do not know if you need create the link to the db, since these often telesignalisations are already in place.

  • Send the invoice to my email

    I know that Adobe has stopped to send invoice by e-mail generally for some time previously. But is it possible that this setting may be set for the individual user if I pray for her?

    Our accounting wonder the Bill each month. If I can invoice in email, I can set up an automatic transfer.

    Or, is it possible that I can implement a secondary user on my account for payment purposes?

    Thank you.

    Contact support - for the link below, click on the still need help? option in the blue box below and choose the option to chat or by phone...

    Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache.  If it fails to connect, try to use another browser.

    Creative cloud support (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html ( http://adobe.ly/19llvMN )

  • Send the oracle table to file pdf through forms 6i

    Please Dear Sirs,
    I want to send oracle table to pdf through forms 6i file

    help waiting
    Thanks in advance
    Yasser

    Yasser,

    What is the error you get?

    Also try changing the line

    ADD_PARAMETER(pl_id, 'DESNAME', TEXT_PARAMETER, 'D:\YASSER');
    

    TO

    ADD_PARAMETER(pl_id, 'DESNAME', TEXT_PARAMETER, 'D:\YASSER\report.pdf');
    

    Kind regards

    Manu.

  • How send the beautiful html email I did I DW?

    Hello

    I designed a reagent html email in Dreamweaver and tested in different browsers, iPhone, iPad etc. It looks great and I'm happy. But now I want to send it but can't! OM my mac I open the e-mail-html-page in Safari and select "send as e-mail". It opens the html email in a new email, and everything is on a line to the left. It looks like this:

    "

    T

    h

    I have

    s

    I have

    s

    m

    There

    t

    e

    x

    t

    ..."

    I have on my PC, in Outlook, create a new mail and import html pages and here everything is also to the left (but not all of the letters as on my mac". It looks NOT like when I tested it in different browsers.

    I also tried to send the sensitive default html email template in Dreamweaver (without changing anything in it), but it also lined up left by the post.

    So, now, when I created an email reagent butiful in dreamweaver. How to send?

    Thank y

    AI

    Make an HTML email is not the same as doing a Web page. Remove or ignore certain code (like most many email clientsthe elements and embedded CSS). You may have created a nice page that works correctly across the browser, but will never properly work at several mail clients. It depends on your code.

    Some things that can help you...

    1. use provisions of base tables. I know, it sounds bad, but put in simple nested table based much more systematically appear cross-client in html emails
    2. use simple inline css if you cannot use an html attribute to do the same. Nothing should be in theof the page, it gets deleted by several email clients. A lot of css attributes does not work, so if there is an equivalent html element, we it rather
    3. a lot of text html, few images. Most e-mail clients are set to block images by default. If your email is image heavy, you can not reach everyone with something other than a message "for security reasons, the images were downloaded not."
    4. do not send yourself if you have a large list, you will get your email blacklisted as a spammer. Use an email like constantcontact.com and icontact.com service if you have a list of more than maybe 100-200 addresses

    There are other items that need to be addressed, but who are the biggest. Electronic messaging services have you can use models that have been tested and refined for better results across a broad band of email clients. Until you have the 'tutorials' of html emails down, it may be preferable to use the available templates prior to the layout yourself.

  • How can I get my HP Officejet Pro 8600 more to send the scanned item directly to e-mail?

    I just moved to the top of a new HP Officejet Pro 8600 more a HP 6500 printer.  On the old 6500, it gave me the choice to send the scan to my email, however, that option is not available for me on the new scan of 8600 software.  How can I add email to my choice of where to send the scan?

    Thank you...

    Hi NICOLI12,

    Welcome to the HP Forums, I hope you enjoy your experience!

    I understand that you want to know how to scan to e-mail.

    I'll be happy to help you.

    You should be able to analyze through the scanning software HP to e-mail can also scan to e-mail from the control panel of the printer. I have provided a document to find out how Scan.

    Hope that solves your problem.

    If you are on Mac, please let me know.

    Thanks for posting on the HP Forums.
    Have a wonderful day!

  • By default how to rotate the view for a report of specific answers?

    How can I set the view to pivot as the default view for a report of specific answers? Please let me know.

    Published by: user11935561 on December 7, 2009 16:15

    1. go in show results
    2. add Pivot view
    3 delete the view table and all other views that you have previously
    4. now you have the title and the Pivot discovered in the Layout is dedicated to the
    5. it displays only Pivot view with title.

  • HOW to RESTORE THE SETTINGS FOR NEW emails I WRITE, SO ONCE MORE, THEY INCLUDE a TAB of E-MAIL SENDING &amp; a CONTACTS TAB, WHO LISTED ALL MY ADDRESSES of E-MAIL STORED?

    When I open a new empty email, NO send an e-mail or the Send option is visible; There is a Contacts tab, where I can access ALL the addresses to which email regularly. How to restore these tabs in all new empty emails that I opened?

    I just learned how to send something by pressing Enter control AND at the same time. but it helps me NOT at all; I want to restore the old settings. I know that the problem started in my last email, after I had clicked and uncontrolled of different elements, in order to enlarge the writing to the email. Now, unfortunately, all emails are no longer necessary tabs to SEND the MAIL and CONTACTS. I appreciate your wisdom in this case...

    Open a window of writing.
    Press the alt key to make the call of menu bar.
    The menu bar, select View-Toolbars and relight the toolbars.
    The Send button is the Composition toolbar.

    Press F9 to turn it back on the Contact Sidebar.
    You can also activate the box contact power under page layout display on and off.

  • Tile bar missing e-mail message 'Write '. When I open a new email message to send, the tile bar disappeared. I have no way to send the email!

    Tile bar missing e-mail message 'Write '. When I open a new email message to send, the tile bar disappeared. I have no way to send the email! I believe that the bar of the tile is disabled, but I have no idea how to do to reactivate.

    Open a window of writing. If all the toolbars are missing, press the alt key to make the call of menu bar.
    The menu bar select View-Toolbars and rekindle the missing toolbars.

  • Cannot send the email from windows live - windows 7

    All of a sudden I can't send the email from windows live - windows 7

    And you ask a question of Windows 7 in a Windows XP forum?

    View all Windows Live and Hotmail questions in the appropriate forum found here:
    http://windowslivehelp.com/

  • Why e-mails to individuals of XP not appear in their Inbox mailbox, but when I send the same person a hotmail email they get the message. This happens with everyone I send an e-mail.

    The person I sent the email checked and my message wasn't in his spam folder.

    Thank you, I found send it all and who does so will wait to see if the mails have arrived... but now at the bottom of my emails, I have 3 boxes which say Edit Source and preview.  How can I get them off my emails?  And I use Outlook Express

    1: right click on the toolbar. Customize and add the send/receive button, so that you do not need to use the menu bar. It is in the main window. In a composition window, do the same thing, but add the Send button.

    2: in the compose window: view
    Source change to remove these additional tabs at the bottom.

  • I have trouble getting the PHP script to send form data to an email.

    I have a very basic contact form that I used before, and I pointed to a standard SendResults.php file. I downloaded them both on the server for the test, but I don't get the emails of the form. Can someone help me with this?

    Here is the code for the form:

    Contact < h1 > < / h1 >

    < p > < img src = "images/contact - hands.jpg ' alt = 'hands' width ="401"height ="299"class ="left-photo-sur"align ="left"/ > < / p >

    < class p = 'fax' > < / p >

    < class p = 'fax' > < / p >

    < class p 'fax' = > please call or use the form below to send your contact information and I will answer you as soon as possible. < /p >

    < class p = 'phone number' > 541 954 2602 < /p >

    < class p = "center" > Ronit Cohen < /p >

    < p > < / p >

    < p > < / p >

    < h3 class = "center" > use the form below to send a message and I will contact you quickly. < / h3 >

    < table width = "600" border = "1" align = "center" cellpadding = "22" cellspacing = "0" >

    < b >

    < td bgcolor = "#F0F0F0" > < form action = "sendresults.php" method = "post" name = "Contact form" id = "Contact form" > "

    < P > name < span class = "red" > * </span >

    < input name = "name" type = "text" id = 'name' size = "70" / >

    < /p >

    < P > E-mail address < span class = "red" > * </span >

    < input name = "email" type = "text" id = "email" size = "65" / >

    < /p >

    < p > telephone number

    < name input = 'phone' type = 'text' id = 'phone' size = "40" / >

    < /p >

    < p >

    < label > Message < br / >

    < name textarea = 'message' id = cols "message" = "70".

    "rows ="5"> < / textarea >"

    < / label >

    < /p >

    < class p = "center" >

    < input name = "submit" type = "submit" id = "submit" onclick = "MM_openBrWindow ('thankyou.html'", 'width = 500 height = 400'); " MM_validateForm ('name', ", 'R',"email', ", 'RisEmail', 'phone'", 'NisNum'); return document. MM_returnValue"value ="Send the Message"/ >

    < input type = "reset" name = 'Cancel' id = 'Cancel' value = 'Cancel' / >

    < /p >

    < / form > < table >

    < /tr >

    < /table >

    < p > < / p >

    < p > < / p >

    < p > < / p >

    <!-InstanceEndEditable--> < table >

    < /tr >

    < /table >

    And here is the code for the sendresults.php file:

    <? PHP
    -Put these settings-

    Subject of the email sent to you.
    $subject = "Sent 'A Home to Fit You' Contact form info;"

    Your email address. This is where the information on the form will be sent.
    $emailadd = ' [email protected] ';

    Where redirect after form is processed.
    $url = ' http://www.tributewebdesign.com/home-to-fit/contact.html';

    Makes all the required fields. If the value of '1' no field cannot be empty. If the '0' value any or all fields can be empty.
    $req = '0';

    -Do not edit below this line-
    $text = "comes from the shape: \n\n";
    $space = ' ';
    $line = '
    ';
    foreach ($_POST as $key = > $value)
    {
    If ($req is '1')
    {
    If ($value == ")
    {echo "$key is empty"; die ;}
    }
    $j = strlen ($key);
    If ($j > = 20)
    {echo "Of the form $key name cannot be longer than 20 characters"; die ;}}
    $j = 20 - $j;
    for ($i = 1; $i < = $j; $i ++)
    {$space. = ' ' ;}}
    $value = str_replace ('\n', "$line", $value);
    $conc = "{$key}: $space {$value} $line";
    $text = $conc;
    $space = ' ';
    }
    mail ($emailadd, $subject, $text, ' from: '. $emailadd. ");
    echo "< META HTTP-EQUIV = CONTENT refresh ="0; " URL ='. $url. " » >';
    ? >

    I'd appreciate any help anyone has to offer.

    Jennifer

    No not a yahoo and google make it much harder to send mail unless it comes from an active server

    I had problems in her SCI with gmail, hotmail, ATT and others, even if you use SMTP.

    Jennifer, you might check if your server ip is on a blacklist.

    http://MXToolbox.com/blacklists.aspx

Maybe you are looking for

  • Tecra A4: F10 buttons flash, then the keyboard does not work

    Dear Toshiba support, After having traveled often with my laptop Toshiba Tecra A4, the F10 key flashes, some keys don't work and a pop-up said that you hold down CTRL when I'm not. I don't know if the keyboard needs replacing or the card mother of m.

  • Practical measurement "sound and Vibration Assistant.

    Hallo, ICH möchte eine Maschine von Gerauschemissionen untersuchen. Dazu soll mit Hilfe der Norm DIN EN ISO 11201 der emissions-Schalldruckpegel altitute werden. ALS Messhard-und software are mir following components available: Software: -LabVIEW 201

  • Scam AVG

    I've been compromised by AVG and it also attached to the piroform ccleaner.  I'm afraid it's going in my bank details.  What can I do?

  • Add headers custom Blackberry push Message (OS 6-7)

    Hello Veuileez tell me how to add the custom headers in Push Blackberry Message in addition to "text/plain", the Blackberry Push Messages work perfectly, but I have to add the custom headers for some information content. I tried adding headers to the

  • Wireless AP-H-Reap vlan mapping changes.

    Our wireless access point is AIR-CAP3502E-C-K9 with 5500 WLC. The problem is that H-REAP mapping VLAN the VLAn ID change abruptly and if I checl newspapers, I don't see any downtime on the AP. Please note that to happen randomly and sometimes AP all