Issue using UTL_MAIL. SEND_ATTACH_VARCHAR2

Hello world

I use UTL_MAIL. SEND_ATTACH_VARCHAR2 to send an email with an attachment.
Problem is that when I use the file attachment then I con not Cholakov after email. I was set utl_file_dir but he is gives error ora-29280 "invalid directory ' and I have no where it attach the file, maybe join the file of (where am I run this form or a form file)"

you have any idea about it.

Hashim al-Geneviève Asalam

did you follow that

http://birijan.com.NP/?q=sending+emails+with+or+without+attachments+from+database

Kind regards

Abdetu...

Tags: Oracle Development

Similar Questions

  • How to change security issues using alternate email address

    How to change security issues using e-mail. That you send e-mail to?

    Forgotten security issues

    1. If you forgot the answers to your questions of security of Apple ID - Apple Support
    2. Apple ID - all about Apple ID security issues
    3. Contact Apple for assistance with the security of the Apple ID - Apple Support accounts
    4. Security issues

    If you don't have an e-mail address of relief already implemented, then you will need to call Apple (point 3) for repair.

  • Generate the HTML Emails using UTL_MAIL instead of UTL_SMTP

    Hi all

    We use a server Oracle 11 GR 2.

    I want to know if we can produce HTML emails using UTL_MAIL instead of UTL_SMTP package.

    I searched the Internet but found most of the research showing the UTL_SMTP package.

    So here the expert opinion on this before proceeding with the UTL_SMTP package.

    Thank you
    Madhu K.

    Maldini says:

    I want to know if we can produce HTML emails using UTL_MAIL instead of UTL_SMTP package.

    Yes. "You set the Mime_Type setting" + text / html + ' and the value of the parameter to the HTML email Message .

    I searched the Internet but found most of the research showing the UTL_SMTP package.

    UTL_SMTP is an interface for the use of the SMTP application protocol. She in turn runs on the package UTL_TCP which provide an interface to communicate using the TCP network protocol.

    UTL_MAIL working above UTL_SMTP. It provides a simple interface to sending an e-mail without the caller having to deal with the actual construction of the e-mail itself. Binary attachments should be coded. MIME limits must be defined and Mime header created. Etc.

    UTL_MAIL does most to build an e-mail and then deliver using UTL_SMTP. But he did a job very basic and a bit primitive. This means that if you want complex structures of e-mail, you must create that yourself and then use UTL_SMTP of to deliver.

    Note that UTL_SMTP is the e-mail delivery truck. He does not care and does not know what the cargo contains it delivers. If it is an HTML email with 20 attachments, or just a plain text email or an invitation to a meeting to recognized and on demand by the customer mail reader receives. Construction of an e-mail is processed through the form of MIME (Multipurpose Internet Mail Extensions). It has NOTHING to do with the SMTP application protocol.

    UTL_MAIL is an implementation of skeleton Mime. You need more than that - look somewhere else (3rd party) or write your own code. UTL_SMTP is irrelevant somehow when it comes to build emails.

  • Unable to send mail via SMTP Server authenticated using UTL_MAIL

    Hello world...

    I tried to send an e-mail message using UTL_MAIL on Oracle 10 g (10.2.0.1.0), but get the error:

    ORA-29279: permanent SMTP error: 550 must be authenticated

    I have run utlmail.sql and prvtmail.plb connected in SYSDBA and set SMTP_OUT_SERVER.

    We have recently changed our email provider and a new requires authentication for the outgoing SMTP server, where the message that I get, but so far I have not found something on how to send the user name password to the procedure of 'send', in documentation or in previous discussions or other resources.

    Could someone help me solve this problem?

    Thanks in advance.

    Not possible using UTL_MAIL, but if you roll your own using UTL_SMTP (which is what UTL_MAIL is written on the top) you can use the code fragment in Metalink Note 201639.1 to connect to a SMTP server using AUTH LOGIN.

  • Maximum size of the message body when you use utl_mail.send

    I'm looking to get the documentation on the subject, but so far without success.


    By looking at the interface, I expect the max size to 32 KB (varchar2 in Pl/Sql),
    and when sending ascii using the value default mime_type ("text/plain; charset = us-ascii').
    I can almost send this amount.

    However when sending utf8 using the mime_type ' text/plain; Charset = UTF - 8',
    I send about 7970 characters / 12650 bytes before I started getting errors
    (ORA-06502: PL/SQL: digital error or value: raw variable length too long)

    Although it is beyond my current needs, I would avoid having to test this on all versions,
    customers could be going to use.

    Testicular above were made on:
    Oracle Database 11 g Release 11.2.0.2.0 - 64 bit Production running windows.
    The database character set is AL32UTF8

    The code which fails in UTL_MAIL seems to be the following:

    FUNCTION ENCODE_VARCHAR2(DATA IN VARCHAR2 CHARACTER SET ANY_CS)
        RETURN VARCHAR2 IS
    BEGIN
          RETURN UTL_RAW.CAST_TO_VARCHAR2(
                   UTL_ENCODE.QUOTED_PRINTABLE_ENCODE(
                     UTL_RAW.CAST_TO_RAW(DATA)));
    END;
    

    The DATA received as a parameter is your body of the email ( messageparameter). The following test case goes directly to these data in the code above:

    SQL> create or replace function FunkyString return varchar2 is
      2          msg  varchar2(32767 char);
      3          line varchar2(32767 char);
      4  begin
      5          line := '';
      6          for j in 1..10 loop
      7                  line := line || '123æøåÆØÅ ';
      8          end loop;
      9
     10          msg := 'Start_';
     11          for i in 1..80 loop
     12                  msg := msg || line || chr(13) || chr(10);
     13          end loop;
     14          msg := msg || '__end';
     15
     16          return( msg );
     17  end;
     18  /
    
    Function created.
    
    SQL>
    SQL> declare
      2          r       raw(32767);
      3  begin
      4          dbms_output.put_line( 'size='||length(FunkyString) );
      5
      6          r := utl_raw.cast_to_raw( FunkyString );
      7          r := utl_encode.quoted_printable_encode( r );
      8  end;
      9  /
    size=12971
    declare
    *
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error: raw variable length too long
    ORA-06512: at "SYS.UTL_ENCODE", line 277
    ORA-06512: at line 7
    

    If utl_encode.quoted_printable_encode () throws an exception. I think that the issue is that encoding special characters in your message string, drastically increases storage required as 3 tanks are used by the single character special for coding, correct?

  • DVD burning issues using windows vista

    OK so im, backup data out of my laptop. I have about 2 GB ready to be burned onto a dvd and I got a file over to burn was that of 600 MB should adjustment no problem at all but for some reason, vista tells me my dvd is full makes no sence so I burned dvd and went to my next dvd using the 600 MB file and it let me fill the full capacity of 4.7 GB dvd does vista sometimes to put a ghost or sometihng file that won't allow me to fill the disc ive met this problem once before and this is no his almost random logic

    Hi cocknballs4u,

    Try to copy the files in one shot and check if you still get the error message.
    Given that the issue occurs at random times, I suggest that you can delete the temporary files that are created by the burning.

    Navigate to the following location and delete them all the files in the temporary folder burn.
    Burn \appdata\Local\Microsoft\Windows\Burn\Temporary file C:\Users\

    Then delete temporary files on the computer.

    Delete files using disk cleanup
    http://Windows.Microsoft.com/en-us/Windows-Vista/delete-files-using-disk-cleanup

    Disc burning: frequently asked questions
    http://Windows.Microsoft.com/en-us/Windows-Vista/disc-burning-frequently-asked-questions

    Should which CD or DVD format I use?
    http://Windows.Microsoft.com/en-us/Windows-Vista/which-CD-or-DVD-format-should-I-use

    I hope this helps!

    Halima S - Microsoft technical support.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • U2414H Rev. A01 Power Saving issue, use CCC V13.251

    This is by far the worst monitor I've ever bought. After reading all of the horrible experience, everyone crossed now all make sense. The monitor doesn't come with a mini dp to dp cable, and to my surprise, it is absolutely useless. I spent all night trying to make it work, and he always stuck on the energy saving mode and even with HDMI. After fighting with him for hours, finally got it work less than 24 hours, I reboot and once, with dp cable it is stuck in power saving mode. It is absolutely rubbish! It's incredible that Dell continues to sell such shameful product and pretend that the problem does not exist. I would like an answer from Dell or anyone affiliated with Dell regarding this issue. This is very unacceptable!

    I managed to solve the problem myself, for now. Sorry to act on impulse and be rude about the situation. And the monitor has not buy directly from Dell, I bought it from an authorized dealer.

    After days of DIY autour with it, I think it's the problems driver GPU. My current setup is Windows 7 Pro with Sapphire Radeon R9 280 OC with Boost and ran on CCC V14.44, and it gave me so much trouble then. I decided to connect the monitor to a Radeon 7850 GPU with CCC V13.1 and it works beautifully.  Then it made me think back on the driver for the possible vesrion earlier. And low and behold... DP now works without problem. Now I'm under V13.251 CCC of Sapphire. For those who use the same problem as me, try using the driver that is shipped with the GPU, GPU AMD it just might work for you, because it worked for me.

    And since I can't take my rudeness, I'm sorry to be so hasty on my end and blame everything on Dell. I will definitely buy a couple more this monitor, as is a large monitor to research.

  • Are there known issues using PSE 13 after installing Apple recent 10.10.3 updated on day of Combo to Yosemite?

    I've had Yosemite for some time and bought/installed PES 13 thereafter.

    In the last days, I've upgraded to Yosemite 10.10.3.

    As a novice PSE 13, I worked my way through "Adobe Photoshop elements 13 - classroom in a book". Work through the exercises that I found that my iMac is sometimes take more time to process the functions I am using upgrade prior ro the 10.10.3. For example, using the correction tools, straighten tool etc.

    I struggled with Apple upgrade and had to re - install my machine from a backup Time previous Machine and so I was wondering: -.

    • Are there known issues with PSE 13 post 10.10.3 upgrade?
    • Are there things I should be concerned about the future before accepting an OS X update?

    Thank you

    Andy

    No known issues. However, it is advisable to always remove preferences after updates to the OS X system.

  • sending e-mail using utl_mail

    Hi all

    I am able to send successfully from the database (11.2.0.1) using the utl_mail package.
    exec utl_mail.send(sender=>'[email protected]', recipients=> '[email protected]', message=>'YOU HAVE ONE MONTH TO RENEW CONTRACT', subject=>'YOU HAVE ONE MONTH TO RENEW CONTRACT') ;
    but the obligation is such that I have to send the electronic trigger to those employees that a contract ends in a week, how do I dynamically put enamel of the employee in the recipients tag in utl_mail.send.

    ex:-something as below, I know that the code is not right but kindly guide me
    exec utl_mail.send(sender=>'[email protected]', recipients=> 'select email from emp where contract_exp between sysdate and sysdate+7 '  , message=>'YOU HAVE ONE MONTH TO RENEW CONTRACT', subject=>'YOU HAVE ONE MONTH TO RENEW CONTRACT') ;
    Thank you

    user10243788 wrote:
    Hi all

    I am able to send successfully from the database (11.2.0.1) using the utl_mail package.

    exec utl_mail.send(sender=>'[email protected]', recipients=> '[email protected]', message=>'YOU HAVE ONE MONTH TO RENEW CONTRACT', subject=>'YOU HAVE ONE MONTH TO RENEW CONTRACT') ;
    

    but the obligation is such that I have to send the electronic trigger to those employees that a contract ends in a week, how do I dynamically put enamel of the employee in the recipients tag in utl_mail.send.

    ex:-something as below, I know that the code is not right but kindly guide me

    exec utl_mail.send(sender=>'[email protected]', recipients=> 'select email from emp where contract_exp between sysdate and sysdate+7 '  , message=>'YOU HAVE ONE MONTH TO RENEW CONTRACT', subject=>'YOU HAVE ONE MONTH TO RENEW CONTRACT') ;
    

    Thank you

    move the SELECTION upwards within the LOOP

  • Issue using the ENGINE table MEMORY SUNOPSIS (high priority)

    Hi gurus,

    It is to launch an operator, like any error by using the SUNOPSIS MEMORY ENGINE to generate a .csv file using the database as a source table.

    ODI-1228: SrcSet0 (load) task fails on the target connection SUNOPSIS ENGINE table SUNOPSIS MEMORY ENGINE.
    Caused by: java.sql.SQLException: unknown token

    (LKM used: LKM Sql to Sql.)
    IKM used: IKM Sql to add files.)

    can you please help me about this ASAP so that it became a show-stopper for me to go further.

    Any help will be greatly appreciated.

    Thank you very much
    Pavan

    Published by: Pavan. on July 11, 2012 10:22

    Hi all

    The issue has been resolved successfully.

    The solution is
    We need to change the E$ _, I have$ _, J$ _,... E_, I_ , J_... ((c'est à dire, enlever le symbole '$')) in the PHYSICAL SCHEMA of ENGINE table SUNOPSIS MEMORY according to the information provided below.

    When interfaces running and using an XML schema or file complex as the transit area, the 'Unknown token' error. This error is caused by the HSQL (2.0) updated version. This new version of HSQL requires that the names of tables that contains a dollar sign ($) are enclosed in quotes. Temporary tables (loading, integration, etc.) that are created by the knowledge Modules do not respect this requirement on the technologies of complex and HSQL records.

    To work around the problem, change the physical schema definitions to remove the dollar symbol ($) of all paintings of prefixes work. Scenarios must be regenerated with these new settings.

    It has worked well for me.

    Thank you
    Pounet

  • Cannot send mail when using UTL_MAIL. Send

    Hello, I want to send a mail to oracle to yahoo, gmail...
    I had prvtmail.sql, utlmail.sql install and config alter system set smtp_out_server = 'MY PUBLIC IP' SCOPE = both;
    This is my code
    Start
    UTL_MAIL.SEND 
    ( sender => '[email protected]'
    , recipients => '[email protected]'
    , cc => null
    , subject => 'test'
    , message => 'this is a test');
    end;
    but it shows the error message
    Error report:
    ORA-29278: SMTP transient error: 421 Service not available
    ORA-06512: at "SYS.UTL_SMTP", line 20
    ORA-06512: at "SYS.UTL_SMTP", line 96
    ORA-06512: at "SYS.UTL_SMTP", line 138
    ORA-06512: at "SYS.UTL_MAIL", line 386
    ORA-06512: at "SYS.UTL_MAIL", line 599
    ORA-06512: at line 2
    29278. 00000 -  "SMTP transient error: %s"
    *Cause:    A SMTP transient error occurred.
    *Action:   Correct the error and retry the SMTP operation.
    Please help me
    Thank you

    Port 21 is FTP control port. The client and the server use a second tcp port to send data. If you open only port, the FTP client and server can communicate commands - but will be unable to send data (so downloading files and downloads will fail).

    Read this http://slacksite.com/other/ftp.html and pay particular attention to the functioning of the Passive and Active means and how do you determine the 2nd port (the data port used to send the data).

  • Issue using collect slider + dynamic SQL + loose + FORALL

    Hello

    I have a dynamic query I need to use a cursor to fetch recording this inturn need to insert in an intermediate table.

    The issue I'm facing is that I don't know how to declare the variable to retrieve the records in. Since I use a dynamic cursor how I to declare?

    My code looks something like this-
    ----------------------------------------------------------------------------------
    TYPE c_details_tbl_type IS REF CURSOR;
    c_details c_details_tbl_type;

    TYPE c_det_tbl_type IS TABLE OF c_details % ROWTYPE INDEX BY PLS_INTEGER;
    c_det_tbl c_det_tbl_type; -- ???
    BEGIN

    v_string1: = "SELECT...". »
    v_string2: = 'UNION ALL SELECT '.... »
    v_string3: = 'AND... '. »

    v_string: = v_string1 | v_string2 | v_string3;

    C_details OPEN FOR v_string;
    LOOP
    Fetch the c_details COLLECT in BULK
    IN c_det_tbl LIMIT 1000;
    IF (c_det_tbl. COUNT > 0) THEN
    REMOVE FROM STG;
    FORALL i IN 1.c_det_tbl. COUNTY
    INSERT INTO STG
    VALUES (c_det_tbl (i));
    END IF;
    OUTPUT WHEN c_details % NOTFOUND;
    END LOOP;
    NARROW C_details;
    END
    -------------------------------------------------

    Thank you

    Why most collect? Everything is slow down the process of reading (SELECT) and write (INSERT) processes.

    Selected data (as a collection) needs to be pushed in the memory of the PGA of the PL/SQL engine. And then the same data must be pushed back again by the PL/SQL engine to the database to be inserted. Why?

    It is much faster, needs much less resources, with fewer moving parts, simply load the SQL engine to do both these steps using a single INSERT... SELECT statement. And it can support parallel DML too for scalability when data volumes get big.

    It is also quite easy to do a single SQL statement we would like this dynamic and even bind variable.

    Simplicity is the ultimate form of elegance. Pushing data unnecessarily around, it's not simple and therefore not a very elegant way to solve the problem.

  • Job SQL Script using UTL_Mail.send fails

    Hello world

    It comes to 10.2.0.4 on Windows

    I have configured UTL_Mail and it works when I send mails via sqlplus.

    Now, just trying to get my work very simple SQL Script to send an email.

    That's all that is in the control box (I use control of the database to create the job)

    exec UTL_MAIL.send (sender = > '[email protected]',)
    recipients = > "[email protected]"
    CC = > '[email protected] ',.
    BCC = > '[email protected] ',.
    subject = > "UTL_MAIL Test."
    message = > "Job ULTRAPRD INTEGER BKUP Email on PNCLULTRAPRD has successfully completed");



    Natural logarithm of output

    SQL * more: Release 10.2.0.4.0 - Production on Fri Jul 17 09:36:32 2009

    Copyright (c) 1982, 2007, Oracle. All rights reserved.

    SQL > SQL > SQL > SQL > connect.
    SQL > SQL > START UTL_MAIL.send(sender => '[email protected]',;) END;
    *
    ERROR on line 1:
    ORA-06550: line 1, column 53:
    PLS-00103: encountered the symbol ";" when expecting one of the following values:
    (- + new case mod not null other < an ID >)
    < between double quote delimited identifiers of > < a variable binding > avg
    current account is min max sql stddev sum variance prior
    execute forall time timestamp interval date fusion
    < a literal string with character set specification >
    < a > < a SQL string between single quotes > hose
    < a literal character in string quoted also defined specifications >
    < an alternatively-q


    SQL > SP2-0734: order unknown beginning "recipients...". "- rest of the ignored line.
    SQL > SP2-0734: order unknown beginning 'cc... '. "- rest of line is ignored.
    SQL > SP2-0734: order unknown beginning «bcc...» "- rest of line is ignored.
    SQL > SP2-0734: beginning of unknown command "subject...". "- rest of the ignored line.
    SP2-0044: for a list of known commands type HELP
    and to let EXIT.
    SQL > SP2-0734: order unknown start "message...". »


    Thanks for all the ideas. John

    Published by: user629010 on July 17, 2009 17:11

    Published by: user629010 on July 17, 2009 17:13

    Why the output does not say:

    Procedure completed successfully

    ????

    What about -

    END;
    /

    as the last 2 lines.

  • Satellite P300-135 system issues using two HARD drives

    About a month ago I bought a faster hard drive for my laptop (because it wasn't hard drive 5400 RPM by default), and computer technicians to the store where I bought my laptop has recommended a Seagate Momentus 7200.4 250410.

    The first couple of days everything went smooth, but after that, every second, restart my OS (Windows 7 Ultimate 32 bit) reports of problems with my video card, sometimes 'Windows cannot initialize the device of this hardware driver. (Code 37) ", the other time"Windows has stopped this device because it has reported problems. " (Code 43) ", and when this error occurs, the keyboard and the keyboard do not work too.
    I made a simple and primitive diagnosis by deleting the second hard drive and rebooted 5 or 6 times, and everything went very well.

    So I think the problem is that the laptop has not enough power for two hard disks. Is it true, or is my phone begins to fail?

    Sorry for my mistakes of language, but English is my second language.

    Hello

    Usually the second HDD should not affect the performance of the system, but it of impossible
    So maybe you should test the specifications and performance of OS using another HARD drive maybe a HARD disk that takes in charge of 5400 RPM

  • Another chart update rate issue (using a state machine)

    Hi all!

    I'm develiping a pilot for a new instrument.  I have the basics of work based on the vi tree tutorial.  Now, I'm creating a basic example.  I started by watching a tutorial of State machine (a soda dispenser).  I have 3 States, basically init/reading data/check buttons & writing. Everything works great, reading and display of data. I would now like to add a chart for one of the data (SAP in this case).  Try to implement the method using the loop counter.  Loop cycles at 100 ms for now updating in 5 seconds (later must be user input).

    So basically, I have a simple state machine that updates the values on the screen in a certain State.  I need these data at the top level for trace or possibly turning most of these (less graphic) in a self-contained vi.

    Anyway, I have a Boolean LED in the main loop that flashes every 5 seconds. So far so good.  Except that the graph updates apparently at random?  Put the prog in sleep mode and I have seen the updated table when the data has been read (inside the red box). He has every time.  I'm just creating a local variable inside the red zone...  I see sporadic updates in the charts, maybe 5-10 updates every 5 seconds.  What Miss me?  If I change the iterations of the loop to a faster number (e.g. 10 ms) graph updates like crazy (although the CASE is false).

    Hi Steven8R,

    The chart will update any update a fact local variable refers to the table.  If the chart should be updated each time the code in red box runs.

    The code you have in the structure of the business is not doing anything.  It's just whatever data, the graph contains the reading and writing in itself.

    Something you might try to do instead is wiring the output of the amp VI get directly to the table AMPS inside the 5 second delay of the case structure.  This will update the chart as the most recent data point every 5 seconds.  Is that what you want?

    Best,

Maybe you are looking for

  • Install the drivers for scanner and Fax for HP PC 2410 printer all-in-one

    I use a MacBook Pro with an operating system of El Capitan 10.11.4. I use a PC HP 2400 All in one printer/Fax/Scanner connected by USB to a network of airports Time Capsule. During the installation of the printer driver, the printer function to add p

  • Synchronization and speed of YouTube

    I have a 32 GB AppleTV. New this Christmas. Latest operating system. Everything works very well. If you buy a movie, we can start right away. No problems. No waiting. But... YouTube go into some sort of variable speed. As the slow movement, but the s

  • SD not detected by the MacBook Air early 2014

    My MacBook Air early 2014 does not any activity when I put in my SanDisk Ultra 4 GB card in the card reader. I searched through further discussions, and I have already made sure I put on 'hard drive' on my Finder preferences, put the SD card to 100%,

  • -HPConnectionManager.exe - fatal error-

    HP Manager is on the fritz. How is it important and how to fix the error? ---------------------------HPConnectionManager.exe - fatal error---------------------------HP Connection Manager service has stopped responding. Quit and restart the applicatio

  • How can I activate SimplePass now that Google has blocked the Chrome Extensions

    Recently, Chrome has been updated to block all the extensions that are not bought from their online store. My PC (a Pavilion dv6) came with HP SimplePass installed. I use it for all my online password management, but now it is blocked by the Chrome (