Send a MAil, a document attached to a table of dumy

Hi friends,


I've implemented the e-mail option in my application and now I want to send my selected document located in a table DUMY.
I want to send these documents by e-mail.

My workspace details


Workspace: IMPROVE THE SKILLS
User: [email protected]
Password: desomu

Application: 42370

page no. 4 for sending electronic mail.

How can I send a mail with attachment together selected document attached to a table of dumy.



Thank you

How many attachments? Try this tutorial: http://st-curriculum.oracle.com/obe/db/apex/r31/apex31nf/apex31email.htm

Mainly build you your email address and then execute a select statement in get your attachments in clob/blob variables and attach them to your e-mail using the APEX_MAIL. SEND function...

Thank you

Tony Miller
Webster, TX

Tags: Database

Similar Questions

  • Sending E-Mail with an attachment using PL/SQL

    Hello

    I am trying to send an E-Mail with an attachment using pl/sql on Oracle 9i.
    I found the code from the link below.
    http://www.orafaq.com/wiki/Send_mail_from_PL/SQL
    but the attachment it sends is defined in the pl/sql block.
    I want to attach a file in a different location. How can I do this?

    Thanks in advance

    If the attachment is also on the server (it must be on the server), you can load into a BLOB and which attach to your e-mail (you will need to create an Oracle Directory that points to the file to be attached).

    http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:255615160805 #68529763836665
    This thread is big enough, a ctrl + f there might give you some clues.

    Currently I do not have the mail api available on here, but I still have it on a "test/playground DB", so I'll take a look later, when I have time and place.

  • Sending e-mail with an attachment of Office 2010

    Why am I unable to send an Excel of Office 2010 file directly as an attachment? It works OK if I send the file in My Documents and then attach it to an e-mail. I use Outlook 2010

    It is a Windows XP forum.

    Your question is a Microsoft Office one.

    May be better to use the Forums of Microsoft Office.

    You can also describe exactly what you see.

    Is Microsoft Outlook your default mail client?

    In Excel, you click on "Save & Send" and send this way (attempt anyway)?

    What happening exactly / are you doing - step by step and all the messages you get verbatim?

  • Sending e-mail with an attachment

    Hi experts
    I want to send the email from my oracle DB using UTL_MAIL 10.1.0.2.0. Procedure SEND_ATTACH_RAW, email is through, but not through the attachment.

    UTL_MAIL. SEND is doing well.

    I created the mail_attachment directory in the database and the physical directory as well and left an att.xls file that I want to send.

    I run the procedure like this...

    DECLARE
    resultraw RAW (32000);
    BEGIN
    UTL_MAIL. SEND_ATTACH_RAW (sender = > '[email protected]',)
    recipients = > "[email protected]"
    subject = > "Testmail"
    message = > 'of Pls Find attached... ". »,
    attachment = > RESULTraw,
    att_filename = > 'att.xls');
    END;

    here how to set that the att.xls file exists in the mail_attachment folder?

    E-mail goes through, but no attachment.

    Pls help.

    Rgds

    Could you change:

    vinhandle: = UTL_FILE.fopen ('MAIL_ATTACHMENT', 'att.xls', 'R');

    TO

    vinhandle: = UTL_FILE.fopen ("MAIL_ATTACHMENT", "att.xls", "RB");

  • I get this when I try to send e-mail with an attachment that Windows Live Hotmail could not send your message because the server was busy. Please try again later. Please report this problem to Microsoft.

    Windows Live Hotmail could not send your message because the server was busy. Please try again later. Please report this problem to Microsoft.

    Hotmail as well as all the problems of Windows Live are Windows Live Solution Center. It's their jurisdiction.

    Please post on forum discussions for Hotmail:
    http://windowslivehelp.com/forums.aspx?ProductID=1

  • Sending mail with an attachment using UTL_SMTP

    Hi all

    I'm working on a PL/SQL code, where do I send a mail with an attachment using UTL_SMTP. I use the following code, I changed the value of p_to and p_from

    DECLARE

    l_mail_conn UTL_SMTP.connection;

    l_boundary VARCHAR2 (50): = '-= * #abc1234321cba #* =';

    l_step PLS_INTEGER: = 12000; -Make sure you define a multiple of 3 would not exceed the 24573

    p_to VARCHAR2 (100): = ' [email protected] ';

    p_from VARCHAR2 (100): = ' [email protected] ';

    p_subject VARCHAR2 (100): = "UPLOAD of FILE MAIL."

    p_text_msg VARCHAR2 (100): = 'it is a system generated email';

    p_attach_name VARCHAR2 (100);

    p_attach_mime VARCHAR2 (100);

    p_attach_blob BLOB;

    p_smtp_host VARCHAR2 (100): = 'localhost ';

    p_smtp_port NUMBER: = 25;

    BEGIN

    l_mail_conn: = UTL_SMTP.open_connection (p_smtp_host, p_smtp_port);

    UTL_SMTP. HELO (l_mail_conn, p_smtp_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) | UTL_TCP. CRLF);

    UTL_SMTP.write_data (l_mail_conn, ' from: ' | p_to |) UTL_TCP. CRLF);

    UTL_SMTP.write_data (l_mail_conn, ' from: ' | p_from |) UTL_TCP. CRLF);

    UTL_SMTP.write_data (l_mail_conn, ' subject: ' | p_subject |) UTL_TCP. CRLF);

    UTL_SMTP.write_data (l_mail_conn, ' Reply-To: ' | p_from |) UTL_TCP. CRLF);

    UTL_SMTP.write_data (l_mail_conn, "MIME-Version: 1.0 ' |") UTL_TCP. CRLF);

    UTL_SMTP.write_data (l_mail_conn, ' Content-Type: multipart/mixed; limit = "" | ") l_boundary | '"' || UTL_TCP. CRLF. UTL_TCP. CRLF);

    IF p_text_msg IS NOT NULL THEN

    UTL_SMTP.write_data (l_mail_conn, '-' | l_boundary |) UTL_TCP. CRLF);

    UTL_SMTP.write_data (l_mail_conn, ' Content-Type: text/plain; charset = "iso-8859-1" ' |) UTL_TCP. CRLF. UTL_TCP. CRLF);

    UTL_SMTP.write_data (l_mail_conn, p_text_msg);

    UTL_SMTP.write_data (l_mail_conn, UTL_TCP.crlf |) UTL_TCP. CRLF);

    END IF;

    IF p_attach_name IS NOT NULL THEN

    FOR I IN (SELECT *)

    OF xx_mail_test_table

    WHERE ROWNUM = 1

    ORDER BY last_update_date DESC) LOOP

    UTL_SMTP.write_data (l_mail_conn, '-' | l_boundary |) UTL_TCP. CRLF);

    UTL_SMTP.write_data (l_mail_conn, ' Content-Type: ' | p_attach_mime |) '; name =' ' | I.FILE_NAME | '"' || UTL_TCP. CRLF);

    UTL_SMTP.write_data (l_mail_conn, "Content-Transfer-Encoding: base64' |") UTL_TCP. CRLF);

    UTL_SMTP.write_data (l_mail_conn, ' Content-Disposition: attachment; filename = "" | ") I.FILE_NAME | '"' || UTL_TCP. CRLF. UTL_TCP. CRLF);

    FOR J FROM 0... TRUNC ((DBMS_LOB. GetLength (I.file_name) - 1) / l_step) LOOP

    UTL_SMTP.write_data (l_mail_conn, UTL_RAW.cast_to_varchar2 (UTL_ENCODE.base64_encode (DBMS_LOB.substr (I.FILE_NAME, l_step, J * l_step + 1)));)

    END LOOP;

    UTL_SMTP.write_data (l_mail_conn, UTL_TCP.crlf |) UTL_TCP. CRLF);

    END LOOP;

    END IF;

    UTL_SMTP.write_data (l_mail_conn, '-' | l_boundary |) '--' || UTL_TCP. CRLF);

    UTL_SMTP.close_data (l_mail_conn);

    UTL_SMTP. Quit (l_mail_conn);

    EXCEPTION

    WHEN utl_smtp.transient_error OR utl_smtp.permanent_error THEN

    UTL_SMTP. Quit (l_mail_conn);

    lift;

    WHILE OTHERS THEN

    dbms_output.put_line (SQLERRM);

    END;

    This is when I execute the block that I get 2 mails to the same but there are some attachments, I checked the table and he gave.

    Could someone help me as to where I'm wrong?

    Create the raw DATA for the SMTP protocol can be tricky.

    I cheat and use a package that has been designed to do easily.

    APEX_MAIL

    MK

  • Send an E-mail with an attachment procedure Oracle

    Jin

    I have the procedure to send e-mail with excel attachment
    The data in the Excel file are built by using the query in my procedure. Send mail with attachment, it works well.
    Now the situation is if there is no data in the Excel worksheet that is built dynamically, we limit the sending of email
    is that possible, please let me know,
    Am using the utl_tcp method to build the excel file

    Thank you
    Vel

    Something like that? But I have not tested. Please test carefully.

    PROCEDURE GCN_ORDER(errbuf OUT VARCHAR2, retcode OUT VARCHAR2) IS
      rc          integer;
      crlf        VARCHAR2(2) := CHR(13) || CHR(10);
      mesg        VARCHAR2(1000);
      c           utl_tcp.connection;
      L_FROM_DATE DATE;
      L_TO_DATE   DATE;
    
      msg_from        VARCHAR2(100) := '[email protected]';
      to_addresses    VARCHAR2(1000);
      cc_addresses    VARCHAR2(1000);
      email_addresses VARCHAR2(2000);
      msg_subject     VARCHAR2(200) := 'E-mail Alert: ';
      msg_text1       VARCHAR2(15) := 'Dear Sir,';
      msg_text2       VARCHAR2(500) := 'Please find the attached file,';
      msg_text3       VARCHAR2(25) := 'Division';
      msg_text4       VARCHAR2(25) := 'For the period : ';
      v_mail_to       VARCHAR2(1000);
      lv_gcn          varchar2(1000);
    
      next_column            number;
      recipient_email_length number;
      single_recipient_addr  varchar2(100);
    
      v_is_there_any_attachment CHAR(1):='N'; --New var.
    
      cursor cur_select(L_FROM_DATE DATE, L_TO_DATE DATE) is
        SELECT (substr(wdd.source_header_type_name, 5) || ',' ||
               oha.order_number || ',' || wdd.attribute1 || ',' ||
               TO_DATE(wdd.attribute2, 'dd/mm/rrrr') || ',' ||
               TO_DATE(oha.creation_date, 'dd/mm/rrrr') || ',' ||
               TO_DATE(ola.creation_date, 'dd/mm/rrrr') || ',' ||
               ola.ordered_item) gcn
          FROM apps.oe_order_headers_all oha,
               apps.oe_order_lines_all   ola,
               apps.wsh_delivery_details wdd
         WHERE oha.org_id = 92
           AND oha.org_id = ola.org_id
           AND oha.header_id = ola.header_id
           AND wdd.inventory_item_id = ola.inventory_item_id
           AND wdd.source_header_number = oha.order_number
           AND wdd.source_line_id = ola.line_id
           AND wdd.org_id = oha.org_id
           AND wdd.attribute_category = '92Freight'
           AND TO_DATE(wdd.attribute2, 'dd/mm/rrrr') <
               TO_DATE(ola.creation_date, 'dd/mm/rrrr')
           AND TO_DATE(wdd.attribute2, 'dd/mm/rrrr') BETWEEN L_FROM_DATE AND
               L_TO_DATE
           AND oha.flow_status_code NOT IN ('BOOKED', 'ENTERED');
    
      cursor cur_to_email is
        SELECT email_address
          FROM alert_users_ID
         WHERE org_id IN (1, 92)
           AND status_flag = 'Y'
           AND report_id = 3
           AND MAIL_TYPE = 'To'
           AND (module = 'AR' OR module IS NULL);
    
      cursor cur_cc_email is
        SELECT email_address
          FROM alert_users_ID
         WHERE org_id IN (1, 92)
           AND status_flag = 'Y'
           AND report_id = 3
           AND MAIL_TYPE = 'Cc'
           AND (module = 'AR' OR module IS NULL);
    
    BEGIN
    
      --FROM AND TO DATE LOGIC
      select MIN(START_DATE), MAX(END_DATE)
        INTO L_FROM_DATE, L_TO_DATE
        from apps.gl_period_statuses
       where closing_status = 'O'
         AND APPLICATION_ID = 101
         AND SET_OF_BOOKS_ID = 2;
    
      for c_to in cur_to_email loop
        to_addresses := to_addresses || ',' || c_to.email_address;
      end loop;
    
      to_addresses := ltrim(to_addresses, ',');
    
      for c_cc in cur_cc_email loop
        cc_addresses := cc_addresses || ',' || c_cc.email_address;
      end loop;
    
      cc_addresses := ltrim(cc_addresses, ',');
    
      email_addresses := to_addresses || ',' || cc_addresses;
    
      recipient_email_length := length(email_addresses);
      email_addresses        := email_addresses || ','; -- Add comma for the last asddress
      next_column            := 1;
      if instr(email_addresses, ',') = 0 then
        -- Single E-mail address
        single_recipient_addr  := email_addresses;
        recipient_email_length := 1;
      end if;
    
      c := utl_tcp.open_connection(remote_host => '127.0.0.1',
                                   remote_port => 25,
                                   tx_timeout  => null);
    
      rc := utl_tcp.write_line(c, 'HELO 127.0.0.1');
      rc := utl_tcp.write_line(c, 'EHLO 127.0.0.1');
    
      rc := utl_tcp.write_line(c, 'MAIL FROM: ' || msg_from);
    
      while next_column <= recipient_email_length loop
        -- Process Multiple E-mail addresses in the loop OR single E-mail address once.
        single_recipient_addr := substr(email_addresses,
                                        next_column,
                                        instr(email_addresses, ',', next_column) -
                                        next_column);
        next_column           := instr(email_addresses, ',', next_column) + 1;
    
        --rc := utl_tcp.write_line(c, 'MAIL FROM: '||msg_from);
        rc := utl_tcp.write_line(c, 'RCPT TO: ' || single_recipient_addr);
      end loop;
      rc := utl_tcp.write_line(c, 'DATA');
      rc := utl_tcp.write_line(c,
                               'Date: ' ||
                               TO_CHAR(SYSDATE, 'dd Mon yy hh24:mi:ss'));
      rc := utl_tcp.write_line(c,
                               'From: ' || msg_from || ' <' || msg_from || '>');
      rc := utl_tcp.write_line(c, 'MIME-Version: 1.0');
      rc := utl_tcp.write_line(c, 'To: ' || to_addresses);
      rc := utl_tcp.write_line(c, 'Cc: ' || cc_addresses);
      rc := utl_tcp.write_line(c, 'Subject: ' || msg_subject);
      rc := utl_tcp.write_line(c, 'Content-Type: multipart/mixed;');
      rc := utl_tcp.write_line(c, ' boundary="-----SECBOUND"');
      rc := utl_tcp.write_line(c, '');
      rc := utl_tcp.write_line(c, '-------SECBOUND');
      rc := utl_tcp.write_line(c, 'Content-Type: text/plain');
      rc := utl_tcp.write_line(c, 'Content-Transfer-Encoding: 7bit');
      rc := utl_tcp.write_line(c, '');
      rc := utl_tcp.write_line(c, msg_text1);
      rc := utl_tcp.write_line(c, ' ');
      rc := utl_tcp.write_line(c, msg_text2);
      rc := utl_tcp.write_line(c, ' ');
      rc := utl_tcp.write_line(c, msg_text3);
      rc := utl_tcp.write_line(c,
                               msg_text4 || to_char(l_from_date, 'MON-YY') ||
                               ' to ' || to_char(l_to_date, 'MON-YY'));
      rc := utl_tcp.write_line(c, '');
      rc := utl_tcp.write_line(c, '-------SECBOUND');
      rc := utl_tcp.write_line(c, 'Content-Type: text/plain;');
      rc := utl_tcp.write_line(c, ' name="GCN_Details.csv"');
      rc := utl_tcp.write_line(c, 'Content-Transfer_Encoding: 8bit');
      rc := utl_tcp.write_line(c, 'Content-Disposition: attachment;'); --Indicates that this is an attachment.
      rc := utl_tcp.write_line(c, ' filename="GCN_Details.csv"');
      rc := utl_tcp.write_line(c, '-------SECBOUND');
      rc := utl_tcp.write_line(c, '');
      begin
    
        -- WRITE COLUMN HEADERS
        rc := utl_tcp.write_text(c, 'BRANCH' || ',' || 'ORDER NUMBER');
        rc := utl_tcp.write_line(c, ' ');
    
        for c1 in cur_select(L_FROM_DATE, L_TO_DATE) loop --You are starting to write the data
          lv_gcn := c1.gcn;
          rc     := utl_tcp.write_text(c, lv_gcn);
          rc     := utl_tcp.write_line(c, ' ');
          v_is_there_any_attachment:='Y';--Is there any data ?
        end loop;
    
      exception
        when others then
          dbms_output.put_line('error : ' || sqlerrm);
          rc := utl_tcp.write_text(c, 'Data Error');
      end;
      If v_is_there_any_attachment ='Y' THEN
         rc := utl_tcp.write_line(c, '');
         rc := utl_tcp.write_line(c, '.');
         rc := utl_tcp.write_line(c, '-------SECBOUND');
      --end loop;
      END If;
      rc := utl_tcp.write_line(c, 'QUIT');
      dbms_output.put_line(utl_tcp.get_line(c, TRUE));
      utl_tcp.close_connection(c);
    EXCEPTION
      when others then
        utl_tcp.close_connection(c);
        raise_application_error(-20000, SQLERRM);
    END GCN_ORDER;
    
  • Cannot send e-mail

    I can't send e-mail with an attachment to the air of my ipad 2 version 9.3.2. But I know that I can send emails from normal text. I have check all parameters with my iPhone. The voth parameter determine is the same, but I wonder why it happens only with my iPad Air. Hope someone can help me. I'm trying to solve with change port and add the server but may not work too.

    What happens when you try to send an email with an attachment? What type of attachment? There is a possible problem with this accessory? Who is your email provider, you ask them if they have restrictions on the size of attachments?

    I do not know if it is typo, but what "voth decides he" means?

  • I need to change a password, someone sends me emails with viagra adds. Even when I send e-mail there viagra mail attached to it

    my e [mail is to have a viagra add attached to it and now someone sends e-mails in my name with this viagra even add, and I have not had my computer, so I guess I need to know how to change my password for my computer it's been hijacked somehow... people care about me]

    Hi pdkbingo,

    It is more than likely that your email account which is at fault and not on your PC. It is quite easy to 'spoof' an email so it seems that if it came from your email address when, in reality, it comes from someone else. I suggest change you your email provider, so changing your email address. If you are using groups of public discussion, facebook, twitter "are not" visualize your email address. Unscrupulous people help software 'bots' trawl newsgroups etc. for email addresses. It's a way to get loads of spam. If you post an email address in a newsgroup etc. then type something like * address email is removed from the privacy *. Of course, you will need to enter your 'real' email address when registering for the discussion groups, facebook, twitter etc but if your email address is not visible there cannot be "hijacked" as you say.

    John Barnett MVP: Windows XP Expert associated with: Windows Desktop Experience: Web: http://www.winuser.co.uk ; Web: http://xphelpandsupport.mvps.org ; Web: http://vistasupport.mvps.org ; Web: http://www.silversurfer-guide.com

  • How to send a mail with attachment no matter what file use the invoke in os 6.0?

    Hello

    There is some issue that how to send a mail with attachment to use the invoke method in os 6.0?

    "I use the Transport at this time mail send successfully, but I use the invoke to throw this error time these error ismail service does not support these tyes of change of parts joined the send using field or remove attachments ' so how do?

    Thank you

    Hi, rishabh

    Thanks.i got the solution and super work Super-Duper hit.

    Thnaks,

    Umang.

  • How to attach the file to send by mail

    I'm trying to understand how to attach a file and send it to the email from my address book

    Hi marilynp47029385,

    Please see this KB doc for the procedure to send the file as an attachment by application: sharing PDF files

    You can also directly reach email account file. Compose an email and click on the attachment icon. Then, browse to the location of the file and select the file. It will focus on your mail.

    Let us know if you encounter any problem.

    Kind regards

    Meenakshi

  • Sending mail with an attachment of the IOM

    Hi Experts,

    We have an obligation to send an email with an attachment of the IOM. Unable to find any relevant document how this goal using the model Notification and NotificationService.

    Any help would be appreciated.

    Thanks in advance.

    This feature is not supported by the product. check the Doc ID 1444359.1

    You can trigger an SR to know about this.

  • Is it possible to create the icon PDF format display with the cover of the document image, when sending via "Mail" on a mac?

    Is it possible to create the icon PDF format display with the cover of the document image, when sending via "Mail" on a mac?

    InDesign has no control on how Apple Mail displays a PDF it creates.

    My experience is that Mail displays a preview of a single PDF page, but not a multiple page PDF. In addition, for a single page PDF, the user may tip if the PDF shows a preview by right-clicking the icon/preview.

  • How to send a mail with attachment

    Hi friends,

    I am using soa 11.1.1.6
    Jdev 11.1.1.6
    WebLogic:-11.1.1.6

    I want generated e-mail with attachment in BPEL 11 g. Here's what I did in my bpel process

    Create processes bpel from simple Hello world.

    In the e-mail activity below details are given

    < name of scope = "Email1" >
    < bpelx:annotation >
    < bpelx:pattern = "bpelx:email" patternName > < / bpelx:pattern >
    < / bpelx:annotation >
    < variables >
    < variable name = "varNotificationReq".
    messageType = "ns1:EmailNotificationRequest" / >
    < variable name = "varNotificationResponse".
    messageType = "ns1:ArrayOfResponse" / >
    < variable name = "NotificationServiceFaultVariable".
    messageType = "ns1:NotificationServiceErrorMessage" / >
    < / variables >
    < name of sequence = sequence of '1' >
    < assign the name = "EmailParamsAssign" >
    < copy >
    < expression = "string ('Default')" / >
    < variable = part of the "varNotificationReq" = "EmailPayload."
    Query = "/ EmailPayload / ns1:FromAccountName" / >
    < / copy >
    < copy >
    < expression = "" string ()"/ >
    < variable = part of the "varNotificationReq" = "EmailPayload."
    Query = "/ EmailPayload / ns1:Bcc" / >
    < / copy >
    < copy >
    < from expression = "string ('[email protected]')" / >
    < variable = part of the "varNotificationReq" = "EmailPayload."
    Query = "/ EmailPayload / ns1:Cc" / >
    < / copy >
    < copy >
    < expression = "" string ()"/ >
    < variable = part of the "varNotificationReq" = "EmailPayload."
    Query = "/ EmailPayload / ns1:ReplyToAddress" / >
    < / copy >
    < copy >
    < expression = "string ('testing')" / >
    < variable = part of the "varNotificationReq" = "EmailPayload."
    Query = "/ EmailPayload / ns1:Subject" / >
    < / copy >
    < copy >
    < from expression = "string ('[email protected]')" / >
    < variable = part of the "varNotificationReq" = "EmailPayload."
    Query = "/ EmailPayload/ns1: to" / >
    < / copy >
    < copy >
    < delivery > < xmlns = "http://xmlns.oracle.com/ias/pcbpel/NotificationService" > < MimeType xmlns = "http://xmlns.oracle.com/ias/pcbpel/NotificationService" > multipart/mixed < / MimeType > < ContentBody xmlns = "http://xmlns.oracle.com/ias/pcbpel/NotificationService" > < MultiPart xmlns = "http://xmlns.oracle.com/ias/pcbpel/NotificationService" > < BodyPart xmlns = "http://xmlns.oracle.com/ias/pcbpel/NotificationService" > < MimeType xmlns = "http://xmlns.oracle.com/ias/pcbpel/NotificationService" / > < ContentBody xmlns = "http://xmlns.oracle.com/ias/pcbpel/NotificationService" / > < BodyPartName xmlns = "http://xmlns.oracle.com/ias/pcbpel/NotificationService" / > < / BodyPart > < BodyPart xmlns = "http://xmlns.oracle.com/ias/pcbpel/NotificationService" > < MimeType xmlns = "http://xmlns.oracle.com/ias/pcbpel/NotificationService" / > < ContentBody xmlns = "http://xmlns.oracle.com/ias/pcbpel/NotificationService" / > < BodyPartName xmlns = "http://xmlns.oracle.com/ias/pcbpel/NotificationService" / > < / BodyPart > < / MultiPart > < / ContentBody > < / content / > < / from >
    < variable = part of the "varNotificationReq" = "EmailPayload."
    Query = ' / EmailPayload/ns1: Content "/ >
    < / copy >
    < copy >
    < from expression = "string (" text/html; Charset = UTF-8 ")" / >
    < variable = part of the "varNotificationReq" = "EmailPayload."
    Query = "/ EmailPayload/ns1: Content / ns1:ContentBody / ns1:MultiPart / ns1:BodyPart [1] / ns1:MimeType" / >
    < / copy >
    < copy >
    < from expression = "" Hi"" / >
    < variable = part of the "varNotificationReq" = "EmailPayload."
    Query = "/ EmailPayload/ns1: Content / ns1:ContentBody / ns1:MultiPart / ns1:BodyPart [1] / ns1:ContentBody" / >
    < / copy >
    < copy >
    < expression = "string (' application/xml'); "/ >
    < variable = part of the "varNotificationReq" = "EmailPayload."
    Query = "/ EmailPayload/ns1: Content / ns1:ContentBody / ns1:MultiPart / ns1:BodyPart [2] / ns1:MimeType" / >
    < / copy >
    < copy >
    < expression = "string ('result.xml')" / >
    < variable = part of the "varNotificationReq" = "EmailPayload."
    Query = "/ EmailPayload/ns1: Content / ns1:ContentBody / ns1:MultiPart / ns1:BodyPart [2] / ns1:BodyPartName" / >
    < / copy >
    < copy >
    < expression = "bpws:getVariableData('outputVariable','payload','/client:processResponse/client:result')" / >
    < variable = part of the "varNotificationReq" = "EmailPayload."
    Query = "/ EmailPayload/ns1: Content / ns1:ContentBody / ns1:MultiPart / ns1:BodyPart [2] / ns1:ContentBody" / >
    < / copy >
    < / assign >
    < call name = "InvokeNotificationService".
    portType = "ns1:NotificationService."
    partnerLink = "NotificationService1."
    variableentree = "varNotificationReq".
    outputVariable = "varNotificationResponse."
    operation = "sendEmailNotification" / >
    < / sequence >
    < / scope >


    I'm able to generate E-mail with an attachment, but I do not see that the xml data in the attached file yet the file size is 64 b.

    I think I need to convert the data before sending it as an attachment. Could someone help me please by generating the XML.

    Kind regards
    Tarak

    Hi Tarak,

    You need not specify the MIME Type such as application/xml you don't read a .xml file.

    I'm assuming you are trying to send the result with its XML form variable in the attachment. So, follow the following steps to achieve the same (basically only first steps as my blog).

    -Open the e-mail from the Design view activity and go to the Attachments tab
    -Define the MIME Type such as text/plain; (no need to set as xml) and the name of the attachment as result.xml (what you do already)
    -The content to write this:

    ora:getContentAsString(bpws:getVariableData('outputVariable','payload'))
    

    ora: getContentAsString() function returns you the resulting data in its xml form.

    Be sure to check changes to the source code also like my Jdeveloper, they don't think is in Design view. Test and let me know if the problem persists.

    Kind regards
    Neeraj Sehgal

  • delete file after sending an e-mail with an attachment

    Hello

    I looked in the forums and have not found any reference to it.
    I need to send an email with an attachment that is source via a form.

    The problem I'm having is that when I include the code to remove the file from the directory, the intrusion via cfmail is unable to run. When I do not include the code to delete the file, it works fine.
    Any ideas?

    I tried with paths, physical and virtual.

    You need give time for email to send.

    Figure 60 seconds or 60 seconds more your spool interval (if the coil is on (on))-whichever is greater.

    It would be preferable not to delete the file here.

    Set up a scheduled task that deletes files in the target directory that are, say, older than 24 hours.

Maybe you are looking for

  • Using hotkeys (FN keys) without the Flascards

    Hello is it possible to use the FN keys without running the utility of Flashcard under Vista Ultimate? Kind regards Uwe Meyer

  • G62-149wm: OS after you replaced the HARD drive

    I was good recently a laptop G62 with a hdd dead by a friend who did not feel it was worth the cost of repairs. I tell myself that I can put an ssd inside, and it will be a pretty decent laptop.  My problem concerns the operating system after that I

  • The best Format Possible Rip for Audio quality

    I am running Windows XP Professional with Media Player 11. I don't care about the size of the files because I have lots of storage and I don't like using my music on a laptop or device drive. I'm only looking for to get the best possible audio qualit

  • Installation of textmode XP without PS/2 keyboard?

    Hello I try to install XP (SP2 specifically) on a computer with no PS/2 port. I'm guessing that "slipstreaming" installation with usb textmode drivers disk solve the problem of installing windows without recognizing the (generic Dell keyboard) keyboa

  • I have both add and remove icons in Control Panel

    I have both add and remove icons of programs in my control panel. My Question is :-(. How can I delete one of them I think that may be causing the other problem to take a long time to fill?  Any help would be appreciated