Message txt

Dear experts
I configured service desk functionality for Solution Manager. When a user create a support request in satellite system and write some text it it but when I see it in Solution Manager i am unable to find the text he wrote for the message. Please tell me how can I see the error text that the user hase written in his message.

Hi,
Could you let me know how you are accessing the ticket?
1. If you are accessing it through the work center, you should be abel to see that as a chain in the message.
2. If you are checing it from crm_dno-monitor, call the transaction data tab-->Overview, you should be able to see the details tehre.
Rajeev

Similar Messages

  • BI Publisher how to make email body not be a attachment (message.txt)

    I am using Oracle Business Intelligence Publisher Release 10.1.3.4 Part Number E12602-01 with OBIEE 10g. When I schedule a BI pub PDF report send via email, my text in "BODY" text area shows up as an attachment (message.txt) not in the email body. How can I solve this. We don't need bursting.
    Thanks in advance!

    jordansydney wrote:
    I have literally tried everything! read all the forums! I need an actual solution!
    If everything has been tried, there is nothing more to try.  Just give up. 
    Or Troubleshooting FaceTime and iMessage activation issues

  • Append a mail message to a text or Filemaker file

    Hi I'd like to use Mail's rules to activate an applescript to copy the body of an email (including senders name) and append it to an existing text file (or better yet a filemaker database). Any ideas where to start with this?
    I've tried
    save contents of window in "/Users/john/Desktop/test.txt"
    but not much happens
    Basically would like each new email to append to end of the file.
    cheers

    Your script is too simplistic to do anything - you need to be far more explicit. For example, given the line:
    save contents of window in "/Users/john/Desktop/test.txt"
    you don't say which window. You also don't use a valid file reference (you just use a text string that looks like a file path, but only to you and I (AppleScript isn't that smart).
    So let's step back a bit.
    Since you're writing this as a mail rule it doesn't make any sense to use any window reference at all - the rule is run as the message comes in, and before it ever gets displayed in a window. Fortunately Mail.app will pass in a reference to the message(s) so you can use that to determine the message contents.
    You also have to bear in mind that there may be more than one message, so you have to have a loop that iterates through the messages.
    To make life a little easier, all Mail.app rules will follow the same basic form:
    on performmailaction(theData)
      tell application “Mail”
        set theSelectedMessages to |SelectedMessages| of theData
        -- now theSelectedMessages contains the messages to be processed, so iterate through them:
        repeat with eachMessage in theSelectedMessages
          -- code here to deal with the message
        end repeat
      end tell
    end performmailaction
    Now, inside the repeat loop you have a reference to an incoming message to process.
    As for saving the content of the message, you can't do this with the save command. You need to use AppleScript file access commands, like:
    set theText to content of eachMessage
    set theFile to open for access file (path to desktop as text & message.txt") with write permission
    write theText to theFile
    close access theFile
    Of course, if there are multiple messages you may need to work out some logic to avoid overwriting the same file.

  • Import message table from DLL

    Is there any way to import a the message table resource from a DLL (or, specifically, an OCX file) into LabView such that the error dialogs will properly report error codes returned by DLL calls?
    Thanks!
    Solved!
    Go to Solution.

    Yup, that was the fallback plan. I noticed that there's a provision for user-defined codes and messages and would have generated a message .txt file, but the DLL message codes don't fit in the LabView's user code ranges. So fn call it is.

  • Linker Error Message

    When I try to compile several different apps in LVE embedded, I recieve the error message attached.  Can anyone explain this?
    Thanks,
    Bill F
    Attachments:
    Error Message.txt ‏4 KB

    Hi Bill,
    Is your ARM module in Evaluation mode? If so, there's a restriction on code size. Maybe a large program causes this.  
    If you build a small shipping example, do you see the same thing?
    Can you post the project that causes the problem? The project folder will have the VIs and the lvproj file. In addition, it will contain a subfolder with all the uVIsion files. Build the Project and zip everything together. Post it here for us to take a look at. If you don't want to post it publically and you have a Service contract with NI, you can create a Service Request to work directly with an engineer. Otherwise, we'll try to help you through the forums.
    Product Support Engineer
    National Instruments

  • Error Message at Start Up

    Can anyone tell me how to clear the attached error message. It comes up at every start up.
    Solved!
    Go to Solution.
    Attachments:
    Error Message.txt ‏1 KB

    Thanks Jerry, you are correct-
    I found this solution on another board. It worked!
    Please click on Start, Click on Run and type the following in the open box and click OK
    msconfig
    Vista: In the Start Search field, type msconfig , and press Enter . The System Configuration window opens.
    Or
    Press and hold Windows logo key on keyboard and press R. It will open Run Window. Type the following in the open box and click OK
    MSconfig
    The System Configuration window opens.
    Please click on Startup tab
    Remove the check mark from entries related to Mywebsearch OR M3PLUGIN.DLL
    Then click on Apply, Close and Please click on Exit without restart.
    When the system restarts, you will see a message about System Configuration Utility. Click in the box for "Do not Show this message" and then click on OK.

  • Sending mail attachment through PL/SQL, message not showing in mail body

    Dear All,
    I am sending mail with attachment(pdf file) through oracle.
    file is attached and showing.
    problem is,message is not displaying in message body, it's displaying also in file attachment.
    i want to show message in body.
    mime setting is as follow:
    mesg := mesg || 'Mime-Version: 1.0' || crlf ||
    'Content-Type: multipart/mixed; boundary="' || boundary || '"' ||
    crlf || crlf ||
    'This is a Mime message, which your current mail reader may not' || crlf ||
    'understand. Parts of the message will appear as text. If the remainder' || crlf ||
    'appears as random characters in the message body, instead of as' || crlf ||
    'attachments, then you''ll have to extract these parts and decode them' || crlf ||
    'manually.' || crlf || crlf;
    utl_smtp.write_data(conn,mesg);"
    -- Write the text message or message file or message CLOB, if any
    if (message is not null and length(message) > 0) or
    clob_message is not null then
    mesg := '--' || boundary || crlf ||
    'Content-Type: text/plain; name="message.txt"; charset=US-ASCII' ||
    crlf ||
    'Content-Disposition: inline; filename="message.txt"' || crlf ||
    'Content-Transfer-Encoding: 7bit' || crlf || crlf;
    utl_smtp.write_data(conn,mesg);
    if instr(message,'/') = 1 or instr(message,':\') = 2 or
    instr(message,'
    ') = 1 then
    split_path_name(message,directory_path,file_name);
    append_file(directory_path,file_name,'text',conn);
    utl_smtp.write_data(conn,crlf);
    elsif message is not null and length(message) > 0 then
    utl_smtp.write_data(conn,message);
    if length(message) = 1 or
    substr(message,length(message)-1) != crlf then
    utl_smtp.write_data(conn,crlf);
    end if;
    elsif clob_message is not null then
    append_file(null,'message.txt','text/plain',conn,clob_message);
    end if;
    end if;please help

    dear, when i open this auto generated mail into outlook express, then message is showing properly, but in microsoft outlook 2007, it's showing message as text attachment.
    I appreciate any hint...
    thanx.

  • Blue Screen when I plug my Ipod Touch 8GB(Late 2009)

    My problem is when I plug my Ipod touch 8gb to my laptop(Acer Aspire 5632wlmi,intel core 2 duo processor T5200-1,60 GHz-533MHz L2 cache,1GBDDR 2,Up to 384MB NVIDIAGeForce GO7300 TurboCache,System: Microsoft XP Professional Version 2002 Service Pack 3,all required updates are done),the windows system detects problem and windows shuts down to prevent damage to my computer,this error message appears in blue screen with the technical information of :
    *Stop : 0x00000007E(0x0000005,0X00000000,0xF78FD7C8,0XF78FD4C4) .
    When the system goes down,I have to shut pc down from the power button and when I switch my laptop on I receive an error stating that "system has recovered from a serious error " which has signature of:
    BCCode : 1000007E BCP1:C000005 BCP2:00000000 BCP3:78FD7C8 BCP4:F78FD4C4 OSVer: 512600 Product:256_1
    And error report content is:
    C:\DOCUME~1FATIHF~1\LOCALS~1\Temp\WERffa3.dir00\Mini031610-02.dmp
    C:\DOCUME~1FATIHF~1\LOCALS~1\Temp\WERffa3.dir00\sysdata.xml
    What I have done regarding to try to solve the problem ,but not worked at all:
    1-I have uninstalled Itunes ultimate version(iTunes 9.0.3 for Windows XP,Vista or Windows 7) and other Apple related components on my Laptop(apple application support,Apple mobile device support,Apple Software Support,Quicktime etc.)
    2- a-I re-installed all components mentioned on step 1 and plugged my Ipod: It works when I plug for first time,then I sync with my audio,art-work folders.Then I unplug my Ipod to listen music and see my Art-work,when I plug my Ipod for 2nd time to my Laptop,it crashes and that same blue screen error occurs.
    b- I uninstalled all Apple components and plugged my Ipod to my Laptop,it charges the battery but no blue screen occurs.
    3- I reset my Ipod and meanwhile uninstall all Apple components again(exactly like in 1st step) in my laptop,then I re-install all components to my laptop, and follow the same steps as exactly in 2nd step.I plug my Ipod and it works for first time,than I do sync through Itunes again,than I unplug and use my Ipod,when I plug for 2nd time than the same blue screen error appears and laptop crashes.
    4- a- I reset my Ipod and Meanwhile uninstalled all Apple components,I re-installed iTunes 8.2.1 for Windows XP,Vista or Windows 7) but the same blue screen occurs.
    b- I uninstall iTunes and plugged my Ipod to my laptop,no blue screen occurs.
    5- I asked my colleague who has MacBook and plug my Ipod to her MacBook, than open Itunes,but Itunes(iTunes 9.0.3 for Mac OS x) can not see my Ipod as device and I am not able to do anything.
    6- I've searched in Apple official websites and Google and many Blogger sites,Fan sites and all other possible technical sites but could not find any solution.
    7- I've contacted(phone call) to the Local(Portugal) Support Apple Support Centre and explained all history of the problem clearly.But they could not help me,they advised the same possible solutions which I've already done and they said that they can not do more.And than they gave me a support mail address to contact.([email protected])
    8- I've sent an email to [email protected], 2 days later they've answered me with the information that they are phone based support therefore they not provide me support.
    Basically I am not able to import or export anything to/from my ipod,anyway all windows is going down.
    It is first time I buy Apple product.My friends who have Apple products were generally positive about them,and I was thinking to by a MacBook as well,but after this problem I got doubts and I am not satisfied and happy at all. Since days I am trying to find solutions and find the exact support contacts to get helped with this problem.But could not reach any information. Now I don't have any positive Idea about Apple products or support service.I went to the Techno-Market which I bought the Ipod to change with an Iphone or at least try to have my money back if not possible to swap it with Iphone,but they've told me that it has been more than 15 days and they can not swap it or refund it,even if it was possible they would not refund it because the very sensitive backside of Ipod has some small but visible scratches.
    Anyway I can see the difficulty of having Apple product,having support of product and finding the right contacts to communicate is not easy and I would really be very happy if anyone could change this idea of mine with helping me out to use my Ipod with peace and without any other problem.
    As you can see,I spent a lot of money to buy it and spent days to find solution to my problem and spent a lot of energy to find right Apple Support contacts to help me with my problem.And I am not able to use my product as I wish.
    Please advise me regarding to solve my problem. I hate to deal with courts and other legal ways to take action in those kind of cases. But if not of course it will be my last option to do it so.
    I am waiting an answer,please try to answer me as soon as you have an answer for me.
    Thanks In advance
    Best Regards
    PS:If you provide me an email address which I can send all print screens and full blue screen error message .txt I'll contact you soon after receiving your contact.
    Fatih
    [email protected]

    Have you tried the following document, kohida?
    [What to do when Windows displays a blue screen error message or restarts when syncing the iPhone or iPod touch|http://support.apple.com/kb/TS1502]

  • How to strore keys in KeyStores..of JCE Api..

    Hi ,
    i'm trying to implement a program mySignature that creates and verifies digital signatures using Java Cryptography Extension.
    I am using the DSA Algorithm for encryption.
    Now the problem is once i create the private keys and public keys i am not able to store them to the KeyStore.
    here is the code I wrote
    package my.security.test;
    import java.io.BufferedInputStream;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.security.Certificate;
    import java.security.InvalidAlgorithmParameterException;
    import java.security.InvalidKeyException;
    import java.security.KeyPair;
    import java.security.KeyPairGenerator;
    import java.security.KeyStore;
    import java.security.KeyStoreException;
    import java.security.NoSuchAlgorithmException;
    import java.security.NoSuchProviderException;
    import java.security.PrivateKey;
    import java.security.PublicKey;
    import java.security.SecureRandom;
    import java.security.Signature;
    import java.security.SignatureException;
    import java.security.cert.CertificateException;
    import java.security.cert.CertificateFactory;
    import java.security.interfaces.RSAPrivateKey;
    import java.security.interfaces.RSAPublicKey;
    import java.security.spec.RSAKeyGenParameterSpec;
    * @author sandeepk
    * To change this generated comment edit the template variable "typecomment":
    * Window>Preferences>Java>Templates.
    * To enable and disable the creation of type comments go to
    * Window>Preferences>Java>Code Generation.
    public class MySignature {
         public static void main(String[] args) {
              KeyPairGenerator keyGen = null;
              FileOutputStream sigfos = null;
              try {
                   Signature signature = Signature.getInstance("SHA1withDSA", "SUN");
                   keyGen = KeyPairGenerator.getInstance("DSA", "SUN");
                   keyGen.initialize(1024);
                   KeyPair keyPair = keyGen.generateKeyPair();
                   PrivateKey privateKey = keyPair.getPrivate();
                   PublicKey publicKey = keyPair.getPublic();
                   KeyStore ks = KeyStore.getInstance("JKS", "SUN");
                   System.out.println("Here1");
                   ks.setKeyEntry("privkey", privateKey, "pass".toCharArray(), null);
                   System.out.println("Here2");
                   ks.setKeyEntry("pubkey", publicKey, "pass".toCharArray(), null);
                   System.out.println("Here3");
                   sigfos = new FileOutputStream("C:\\keystore");
                   ks.store(sigfos, "pass".toCharArray());
                   signature.initSign(privateKey);
                   // Reading the contents of them message file               
                   FileInputStream fis = new FileInputStream("C:\\message.txt");
                   BufferedInputStream bufin = new BufferedInputStream(fis);
                   byte[] buffer = new byte[1024];
                   int len;
                   while (bufin.available() != 0) {
                        len = bufin.read(buffer);
                        signature.update(buffer, 0, len);
                   bufin.close();
                   // Writng the signature to a file
                   byte[] realSig = signature.sign();
                   sigfos = new FileOutputStream("C:\\sig.txt");
                   sigfos.write(realSig);
                   sigfos.close();
              } catch (InvalidKeyException e) {
                   e.printStackTrace();
              } catch (NoSuchAlgorithmException e) {
                   e.printStackTrace();
              } catch (FileNotFoundException e) {
                   e.printStackTrace();
              } catch (SignatureException e) {
                   e.printStackTrace();
              } catch (IOException e) {
                   e.printStackTrace();
              } catch (NoSuchProviderException e) {
                   e.printStackTrace();
              } catch (KeyStoreException e) {
                   e.printStackTrace();
              }catch(CertificateException e){
                   e.printStackTrace();
    I get an error while i try to store the key on to the KeyStore, if I comment out these lines of code the program runs without any probs.
    Can any one help me with this issue, i'ld be thank full to them
    -Chau
    Sandy

    We use 'PDDocCreateWordFinder' , 'PDWordFinderEnumWords' to extract the text from Adobe Reader document through Code, Not tool.
    But, by using these APIs, I can't see any difference in 'new line/row' or 'paragraph' if exists in PDF doc.
    I need such API which can give the exact format of Adobe Reader doc according to the content exists in that PDF doc.
    Thanks!

  • How do you read data from a text file into a JTextArea?

    I'm working on a blogging program and I need to add data from a text file named messages.txt into a JTextArea named messages. How do I go about doing this?

    Student_Coder wrote:
    1) Read the file messages.txt into a String
    2) Initialize messages with the String as the textSwing text components are designed to use Unix-style linefeeds (\n) as line separators. If the text file happens to use a different style, like DOS's carriage-return+linefeed (\r\n), it needs to be converted. The read() method does that, and it saves the info about the line separator style in the Document so the write() method can re-convert it.
    lethalwire wrote:
    They have 2 different ways of importing documents in this link:
    http://java.sun.com/docs/books/tutorial/uiswing/components/editorpane.html
    Neither of those methods applies to JTextAreas.

  • Error compiling procedure send mail

    Hi all,
    I have this error message (on 10.2 version)
    Table or view doesn't exist
    At this line
    + select dd.directory_name into directory_name from dba_directories dd+
    + where dd.directory_path = line and rownum = 1;+
    But I don't know how can resolve it.
    This is the all procedure
    [http://forums.oracle.com/forums/]
    CREATE OR REPLACE PROCEDURE P_SPEDEMAIATTA ( from_name IN VARCHAR2,
    to_names IN VARCHAR2,
    subject     IN VARCHAR2,
    message     IN VARCHAR2 default null,
    html_message     IN VARCHAR2 default null,
    cc_names     IN VARCHAR2 default null,
    bcc_names     IN VARCHAR2 default null,
    filename1 varchar2 default null,
    filetype1 varchar2 default 'text/plain',
    filename2 varchar2 default null,
    filetype2 varchar2 default 'text/plain',
    filename3 varchar2 default null,
    filetype3 varchar2 default 'text/plain',
    V_CODIERRO OUT VARCHAR2,
    V_DESCERRO OUT VARCHAR2)
    is
    -- Change the SMTP host name and port number below to your own values,
    -- if not localhost on port 25:
    smtp_host varchar2(256) := 'SMTP.INET.IT';
    smtp_port number := 25;
    -- Change the boundary string, if needed, which demarcates boundaries of
    -- parts in a multi-part email, and should not appear inside the body of
    -- any part of the e-mail:
    boundary constant varchar2(256) := 'CES.Boundary.DACA587499938898';
    recipients varchar2(32767);
    directory_path varchar2(256);
    file_name varchar2(256);
    crlf varchar2(2):= chr(13) || chr(10);
    mesg varchar2(32767);
    conn UTL_SMTP.CONNECTION;
    type varchar2_table is table of varchar2(256) index by binary_integer;
    file_array varchar2_table;
    type_array varchar2_table;
    i binary_integer;
    my_code number;
    my_errm varchar2(32767);
    -- Function to return the next email address in the list of email addresses,
    -- separated by either a "," or a ";". From Oracle's demo_mail. The format
    -- of mailbox may be in one of these:
    -- someone@some-domain
    -- "Someone at some domain" <someone@some-domain>
    -- Someone at some domain <someone@some-domain>
    FUNCTION get_address(addr_list IN OUT VARCHAR2) RETURN VARCHAR2 IS
    addr VARCHAR2(256);
    i pls_integer;
    FUNCTION lookup_unquoted_char(str IN VARCHAR2,
    chrs IN VARCHAR2) RETURN pls_integer IS
    c VARCHAR2(5);
    i pls_integer;
    len pls_integer;
    inside_quote BOOLEAN;
    BEGIN
    inside_quote := false;
    i := 1;
    len := length(str);
    WHILE (i <= len) LOOP
    c := substr(str, i, 1);
    IF (inside_quote) THEN
    IF (c = '"') THEN
    inside_quote := false;
    ELSIF (c = '\') THEN
    i := i + 1; -- Skip the quote character
    END IF;
    GOTO next_char;
    END IF;
    IF (c = '"') THEN
    inside_quote := true;
    GOTO next_char;
    END IF;
    IF (instr(chrs, c) >= 1) THEN
    RETURN i;
    END IF;
    <<next_char>>
    i := i + 1;
    END LOOP;
    RETURN 0;
    END;
    BEGIN
    addr_list := ltrim(addr_list);
    i := lookup_unquoted_char(addr_list, ',;');
    IF (i >= 1) THEN
    addr := substr(addr_list, 1, i - 1);
    addr_list := substr(addr_list, i + 1);
    ELSE
    addr := addr_list;
    addr_list := '';
    END IF;
    i := lookup_unquoted_char(addr, '<'>');
    IF (i >= 1) THEN
    addr := substr(addr, 1, i - 1);
    END IF;
    END IF;
    i := lookup_unquoted_char(addr, '@');
    IF (i = 0 and smtp_host != 'localhost') THEN
    i := instr(smtp_host, '.', -1, 2);
    addr := addr || '@' || substr(smtp_host, i + 1);
    END IF;
    addr := '<'>';
    RETURN addr;
    END;
    -- Procedure to split a file pathname into its directory path and file name
    -- components.
    PROCEDURE split_path_name(file_path IN VARCHAR2, directory_path OUT VARCHAR2,
    file_name OUT VARCHAR2) IS
    pos number;
    begin
    -- Separate the filename from the directory name
    pos := instr(file_path,'/',-1);
    if pos = 0 then
    pos := instr(file_path,'\',-1);
    end if;
    if pos = 0 then
    directory_path := null;
    else
    directory_path := substr(file_path,1,pos - 1);
    end if;
    file_name := substr(file_path,pos + 1);
    end;
    -- Procedure to append a file's contents to the e-mail
    PROCEDURE append_file(directory_path IN VARCHAR2, file_name IN VARCHAR2,
    file_type IN VARCHAR2, conn IN OUT UTL_SMTP.CONNECTION) IS
    generated_name varchar2(30) := 'CESDIR' || to_char(sysdate,'HH24MISS');
    directory_name varchar2(30);
    file_handle utl_file.file_type;
    bfile_handle bfile;
    bfile_len number;
    pos number;
    read_bytes number;
    line varchar2(1000);
    data raw(200);
    my_code number;
    my_errm varchar2(32767);
    begin
    begin
    -- Grant access to the directory, unless already defined, and open
    -- the file (as a bfile for a binary file, otherwise as a text file).
    begin
    line := directory_path;
    select dd.directory_name into directory_name from dba_directories dd
    where dd.directory_path = line and rownum = 1;
    exception
    when no_data_found then
    directory_name := generated_name;
    end;
    if directory_name = generated_name then
    execute immediate 'create or replace directory ' || directory_name ||
    ' as ''' || directory_path || '''';
    execute immediate 'grant read on directory ' || directory_name ||
    ' to public';
    end if;
    if substr(file_type,1,4) != 'text' then
    bfile_handle := bfilename(directory_name,file_name);
    bfile_len := dbms_lob.getlength(bfile_handle);
    pos := 1;
    dbms_lob.open(bfile_handle,dbms_lob.lob_readonly);
    else
    file_handle := utl_file.fopen(directory_name,file_name,'r');
    end if;
    -- Append the file contents to the end of the message
    loop
    -- If it is a binary file, process it 57 bytes at a time,
    -- reading them in with a LOB read, encoding them in BASE64,
    -- and writing out the encoded binary string as raw data
    if substr(file_type,1,4) != 'text' then
    if pos + 57 - 1 > bfile_len then
    read_bytes := bfile_len - pos + 1;
    else
    read_bytes := 57;
    end if;
    dbms_lob.read(bfile_handle,read_bytes,pos,data);
    utl_smtp.write_raw_data(conn,utl_encode.base64_encode(data));
    pos := pos + 57;
    if pos > bfile_len then
    exit;
    end if;
    -- If it is a text file, get the next line of text, append a
    -- carriage return / line feed to it, and write it out
    else
    utl_file.get_line(file_handle,line);
    utl_smtp.write_data(conn,line || crlf);
    end if;
    end loop;
    -- Output any errors, except at end when no more data is found
    exception
    when no_data_found then
    null;
    when others then
    my_code := SQLCODE;
    my_errm := SQLERRM;
    dbms_output.put_line('Error code ' || my_code || ': ' ||
    my_errm);
    end;
    -- Close the file (binary or text)
    if substr(file_type,1,4) != 'text' then
    dbms_lob.close(bfile_handle);
    else
    utl_file.fclose(file_handle);
    end if;
    if directory_name = generated_name then
    execute immediate 'drop directory ' || directory_name;
    end if;
    end;
    begin
    -- Load the three filenames and file (mime) types into an array for
    -- easier handling later
    file_array(1) := filename1;
    file_array(2) := filename2;
    file_array(3) := filename3;
    type_array(1) := filetype1;
    type_array(2) := filetype2;
    type_array(3) := filetype3;
    -- Open the SMTP connection and set the From and To e-mail addresses
    conn := utl_smtp.open_connection(smtp_host,smtp_port);
    utl_smtp.helo(conn,smtp_host);
    recipients := from_name;
    utl_smtp.mail(conn,get_address(recipients));
    recipients := to_names;
    while recipients is not null loop
    utl_smtp.rcpt(conn,get_address(recipients));
    end loop;
    recipients := cc_names;
    while recipients is not null loop
    utl_smtp.rcpt(conn,get_address(recipients));
    end loop;
    recipients := bcc_names;
    while recipients is not null loop
    utl_smtp.rcpt(conn,get_address(recipients));
    end loop;
    utl_smtp.open_data(conn);
    -- Build the start of the mail message
    mesg := 'Date: ' || TO_CHAR(SYSDATE,'dd Mon yy hh24:mi:ss') || crlf ||
    'From: ' || from_name || crlf ||
    'Subject: ' || subject || crlf ||
    'To: ' || to_names || crlf;
    if cc_names is not null then
    mesg := mesg || 'Cc: ' || cc_names || crlf;
    end if;
    if bcc_names is not null then
    mesg := mesg || 'Bcc: ' || bcc_names || crlf;
    end if;
    mesg := mesg || 'Mime-Version: 1.0' || crlf ||
    'Content-Type: multipart/mixed; boundary="' || boundary || '"' ||
    crlf || crlf ||
    'This is a Mime message, which your current mail reader may not' || crlf ||
    'understand. Parts of the message will appear as text. If the remainder' || crlf ||
    'appears as random characters in the message body, instead of as' || crlf ||
    'attachments, then you''ll have to extract these parts and decode them' || crlf ||
    'manually.' || crlf || crlf;
    utl_smtp.write_data(conn,mesg);
    -- Write the text message or message file, if any
    if message is not null then
    mesg := '--' || boundary || crlf ||
    'Content-Type: text/plain; name="message.txt"; charset=US-ASCII' ||
    crlf ||
    'Content-Disposition: inline; filename="message.txt"' || crlf ||
    'Content-Transfer-Encoding: 7bit' || crlf || crlf;
    utl_smtp.write_data(conn,mesg);
    if instr(message,'/') = 1 or instr(message,':\') = 2 or
    instr(message,'\\') = 1 then
    split_path_name(message,directory_path,file_name);
    append_file(directory_path,file_name,'text',conn);
    utl_smtp.write_data(conn,crlf);
    else
    utl_smtp.write_data(conn,message || crlf);
    end if;
    end if;
    -- Write the HTML message or message file, if any
    if html_message is not null then
    mesg := '--' || boundary || crlf ||
    'Content-Type: text/html; name="message.html"; charset=US-ASCII' ||
    crlf ||
    'Content-Disposition: inline; filename="message.html"' || crlf ||
    'Content-Transfer-Encoding: 7bit' || crlf || crlf;
    utl_smtp.write_data(conn,mesg);
    if instr(html_message,'/') = 1 or instr(html_message,':\') = 2 or
    instr(html_message,'\\') = 1 then
    split_path_name(html_message,directory_path,file_name);
    append_file(directory_path,file_name,'text',conn);
    utl_smtp.write_data(conn,crlf);
    else
    utl_smtp.write_data(conn,html_message || crlf);
    end if;
    end if;
    -- Append the files
    for i in 1..3 loop
    -- If the filename has been supplied ...
    if file_array(i) is not null then
    split_path_name(file_array(i),directory_path,file_name);
    -- Generate the MIME boundary line according to the file (mime) type
    -- specified.
    mesg := crlf || '--' || boundary || crlf;
    if substr(type_array(i),1,4) != 'text' then
    mesg := mesg || 'Content-Type: ' || type_array(i) ||
    '; name="' || file_name || '"' || crlf ||
    'Content-Disposition: attachment; filename="' ||
    file_name || '"' || crlf ||
    'Content-Transfer-Encoding: base64' || crlf || crlf ;
    else
    mesg := mesg || 'Content-Type: application/octet-stream; name="' ||
    file_name || '"' || crlf ||
    'Content-Disposition: attachment; filename="' ||
    file_name || '"' || crlf ||
    'Content-Transfer-Encoding: 7bit' || crlf || crlf ;
    end if;
    utl_smtp.write_data(conn,mesg);
    -- Append the file contents to the end of the message
    append_file(directory_path,file_name,type_array(i),conn);
    utl_smtp.write_data(conn,crlf);
    end if;
    end loop;
    -- Append the final boundary line
    mesg := crlf || '--' || boundary || '--' || crlf;
    utl_smtp.write_data(conn,mesg);
    -- Close the SMTP connection
    utl_smtp.close_data(conn);
    utl_smtp.quit(conn);
    exception
    when utl_smtp.transient_error or utl_smtp.permanent_error then
    my_code := SQLCODE;
    my_errm := SQLERRM;
    V_CODIERRO := SQLCODE;
    V_DESCERRO := SQLERRM;
    begin
    utl_smtp.quit(conn);
    exception
    when utl_smtp.transient_error or utl_smtp.permanent_error then
    null;
    end;
    -- raise_application_error(-20000,
    -- 'Failed to send mail - SMTP server down or unavailable: Error code ' ||
    -- my_code || ': ' || my_errm);
    when others then
    my_code := SQLCODE;
    my_errm := SQLERRM;
    V_CODIERRO := SQLCODE;
    V_DESCERRO := SQLERRM;
    raise_application_error(-20000,
    'Failed to send mail: Error code ' || my_code || ': ' || my_errm);
    end;
    Edited by: mosquito70 on Jan 22, 2009 12:33 PM

    Thank's,
    but the problem is that I have the system user password but I haven't that of sys.
    So, if I try to run the statment
    grant select on dba_directories to myuser;
    I have the this code error ORA-01031
    How can resolve, without use all_directories?
    Thank's
    Bye

  • Getting an error while retrieving ASO through Excel-Addin

    I am getting an error while retrieving ASO cube via Excel-Addin. when i try to expand dimension, i am getting the following msg box,
    "No message for message #1270041 in message database"
    Can somebody help me out, your help will be greatly appreciated.
    I am also making sure that the members does not exceed the 65XXXX limit even than i m getting this error.
    Secondly, how can i increas the cache value and on what parameters i should be looking for changing the cache value.
    Thanks in advance

    From the message.txt for 9.3.1:
    ##1270041 For better performance, increase the size of aggregate storage cache
    Tim Tow
    Oracle ACE
    Applied OLAP, Inc.

  • Text File Access on school server help!!!!

    I am writing a poll applet for my school website and this is what i have:
    import javax.swing.*;
    import java.io.*;
    import java.util.*;
    import java.awt.*;
    import java.applet.*;
    import java.awt.event.*;
    //import java.net.URL;
    public class Poll extends Applet implements ActionListener
         static final long serialVersionUID=64154651;
         private String input;
         private BufferedReader inputStream;
         private int option1=0;
         private int option2=0;
         private int option3=0;
         public Poll()
         public void start()
              setLayout(new GridLayout(3,1));
              input=JOptionPane.showInputDialog(null,"Enter your school ID");
              Button choice1=new Button("1: Ben is cool");
              choice1.setActionCommand("1");
              choice1.addActionListener(this);
              add(choice1);
              Button choice2=new Button("2: Ben is Sweet");
              choice2.setActionCommand("2");
              choice2.addActionListener(this);
              add(choice2);
              Button choice3=new Button("3: Ben is Nerdy");
              choice3.setActionCommand("3");
              choice3.addActionListener(this);
              add(choice3);
              setVisible(true);
              //while(true);
         public void stop()
         public void actionPerformed(ActionEvent e)
              String action=e.getActionCommand();
              //JOptionPane.showMessageDialog(null,"Action");
              try
                   inputStream = new BufferedReader(new FileReader("poll1.txt"));
                   PrintWriter pw=new PrintWriter(new FileOutputStream("poll3.txt"));
                   String line= inputStream.readLine();
                   StringTokenizer st;
                   while(line!=null)
                        pw.println(line);
                        st= new StringTokenizer(line);
                        switch(st.nextToken().charAt(0))
                             case '1':     option1++;
                                            break;
                             case '2':     option2++;
                                            break;
                             case '3':     option3++;
                                            break;
                        line=inputStream.readLine();
                   if(action.equals("1"))
                        pw.println("1 "+input);
                        JOptionPane.showMessageDialog(null,"You voted Ben is cool");
                   if(action.equals("2"))
                        pw.println("2 "+input);
                        JOptionPane.showMessageDialog(null,"You voted Ben is sweet");
                   if(action.equals("3"))
                        pw.println("3 "+input);
                        JOptionPane.showMessageDialog(null,"You voted Ben is nerdy");
                   JOptionPane.showMessageDialog(null,"Votes for choice 1: "+option1+"\nVotes for choice 2: "+option2+"\nVotes for choice 3: "+option3);
                   JOptionPane.showMessageDialog(null,"Thank you for your opinion!");
                   pw.close();
                   inputStream.close();
                   inputStream = new BufferedReader(new FileReader("poll3.txt"));
                   pw=new PrintWriter(new FileOutputStream("poll1.txt"));
                   line= inputStream.readLine();
                   while(line!=null)
                        pw.println(line);
                        line=inputStream.readLine();
                   pw.close();
              catch(FileNotFoundException ex)
                   JOptionPane.showMessageDialog(null,"File poll.txt not found.");
                   System.out.println("File poll1.txt not found.");
              catch(IOException ex)
                   JOptionPane.showMessageDialog(null,"Error reading from file message.txt.");
                   System.out.println("Error reading from file message.txt.");
              catch(Exception ex)
                   JOptionPane.showMessageDialog(null,ex.toString());
              destroy();
              System.exit(0);
         public static void main(String[] args)
              Poll p= new Poll();
              p.start();
    When I run the applet on the local folder offline in eclipse applet viewer, it works, when I put it on a website, I get a security exception saying that I cant read poll1.txt. How do I read and write to text files that will be up on the same ftp as the class file?

    When I run the applet on the local folder offline in
    eclipse applet viewer, it works, when I put it on a
    website, I get a security exception saying that I
    cant read poll1.txt. Think about it, you're trying to read a file on someone else's machine. That's a super mega security violation.

  • Change the attachment name in email via webservice

    Hey,
    is there any chance to change die filename of attacheted files (reports) using email scheduling? There is no option in the webinterface. We are using the webservice for scheduling - call the scheduleReport method.
    There is a tag reportDataFileName for the webservice, but shows no reaction. The file ist every time named attachment.XYZ, where XYZ is the template format. We are using an XML Template for creating XLS reports, but reaching an attachment.xml makes it impossible for direct opening out of the email.
    A second problem is the message for the email, attached as message.txt and not directly written in the email.
    thx for any ideas, Sebastian

    Hi Sebastian
    This article might help you, http://blogs.oracle.com/xmlpublisher/2009/12/dynamic_delivery_file_naming.html
    Tim

  • Error: 'else' without 'if'

    Heres my code, and I am getting this error even tho i have {} pairs correctly placed.
    This is for a DOS clone that I am implementing in a game.
              String command = ""; /*This holds what the user inputs for command line*/
              String help = "/help"; //The next strings are commands
              String exit = "exit";
              String dir = "dir";
              String path = "path";
              String cmdPath = "C:\\"; //This string is the current path
              String open = "open";
              String cd = "cd";
              String decrypt = "decrypt";
              Boolean toolsDat = true;
              String[] cDrive = new String[2];  /*This is an array to hold file names*/
                                                   // in the C drive.
              cDrive[0] = "message.txt"; //7 long so its stays
              cDrive[1] = "tools.dat";
    while (!command.equals(exit)) { //The main loop for the commands
                   int fileOpen = -1; //this will act as 'i' used in a for loop to check what
                                         // file is being opened: cDrive[fileOpen]
                   command = reader.readLine(cmdPath + ">"); //shown b4 cursor
                   if (command.equals(help)) {
                        writer.println(exit + " >exits MainFrame access");
                        writer.println(dir + " >shows files in current directory");
                        writer.println(open + " >opens file; ex.:");
                        writer.println("\tC:\\WINDOWS>open\n\tType in file name: file1.txt");
                        writer.println(cd + " >change directory; ex.:");
                        writer.println("\tcd .. >go up a directory;");
                        writer.println("\tOR\n\tC:\\WINDOWS>cd\n\tEnter folder name: system");
                        writer.println(path + " >displays current path");
                        writer.println();
                        writer.println("File and Folder names go as following: If name < 8 long, then it's normal, or");
                        writer.println("If name > 7 long, then name is 6 long followed by ~1");
                        writer.println("File and Folder names are case sensitive.\n\tWindows is not WINDOWS is not windows");
                        writer.println();
                   else if (command.equals(dir)) {
                        writer.println("dir of: " + cmdPath);
                        if (cmdPath.equals("C:\\")) { //will have to add if's to get all
                                                      // folders
                             for (int i = 0; i < cDrive.length; i++) {
                                  writer.println(cDrive);
                        writer.println();
                   else if (command.equals(path)) {
                        writer.println("Current path: " + cmdPath);
                        writer.println();
                   else if (command.equals(open)) {
                        String fileName = reader.readLine ("Type in file name: ");
                        for (int i = 0; i < 2; i++) {
                             if (cDrive[i].equals(fileName))
                                  fileOpen = i;
                        if (fileOpen == 0) {
                             writer.println("\tDear...");
                             decrypt = "decrypt";
                        else if (fileOpen == 1) {
                             writer.println("Cannot Access File: " + fileName);
                             writer.println("Ran...");
                             writer.println("101...");
                   else if (command.equals(decrypt)); {
                        if (toolsDat.equals(false)) {}
                        else if (toolsDat.equals("true")) {
                             String fileDecrypt = reader.readLine("Enter file name: "); /*This always appears no matter what command I type in during eecution.*/
                             if (fileDecrypt.equals("tools.dat")) {
                                  cDrive[1] = "tools.exe";
                                  writer.println("tools.dat has been decrypted");
                   else {
                        if (command.equals(exit)) {}
                        else
                             writer.println("Bad command\n"); //This never appearsd during execution, even when it is supposed to appear which is the String command doesn't match any of the defined commands.
    Sorry about the friggin tabs. when i copy and paste from my program, if there is 2 tabs, here there will be 4 tabs. weird.
    thank you.

    Hopefully the following will help. I added in some semi-colons, changed the spelling of a few type errors, and I think the if, else, and elseif statements should be working correctly now. Please reply back if you need further assistance.
                    String command = ""; /*This holds what the user inputs for command line*/
              String help = "/help"; //The next strings are commands     
              String exit = "exit";     
              String dir = "dir";     
              String path = "path";     
              String cmdPath = "C:\\"; //This string is the current path
              String open = "open";     
              String cd = "cd";     
              String decrypt = "decrypt";     
              Boolean toolsDat = true;     
              String[] cDrive = new String[2];  /*This is an array to hold file names*/                          
              // in the C drive.          
              cDrive[0] = "message.txt"; //7 long so its stays     
              cDrive[1] = "tools.dat";
              while (!command.equals(exit)) { //The main loop for the commands
                   int fileOpen = -1; //this will act as 'i' used in a for loop to check what
                                              // file is being opened: cDrive[fileOpen]
                   command = reader.readLine(cmdPath + ">"); //shown b4 cursor
                   if (command.equals(help)) {          
                   writer.println(exit + " >exits MainFrame access");
                   writer.println(dir + " >shows files in current directory");
                   writer.println(open + " >opens file; ex.:");
                   writer.println("\tC:\\WINDOWS>open\n\tType in file name: file1.txt");
                   writer.println(cd + " >change directory; ex.:");
                   writer.println("\tcd .. >go up a directory;");     
                   writer.println("\tOR\n\tC:\\WINDOWS>cd\n\tEnter folder name: system");     
                   writer.println(path + " >displays current path");          
                   writer.println();          
                   writer.println("File and Folder names go as following: If name < 8 long, then it's normal, or");
                   writer.println("If name > 7 long, then name is 6 long followed by ~1");
                   writer.println("File and Folder names are case sensitive.\n\tWindows is not WINDOWS is not windows");
                   writer.println();
                   else if (command.equals(dir)) {
                        writer.println("dir of: " + cmdPath);
                        if (cmdPath.equals("C:\\")) { //will have to add if's to get all
                                                      // folders               
                            for (int i = 0; i < cDrive.length; i++) {
                                 writer.println(cDrive);
                   writer.println();
                   else if (command.equals(path)) {
                   writer.println("Current path: " + cmdPath);
                   writer.println();
                   else if (command.equals(open)) {
                   String fileName = reader.readLine ("Type in file name: ");
                   for (int i = 0; i < 2; i++) {
                        if (cDrive[i].equals(fileName)){
                        fileOpen = i;     
                   if (fileOpen == 0) {               
                        writer.println("\tDear...");
                        decrypt = "decrypt";
                   else if (fileOpen == 1) {
                        writer.println("Cannot Access File: " + fileName);
                        writer.println("Ran...");               
                        writer.println("101...");          
                   else if (command.equals(decrypt)) {     
                   if (toolsDat.equals(false)) {
                   else if (toolsDat.equals("true")) {
                        String fileDecrypt = reader.readLine("Enter file name: "); /*This always appears no matter what command I type in during eecution.*/
                        if (fileDecrypt.equals("tools.dat")) {
                        cDrive[1] = "tools.exe";
                        writer.println("tools.dat has been decrypted");
                   else {
                   if (command.equals(exit)) {
                   else {
                        writer.println("Bad command\n"); //This never appears during execution, even when it is supposed to appear which is the String command doesn't match any of the defined commands.

Maybe you are looking for

  • How do you create a mailing list on an ipod?

    I will sometimes send an email on my ipod touch 4g to multiple people at the same time. But every time I do it I have to manuelly add in everybody one contact at a time. How can I create a mailing list that I can just select whenever I want to send a

  • Using a G5 for various media applications

    Hi, Some of this is relevant to various other discussions, I know, but this one allows me to group them all together. I'm planning on using my G5 as a media centre for my TV (it's fast and expandable, hard disk-wise), but since it makes an awful rack

  • Is there any way I can get an iPad to signal electronically when someone interacts with it?

    I am looking at a project where a number of iPads are in docking stations and whenever someone starts to use them, their output is routed to a video wall via an HDMI adapter. We will be using an AV control system and videowall processor but need some

  • Data Dictionary.. Help Please

    I have to create this query for my college course. I need help. I have half of the query, I think. Need another join clause in the from statement for the views, not sure what to do. Any help will be appreciated! Thank you! Create and execute a single

  • Percentage of sales for Similar members

    Hi I have one isssue in writing MDX for the below requirement..        There are two dimensions called Product and Customer.. For Product category Bikes there are 3 customers who purchased it.. Products    Customers Bikes          x,y,z Components  x