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.

Tags: Database

Similar Questions

  • 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

  • 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

  • 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;
    
  • 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 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

  • 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.

  • 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.

  • Why is sending e-mails with attachments slow

    Hello

    The context of this question is:

    • I had an Apple iMac for a little more than 3 years;
    • and I use "Mail" application to send/receive emails;
    • but it is not uncommon, when I send an email with one or several attachments all the e-mail does not receive to the recipient;
    • and after working with Apple and nowhere;
    • I am now using Thunderbird instead of Mail.

    I love Thunderbird, but I noticed that if I send an email with an attachment (an example is an email that I just sent with an attachment 2.6 MB), it takes some time to both (a) first of all send and then (b) copy the email to my folder 'send '.

    Are there changes 'settings', that I can do to speed things up, or do I just a bigger machine? (I noticed that over the years 3 +, I got the iMac, it is gradually slower and slower.)

    Concerning

    John Bugler

    Download of attachments usually takes much more time compared to the download, with most of the connections and has little to do with age or the quality of your material.

    If you have outgoing mail analysis antivirus software, which could slow down the process; Disabling outgoing mail analysis and see if that makes a difference.

    If your email service automatically copies sent to a folder IMAP messages sent (Gmail, Hotmail), you should uncheck "places a copy in" under the tools/account settings /AccountName/Copies & records to avoid duplicates and download additional time.

    In addition, if the IMAP account and your folder "sent" is important or not compacted, it may take more time to update (download a large file that is sent to the remote server). In this case, you can move messages sent to a separate IMAP or local folder. With POP accounts, sent messages are stored on the local computer and then go very fast.

  • Since the upgrade to 31.1.0, I can't send an email with an attachment. I'm under OpenSuse 13.1 on KDE. How can I fix?

    If I try to send an email with an attachment or a picture inserted, it starts to send with a progress bar that will read a 80 to 95% completion and then stay there until it times out after a few minutes. I get this error: failed to send the message.
    The message cannot be sent because the connection to the server of SMTP outgoing.verizon.net expired. Try again or contact your network administrator.
    I use the same provider of e-mail for several years. This works for emails of simple texts without problem. If I try to transfer or to respond to an email, I get the same error.
    How can I fix?

    Thank you

    Robert

    OK, I thought about it. As I was going through the configuration editor, I saw the outgoing server settings. It made me wonder if something had changed. I went to my provider and reinforced through their list and found where mine differ. If the update for thunderbird changed something or verizon changed something.
    Thanks for the comments.

  • When I send an email with an attachment, the recipient cannot open it.

    I TRY to SEND YEAR EMAIL WITH AN ATTACHMENT OF THE WORD or PIECE WORK. THE PERSON RECEIVING THE MAIL CANNOT USE THE FORMAT AND THE APPLICATION TO BE CONVERTED TO PDF. HOW DO I DO THAT?

    Open the docunent in Word and save it as a PDF file.
     
    The Applications Microsoft Office forums
    http://answers.Microsoft.com/en-us/Office
  • Why, when I try to send or to send an email with an attachment I get the error message "Attachment Id has wrong format"... ?

    Why, when I try to send or to send an email with an attachment I get the error message "Attachment Id has wrong format"... ?

    Hi AndyHolman,

    ·         What email program are you using?

    ·         What is the attachment file extension?

    Try to remove your automatic signature in your mail and see if it solves the problem.

    Please provide us with some information so that we can help you solve the problem.

    You can also contact you Email Service Provider (ESP) for assistance on the issue.

  • 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

Maybe you are looking for