Tab from Subject field to message text with attachment

When I choose "Send to Mail Recipient as attachment" from Word, Mail creates a new message with the attachment in the message body area, and places the cursor in the "To" field.
I can enter the recipient name, then tab to the Subject field and enter a subject, but can't tab out of Subject into the message text area. Shift-Tab goes backward through the BCC, CC and "To" fields, but that won't get to the message body area either. In order to add text to the body of the message one has to reach for the mouse and actually click in the message body area.
Anyone else had this experience? Any suggestions?

Try going to the Keyboard and Mouse system preference, Keyboard Shortcuts tab, and checking "Text boxes and lists only" instead of all "All controls". This will let you use return or tab to advance to the next field including the message field.
MacBook Pro   Mac OS X (10.4.6)  

Similar Messages

  • Tab from Subject Field to Message Body Broken?

    I can't tab from the subject field to the message body. Obviously, this isn't correct behavior. Does anyone know if this is a known issue or if there is a fix?
    iMac G5 20"   Mac OS X (10.4.4)  

    This is odd. Most of the email I compose is initiated by an AppleScript and it's only in those windows where I can't tab into the message body from the subject field. If I create a new message window from within Mail, it operates as I expect. And yes, I can never tab out of the subject field in these AS created outgoing messages.
    My Mail app has always tabbed from the subject line to the message body, which is the correct behavior unless you have the OS set to tab through UI elements (AFAIK). Even in Tiger on my home computer.
    iMac G5 20"   Mac OS X (10.4.4)  

  • TS3140 I tried to order a book on iPhoto but got the following message from apple :  the file contains text with drop shadows. As a result, Apple is unable to process your order"  Does anyone know what this means and how to fix it?   Thanks!!

    I tried to order a book on iphoto but got the following message from Apple  : "the file contains text with drop shadows.  As a result Apple is unable to process your order"  Does anyone know what this means and how to fix it?  Thanks!! 

    Hello Katiebell62
    Check out the troubleshooting steps to try and resolve your issue with purchasing a book through iPhoto.
    iPhoto: Difficulty submitting a book, card, or calendar order
    http://support.apple.com/kb/TS2516
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • Number of lines in a Field of type Text with Javascript

    Hi,
    I have a form where I need to dynamically retrieve the number of lines in a Field of type Text.
    When I use getField(), I'm returned an object of type Field. I can see such properties as rect, but nothing concerning the number of lines of text in the field.
    Any idea (other than getting the Field height and dividing that by the height of a line) ?
    Regards,
    Karl.

    Hi,
    You can use below function to calculate the no of lines in the Text field dynamically.
    import mx.controls.textClasses.TextRange;
        import flash.text.TextField;
        private function calculateNoOfLines():int
          var tr2:TextRange = new TextRange(_text, true, 0,_text.text.length-1);
          tr2.text = _text.text;
          _text.invalidateSize();
          _text.invalidateDisplayList();
          _text.invalidateProperties();
          var contentTextField:TextField = _text.mx_internal::getTextField();                           
                  var nLines:int = contentTextField.numLines;
                  var lineMetrics:TextLineMetrics = _text.getLineMetrics(0);
                  // This is to calculate the total text height
                  var _textHeight:Number = lineMetrics.height * nLines;
         return nLines;    
    Call the above function in the KeyUp event of the Text field.
    Here in the above field _text is the Text field.
    <mx:Text id="_text" />
    If this post answers your question or helps, please kindly mark it as such.
    Thanks,
    Bhasker Chari

  • Using Javascript to create concatenated string from checkbox fields to one text field

    Hi. I have a PDF form that I am trying to have output to a spreadsheet that matches my database schema. Here is the dilemna:
    * I have a set of checkboxes for available languages (LANGUAGE_ENGLISH, LANGUAGE_SPANISH, etc.) When they export to spreadsheet, the value is TRUE.
    * I need to take values from checked boxes and create a single string in a text field called LANGUAGE_DISPLAY (so my UI will not need to do the concatenation). If LANGUAGE_ENGLISH is TRUE (checked), append "English, " to LANGUAGE_DISPLAY, else append "". Then, if LANGUAGE_SPANISH is TRUE (checked), append "Spanish, " to LANGUAGE_DISPLAY, else append "". And on and on
    In the LANGUAGE_DISPLAY text field properties, I am inserting a Custom Calculation script to try to achieve this, but am not getting any results. I tried teh following even trying to pull the checkboxes default values and string them together:
    box1 = this.getField("LANGUAGE_ENGLISH").value.toSrting();
    box2 = this.getField("LANGUAGE_FARSI").value.toSrting();
    box3 = this.getField("LANGUAGE_MANDARIN").value.toSrting();
    event.value = box1 + ', ' + box2 + ', ' + box3;
    I also played with this to get the desired strings output...but to no avail:
    if ( LANGUAGE_ENGLISH.rawValue == true )
    box1.rawValue = "English, ";
    if ( LANGUAGE_FARSI.rawValue == true )
    box1.rawValue = "Farsi, ";
    if ( LANGUAGE_HEBREW.rawValue == true )
    box1.rawValue = "Hebrew, ";
    event.value = box1 + box2 + box3;
    Then I tried to simplify to see one field output so used this script...still no results:
    event.value = "";
    var f = this.getField("LANGUAGE_ENGLISH");
    if ( f.isBoxChecked() == true) {
    event.value = "English";
    Couple questions:
    1) Am I on the right track with any of these scripts?
    2) Is there something else I need to do to get the script to run before running the Create Spreadsheet with Data Files comman in Acrobat to get my csv file output? Maybe there needs to be some event to get the checkbox values read by that field in order to calculate/create the string.
    Appreciate any help you can provide.

    LiveCycle Designer has shipped with all Acrobat Professional versions since the "Professional" version was introduced with version 6.
    You do not let us know want results you get in the field or the JavaScript console.
    Using:
    box1 = this.getField("LANGUAGE_ENGLISH").value.toString();
    box2 = this.getField("LANGUAGE_FARSI").value.toString();
    box3 = this.getField("LANGUAGE_MANDARIN").value.toString();
    event.value = box1 + ', ' + box2 + ', ' + box3;
    returns "Off, Off, Off", when no box is checked and returns "Yes" for the appropriate box being checked when the default value is used for the creation of the check box. So if one would make the 'Export Value' of the box from the default value of 'Yes" to the appropriate language, one would get a more desirable result. But for each unchecked box the value would appear as "Off". So one needs to change the 'Off' value to a null string. But one is still left with the separator when there is an unchecked option.
    Using the following document level function:
    // Concatenate 3 strings with separators where needed
    function fillin(s1, s2, s3, sep) {
    Purpose: concatenate up to 3 strings with an optional separator
    inputs:
    s1: required input string text or empty string
    s2: required input string text or empty string
    s3: required input string text or empty string
    sep: optional separator sting
    returns:
    sResult concatenated string
    // variable to determine how to concatenate the strings
    var test = 0; // all strings null
    var sResult; // re slut string to return
    // force any number string to a character string for input variables
    s1 = s1.toString();
    s2 = s2.toString();
    s3 = s3.toString();
    if(sep.toString() == undefined) sep = ''; // if sep is undefined force to null
    assign a binary value for each string present
    so the computed value of the strings will indicate which strings are present
    when converted to a binary value
    if (s1 != "") test += 1; // string 1 present add binary value: 001
    if (s2 != "") test += 2; // string 2 present add binary value: 010
    if (s3 != "") test += 4; // string 3 present add binary value: 100
    /* return appropriate string combination based on
    calculated test value as a binary value
    switch (test.toString(2)) {
    case "0": // no non-empty strings passed - binary 0
    sResult = "";
    break;
    case "1": // only string 1 present - binary 1
    sResult = s1;
    break;
    case "10": // only string 2 present - binary 10
    sResult = s2;
    break;
    case "11": // string 1 and 2 present - binary 10 + 1
    sResult = s1 + sep + s2;
    break;
    case "100": // only string 3 present - binary 100
    sResult = s3;
    break;
    case "101": // string 1 and 3 - binary 100 + 001
    sResult = s1 + sep + s3;
    break;
    case "110": // string 2 and 3 - binary 100 + 010
    sResult = s2 + sep + s3;
    break;
    case "111": // all 3 strings - binary 100 + 010 + 001
    sResult = s1 + sep + s2 + sep + s3;
    break;
    default: // any missed combinations
    sResult = "";
    break;
    return sResult;
    And the following cleaned up custom calculation script:
    box1 = this.getField("LANGUAGE_ENGLISH").value;
    box2 = this.getField("LANGUAGE_FARSI").value;
    box3 = this.getField("LANGUAGE_MANDARIN").value;
    if (box1 == 'Off') box1 = '';
    if (box2 == 'Off') box2 = '';
    if (box3 == 'Off') box3 = '';
    event.value = fillin(box1, box2, box3, ', ');
    One will get the list of languages with the optional separator for 2 or more language selections.

  • Importing a "texts table" from R3  to create standard texts with BAPI

    Hi,
    I'm mapping a custom structure to BAPI_SALESORDER_CHANGE.
    I need to read a table in R3 containing some text lines that I have to use to create a header text (structure ORDER_TEXT).
    Someone has already faced a similar problem? What is the best way to solve it ?
    Thanks for any help.
    Simona

    Hi,
    the best/standard way to do this is to implement it in an integration process(business process)
    inside it you can and call an RFC for instance which will read the table and return the data and then you can use the RFC response to map it (transformation step) elsewhere (to a new message). You do it all in one integration process.
    about calling (committing) the BAPI you can refer to my weblog:
    /people/michal.krawczyk2/blog/2005/05/09/how-to-call-a-bapi-asynchronously-from-xi--with-qrfc
    Regards,
    michal

  • Crash on tab from first field

    11.0.6
    Filling out some IRS forms I am finding it very consistent that if I fill in the name and tab to the Social Security Number field that Reader will crash, not quite every time, but several times today.  This not only loses any work done on the current form, but Reader is crashing as whole so partially filled other forms which have not been saved are also lost.  I checked for updates, but I seem to have the latest.
    Any idea other than, "don't tab" or "ave often"?

    Windows 7
    Given that I have been running these same drivers for a long time, have no other issues, and even this behavior is new in Acrobat Reader, I am not inclined to suspect my video drivers.
    I am much more suspicious of a combination of a new update to Reader and something about the IRS forms.

  • Why do my firefox open show my window and tabs from last time , During the surfing with my firefox if computer get shut down , I don't want to recover my we page

    Today when I was surfing on net and my computer suddenly got shut down. When I restart my computer and open my firefox it was showing me web -pages which I had been surfing. I don't want access these pages. How can I solve this problem.

    Tools > Options > General > Startup: "When Firefox Starts": "Show my home page" - "Show a blank page"

  • Email with Attachment

    Hi All
    We are successfully able to send email with attachment on sql prompt. The problem is when we are trying to send the attachment through Application Express after submit process its showing the attached file but without its content.
    We hav created two such processes. Process one attachs the file as below
    declare
    file_id number;
    begin
    delete from dumy_file;
    select nvl(max(id),0)+1 into file_id from dumy_file;
    insert into dumy_file(id,name,file_obj_id,mime_type,blob_content)
    select file_id, filename, id ,mime_type,blob_content
    from htmldb_application_files where name = :P2_FILE;
    :P2_X := file_id;
    end;
    And process two send the email with attachment:
    declare
    file_name varchar2(100);
    mim_typ varchar2(50);
    begin
    select name into file_name from dumy_file where id = :P2_X;
    select MIME_TYPE into mim_typ from dumy_file where id = :P2_X;
    email_files(from_name => 'Aashu' ,
    to_names => :P2_EMAIL,
    subject => 'A test from APEX',
    message => 'A test message from APEX',
    html_message => 'A test message from APEX',
    filename1 => file_name,
    filetype1 => mim_typ);
    end;
    Here dumy_file is a custom table.
    Any help would be highly appreciated.
    Thanks
    saurabh

    [rem Purpose: Sends e-mail (text and/or html, either as a string or from a file)
    rem to one or more recipients (including cc and/or bcc recipients), along with
    rem up to 3 file attachments (text and/or binary; default is text/plain), using
    rem the UTL_SMTP package to send the e-mail, the DBMS_LOB package to read
    rem binary file attachments, and the UTL_ENCODE package to convert the binary
    rem attachments to BASE64 for character string (non-binary) transmission.
    rem BE AWARE THAT A COMMIT MAY BE DONE BY THIS ROUTINE (see HOWEVER... below).
    rem
    rem The complete parameter list for the email_files procedure is shown below:
    rem    from_name - name and e-mail address to put in the From field
    rem    to_names - names and e-mail addresses for the To field (separated by
    rem       commas or semicolons)
    rem    subject - text string for Subject field
    rem    message - text string or text file name for Message, if any
    rem    html_message - html string or html file name for Message, if any
    rem    cc_names - names and e-mail addresses for the Cc field, if any
    rem       (separated by commas or semicolons)
    rem    bcc_names - names and e-mail addresses for the Bcc field, if any
    rem       (separated by commas or semicolons)
    rem    filename1 - first file pathname to attach, if any
    rem    filetype1 - mime type of first file (defaults to 'text/plain')
    rem    filename2 - second file pathname to attach, if any
    rem    filetype2 - mime type of second file (defaults to 'text/plain')
    rem    filename3 - third file pathname to attach, if any
    rem    filetype3 - mime type of third file (defaults to 'text/plain')
    rem
    rem Sample names and e-mail addresses are: srea (attaches @<localhost> or
    rem @<mail domain>), [email protected], <[email protected]>, Steve Rea <[email protected]>,
    rem and "Steve Rea" <[email protected]> (e-mail addresses must be valid - validity
    rem checking is not done on them).
    rem
    rem A sample call in PL/SQL is shown below, which sends a text and html message,
    rem plus a text file and two binary files (note: the slash after "end;" must be
    rem the first character on it's line):
    rem
    rem    begin
    rem       email_files(from_name    => 'oracle' ,
    rem                   to_names     => '[email protected]',
    rem                   subject      => 'A test',
    rem                   message      => 'A test message',
    rem                   html_message => '<h2>A <u><i>test</i></u> message</h2>',
    rem                   filename1    => '/tmp/web_ptrbdca.txt',
    rem                   filename2    => '/tmp/password_standards.pdf',
    rem                   filetype2    => 'application/pdf',
    rem                   filename3    => '/tmp/wb703.jpg',
    rem                   filetype3    => 'image/jpeg');
    rem    end;
    rem    /
    rem
    rem If the message or html_message string has a file name in it (starting with
    rem a forward slash for unix or starting with '<drive letter>:\' or '\\' for
    rem Windows/DOS), the text or html file is copied into the e-mail as the message
    rem or html message; otherwise, the message or html_message is copied into the
    rem e-mail as-is.
    rem
    rem Attachment file types (mime types) that I've tested include:
    rem    text/plain, text/html, image/jpeg, image/gif, application/pdf,
    rem    application/msword
    rem A list of mime types can be seen at:
    rem    http://www.webmaster-toolkit.com/mime-types.shtml
    rem If the mime type does not begin with "text", it is assumed to be a binary
    rem file that will be encoded as base64 before transmission.
    rem
    rem This was derived from several sources, including:
    rem    Dave Wotton (Cambridge UK) - mail_files.sql at
    rem       http://home.clara.net/dwotton/dba/oracle_smtp.htm
    rem    Oracle Technology Network - maildemo.sql (demo_mail) at
    rem       http://www.oracle.com/technology/sample_code/tech/pl_sql/htdocs/Utl_Smtp_Sample.html
    rem    Akadia's "Read a file word by word using DBMS_LOB" Tip at
    rem       http://www.akadia.com/services/read_file_with_dbms_lob.html
    rem    Tom Kyte of Oracle's AskTom site (http://AskTom.oracle.com) -
    rem       answer to "File Exists which is not a BFILE" and others.
    rem
    rem NOTE: The user running this must have "create any directory" and "drop any
    rem directory" privileges ("create directory" was introduced in Oracle 9iR2),
    rem which must be granted from a system or dba account, such as:
    rem    grant create any directory to scott;
    rem    grant drop any directory to scott;
    rem  then:
    rem    connect / as sysdba
    rem    grant select on dba_directories to scott;
    rem or, for everyone to have directory privileges:
    rem    grant create any directory to public;
    rem    grant drop any directory to public;
    rem  then:
    rem    connect / as sysdba
    rem    grant select on dba_directories to public;
    rem Any file in any directory accessible to the user can be attached (not just
    rem the directories listed for the utl_file_dir parameter in the init.ora file).
    rem HOWEVER, if you are using this to send e-mail's with attached files (or
    rem reading the message text or message html from a file) from a trigger or
    rem from some other SQL that you can't or don't want to have a commit done,
    rem you will first need to create an Oracle directory entry for the directory
    rem containing the attached files and grant read access to it to public, such
    rem as:
    rem    create directory CESDIR_COMMON as '/home/common';
    rem    grant read on directory CESDIR_COMMON to public;
    rem
    rem You may also want to create a public synonym for this procedure, from the
    rem procedure's owner:
    rem    create or replace public synonym email_files for email_files;
    rem    grant execute on email_files to public;
    rem
    rem FYI: I tried using the utl_file package to read binary files:
    rem    utl_file.get_raw(v_file_handle,data,57);
    rem but got "ORA-29284: file read error" on .pdf files, so, I switched to use
    rem the dbms_lob package to read binary files:
    rem    dbms_lob.read(v_bfile_handle,read_bytes,v_pos,data);
    rem
    rem Author: Stephen Rea <[email protected]>
    rem    University of Arkansas Cooperative Extension Service
    rem Initial release: 12/21/04
    rem
    rem Updates:
    rem 1/31/05 - Fixed for triggers and other SQL that can't have a commit by
    rem    checking for and using already-defined Oracle directories ("create
    rem    directory" is a DDL statement that does a commit).
    rem 9/23/05 - Put exception handler in to handle the SMTP server being
    rem    down or unavailable.  (Solution from Ed Siegle at Swarthmore.)
    rem 7/14/06 - Additional changes to detect and handle Windows/DOS file names
    rem    (second and third characters ':\' for paths with drive letters, or
    rem    first and second characters '\\' for UNC paths).
    rem 8/25/06 - Some SMTP interfaces may require angle brackets (<>) around the
    rem    e-mail addresses, so, add them before returning results from get_address.
    rem    Also, they may not attach the host if relayed through a non-localhost,
    rem    so, attach the mail domain part (last two components) of the relay host
    rem    to the address if the mail domain is not specified in the address.
    rem
    create or replace procedure email_files(from_name varchar2,
                          to_names varchar2,
                          subject varchar2,
                          message varchar2 default null,
                          html_message varchar2 default null,
                          cc_names varchar2 default null,
                          bcc_names 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')
    is
       -- Change the SMTP host name and port number below to your own values,
       -- if not localhost on port 25:
       smtp_host          varchar2(256) := 'localhost';
       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, i + 1);
             i := instr(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 := '<' || 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;
          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;
          raise_application_error(-20000,
             'Failed to send mail: Error code ' || my_code || ': ' || my_errm);
    end;
    Above is the code as required by you.In my original mail I have explained that how I'm calling this procedure.
    Thanks
    Saurabh

  • Where to Configure Service Ticket "Reason" & "Subject" field with new value

    Hi Friends - I am working on IC Webclient Service Ticket. I want to Configure the "Reason" field as well as the "Subject" field in Service Ticket with new Values as per our requirement.
    I could not find any Configuration object for the above mentioned customizing in the CRM > SPRO.
    Can you pls guide me where I can configure the same?
    Thanks in advance and warm regards
    Purnendu

    Hi Gert - Thanks a lot for your reply.
    I am using CRM 5.0. I just forgot that Categorization profile can be used for the same.
    I have configured the categorization profile for the same and its working fine.
    One more thing -
    I want to create an Appointment with Customer for problem resolution at the Customer Site. I want to assign Resorces to the Appointment so that the responsible resource is notified and sent to the Customer Site for Visit.
    Can you pls guide me on the same?
    Cheers
    Purnendu
    P.S. - Full reward points awarded.

  • How to highlight text with Adobe Reader XI?

    email [email protected]

    Thanks. The PDF file was made from a web site article and I guess this is the same as scanned as I cannot highlight.  The cursor changes but cannot highlight what I want.
    I was able to add text and I did this in Red and will ask the VA to read under the sections marked in Red.
    Thanks,
    Vernon Pobanz
          From: ~graffiti <[email protected]>
    To: vernon pobang <[email protected]>
    Sent: Tuesday, October 7, 2014 11:57 AM
    Subject:  How to highlight text with Adobe Reader XI?
    How to highlight text with Adobe Reader XI?
    created by ~graffiti in Adobe Reader - View the full discussionUse the highlight tool under Comment>Annotations. This will only work if the pdf isn't a scanned image. If that is the case, there is no text to highlight. Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6800192#6800192 Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:  To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.  Start a new discussion in Adobe Reader by email or at Adobe Community For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Email from Plsql with attachment

    Hello Masters,
    I have a requirement where system needs to send the email with attachment. In my case I already have a file which needs to be send as attachment and stored in a directory (on database server).
    Directory is created using below commands;
    CREATE OR REPLACE DIRECTORY TEST_DIR AS 'c:\myfiles';
    GRANT READ, WRITE ON DIRECTORY TEST_DIR TO USER_SCHEMA;
    I just want to send mail with that file as attachment, basically there should be something where I should specify the path and it gets attached to the email.
    Hope I have made clear. Kindly help me out for same.
    Regards,

    Thanks FrankKulash/Hoek,
    I tried UTL_MAIL package, but couldn't get through. Below is what I tried;
    DECLARE
      V_DIR    VARCHAR2 (30) := 'TEST_DIR';
      V_FILE  VARCHAR2 (30) := 'myfile1.xlsx';
    BEGIN
      SYS.UTL_MAIL.SEND_ATTACH_RAW (
          SENDER          => '[email protected]',
          RECIPIENTS      => '[email protected]',
          MESSAGE        => '<HTML><BODY>See attachment</BODY></HTML>',
          SUBJECT        => 'Oracle Notes',
          MIME_TYPE      => 'text/html',
          ATTACHMENT      => V_DIR || '\' || V_FILE,
          ATT_INLINE      => FALSE,
          ATT_MIME_TYPE  => 'text/plain',
          ATT_FILENAME    => V_FILE);
    END;
    After executing above, I get error like;
    ORA-06502: PL/SQL: numeric or value error: hex to raw conversion error
    ORA-06512: at line 5

  • Mail won't save info in Subject field in Drafts folder

    Hi,
    For some reason, Mail won't save what I type into the Subject field for messages in the Drafts folder.
    Why?
    I can save in any other field for any message in the Drafts folder... This has been going on for awhile, both with Mavericks and Yosemite though it worked earlier with Mavericks.
    Cheers,
    John L
    OSX 10.10.1, MacBook Pro, Mail 8.1.
    (Apple hasn't updated the list of OS's yet so it says 10.10 below...)

    Sounds like a limit of your ISP, as it's trying to put it back on the mailserver, which may not accept such a large file.

  • Can i concatenate or add to the existing header text with new text  logic

    Hi,
    Is it possible to concatenate additional text into an existing text type? For example, would it be possible to write new logic where if certain conditions are met, the text in theheader detailswould be added to the existing Preparation Header text?
    I have on e delivery , i want to add the header text with with  date field (concatenate header text with date (godds issue date)in a single text
    please let me know.

    Venkata
    Unfortunately I am not aware of any such standard FM, I searched for it during my first reply itself, but no benefit.
    You can develop one if no std FM is available for this with the help of your technical g uy.

  • Tool to test Webservices using SwA (Soap with Attachements)

    Hi All,
    I generally use the took xmlspy to test any webservice.
    But now i am working with a webservice that is using SOAP with Attachemtns.
    it seems we cannot use xmlspy to test/invoke webservices that use soap with attachements.
    is there any tool by which we can send/receive soap message along with attachements to and from webservices.

    Hi,
    Have you tried SoapUI?
    The standard (free) version & SoapUI Pro both support soap with attachments. Try it out & see if it works for you. SoapUI is proving to be one of the best tools for testing web services.
    Regards, Trevor

Maybe you are looking for

  • 2nd time Loop error in rejection reason/changes req

    Hello experts, I have created an wf with loop step. In that loop branch,m displaying a doc in approvers inbox, then i have put a decision step with 2 button - 'Approve' and 'Changes req'. For button Changes req, loop will continue.ok In tht changes r

  • Sale registers and purchase registers

    can anybody help me to know wat do u mean by sales registers and purchase registers.im new to abap and is struggling to understand the flow of there purchase orders and sale orders  and registers. im writing a report program where im printing  both s

  • How to get the opposite(not true) of a pattern using Regexp_replace

    Hi, In the following simple sql query....all occurences of 'a' are replaced by the next character... SQL> select regexp_replace('Palaio Faliro','[a]{1}') from dual; REGEXP_REPLACE('PALAIOFALIRO', Plio FliroIs it possible to get the opposite of this p

  • Adobe AIR 'damaged'

    I'm trying to use DW CS5 (11.0 Build 4964) for Mac OSX 10.5.8 for the first time. The first thing I did was to go to the 'Help' menu and select 'Dreamweave help' [F1]. I get the following error message: This installation of this application is damage

  • Can you hide a dimension value but display one of it's attributes?

    Can you hide a dimension value but display one of it's attributes in a query output?