Sending text files as attachments in mails

Hi Experts,
I want to send some content in a text file as an attachment in the mail. Can anybody provide me the sample code for this.
points guaranteed.
thanks
sanakr

HI
Check this one
first create a Include report with the following coding
*&  Include           ZPA1_INCLFOR_MAIL                                *
* Data
DATA: docdata LIKE sodocchgi1,
objpack LIKE sopcklsti1 OCCURS 1 WITH HEADER LINE,
objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE,
objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE,
objbin LIKE solisti1 OCCURS 10 WITH HEADER LINE,
objhex LIKE solix OCCURS 10 WITH HEADER LINE,
reclist LIKE somlreci1 OCCURS 1 WITH HEADER LINE.
DATA: tab_lines TYPE i,
doc_size TYPE i,
att_type LIKE soodk-objtp.
DATA: listobject LIKE abaplist OCCURS 1 WITH HEADER LINE.
* FORM
FORM ml_customize USING objname objdesc.
*----------- Clear Variables
CLEAR docdata.
REFRESH objpack.
CLEAR objpack.
REFRESH objhead.
REFRESH objtxt.
CLEAR objtxt.
REFRESH objbin.
CLEAR objbin.
REFRESH objhex.
CLEAR objhex.
REFRESH reclist.
CLEAR reclist.
REFRESH listobject.
CLEAR listobject.
CLEAR tab_lines.
CLEAR doc_size.
CLEAR att_type.
*--------- Set Variables
docdata-obj_name = objname.
docdata-obj_descr = objdesc.
ENDFORM. "ml_customize
* FORM
FORM ml_addrecp USING preceiver prec_type.
CLEAR reclist.
reclist-receiver = preceiver.
reclist-rec_type = prec_type.
APPEND reclist.
ENDFORM. "ml_customize
* FORM
FORM ml_addtxt USING ptxt.
CLEAR objtxt.
objtxt = ptxt.
APPEND objtxt.
ENDFORM. "ml_customize
* FORM
FORM ml_prepare USING bypassmemory whatatt_type whatname.
IF bypassmemory = ''.
*--------- Fetch List From Memory
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = listobject
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
MESSAGE ID '61' TYPE 'E' NUMBER '731'
WITH 'LIST_FROM_MEMORY'.
ENDIF.
CALL FUNCTION 'TABLE_COMPRESS'
* IMPORTING
* COMPRESSED_SIZE =
TABLES
in = listobject
out = objbin
EXCEPTIONS
OTHERS = 1
IF sy-subrc <> 0.
MESSAGE ID '61' TYPE 'E' NUMBER '731'
WITH 'TABLE_COMPRESS'.
ENDIF.
ENDIF.
* Header Data
* Already Done Thru FM
* Main Text
* Already Done Thru FM
* Packing Info For Text Data
DESCRIBE TABLE objtxt LINES tab_lines.
READ TABLE objtxt INDEX tab_lines.
docdata-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
CLEAR objpack-transf_bin.
objpack-head_start = 1.
objpack-head_num = 0.
objpack-body_start = 1.
objpack-body_num = tab_lines.
objpack-doc_type = 'TXT'.
APPEND objpack.
* Packing Info Attachment
att_type = whatatt_type..
DESCRIBE TABLE objbin LINES tab_lines.
READ TABLE objbin INDEX tab_lines.
objpack-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objbin ).
objpack-transf_bin = 'X'.
objpack-head_start = 1.
objpack-head_num = 0.
objpack-body_start = 1.
objpack-body_num = tab_lines.
objpack-doc_type = att_type.
objpack-obj_name = 'ATTACHMENT'.
objpack-obj_descr = whatname.
APPEND objpack.
* Receiver List
* Already done thru fm
ENDFORM. "ml_prepare
* FORM
FORM ml_dosend.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = docdata
put_in_outbox = 'X'
commit_work = 'X' "used from rel. 6.10
* IMPORTING
* SENT_TO_ALL =
* NEW_OBJECT_ID =
TABLES
packing_list = objpack
object_header = objhead
contents_bin = objbin
contents_txt = objtxt
* CONTENTS_HEX = objhex
* OBJECT_PARA =
* object_parb =
receivers = reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8
IF sy-subrc <> 0.
MESSAGE ID 'SO' TYPE 'S' NUMBER '023'
WITH docdata-obj_name.
ENDIF.
ENDFORM. "ml_customize
* FORM
FORM ml_spooltopdf USING whatspoolid.
DATA : pdf LIKE tline OCCURS 0 WITH HEADER LINE.
*-------------- Call Function
CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = whatspoolid
TABLES
pdf = pdf
EXCEPTIONS
err_no_otf_spooljob = 1
OTHERS = 12.
*------------- Convert
PERFORM doconv TABLES pdf objbin.
ENDFORM. "ml_spooltopdf
* FORM
FORM doconv TABLES
mypdf STRUCTURE tline
outbin STRUCTURE solisti1.
*-------- Data
DATA : pos TYPE i.
DATA : len TYPE i.
*------------ Loop And Put Data
LOOP AT mypdf.
pos = 255 - len.
IF pos > 134. "length of pdf_table
pos = 134.
ENDIF.
outbin+len = mypdf(pos).
len = len + pos.
IF len = 255. "length of out (contents_bin)
APPEND outbin.
CLEAR: outbin, len.
IF pos < 134.
outbin = mypdf+pos.
len = 134 - pos.
ENDIF.
ENDIF.
ENDLOOP.
IF len > 0.
APPEND outbin.
ENDIF.
ENDFORM. "doconv
Then include that report in the following report and copy the same code and paste it there
*& Report  ZPA_TEMP147                                                 *
REPORT  ZPA_TEMP147                             .
INCLUDE zpa1_inclfor_mail.
* DATA
DATA : itab LIKE tline OCCURS 0 WITH HEADER LINE.
DATA : file_name TYPE string.
data : path like PCFILE-PATH.
data : extension(5) type c.
data : name(100) type c.
* SELECTION SCREEN
PARAMETERS : receiver TYPE somlreci1-receiver lower case.
PARAMETERS : p_file LIKE rlgrap-filename
OBLIGATORY.
* AT SELECTION SCREEN
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
CLEAR p_file.
CALL FUNCTION 'F4_FILENAME'
IMPORTING
file_name = p_file.
* START-OF-SELECTION
START-OF-SELECTION.
PERFORM ml_customize USING 'Tst' 'Testing'.
PERFORM ml_addrecp USING receiver 'U'.
PERFORM upl.
PERFORM doconv TABLES itab objbin.
PERFORM ml_prepare USING 'X' extension name.
PERFORM ml_dosend.
SUBMIT rsconn01
WITH mode EQ 'INT'
AND RETURN.
* FORM
FORM upl.
file_name = p_file.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = file_name
filetype = 'BIN'
TABLES
data_tab = itab
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17.
path = file_name.
CALL FUNCTION 'PC_SPLIT_COMPLETE_FILENAME'
EXPORTING
complete_filename = path
* CHECK_DOS_FORMAT =
IMPORTING
* DRIVE =
EXTENSION = extension
NAME = name
* NAME_WITH_EXT =
* PATH =
EXCEPTIONS
INVALID_DRIVE = 1
INVALID_EXTENSION = 2
INVALID_NAME = 3
INVALID_PATH = 4
OTHERS = 5
ENDFORM. "upl
Regards
Pavan

Similar Messages

  • Question on sending JPEG Files as attachments in MAIL

    It seems that no matter what method I try for attaching an actual JPEG file to an email in Mail, I end up sending the image, not the actual file. Is there a trick to doing this I have not found yet, or does Mail under Leopard only send images? Document and Spreadsheet files work just fine, it's only the image files that are a problem.

    Do not confuse View in Place with embedding. The image files that View in Place as you Compose and Send are in fact true attachments. However, it is best to send to some PC users only in Plain Text when sending attachments.
    Ernie

  • How to send audio files as attachments?There is no attachment option in mail and no share option in MUSIC

    How to send audio files as attachments?There is no attachment option in mail and no share option in MUSIC

    i have some voice samples in Music file .how to share those files? or plz tel me where to store the voice samples

  • How to send Zip files as attachments !! Very urgent, Please help!

    I am sending PDF files as attachments using java mail (it works fine). But now my requirement is to zip the PDFs and send them as attachments instead of actual PDF's. But i don't know how to achieve that. does java mail API support zip attachment facilities? I have looked in activation API also, but i couldn't find anything helpful. even i searched the forums, but no clue. Please, anybody help me about this, it's very urgent.
    thanks
    sri

    Check the first "if". If I specify an attachment, then a myme multipart doby is created: one for text and the other for the attachemnt I use this myme ovbject only for attachemnts, because some ISPs have problems and report error in email format if the attachemnet is missing and it contains only text and no attachment.
    static public void send(String to,
         String from,
         String host,
         String smtpPort,
         String subject,
         String body,
         String fileAttachment,
         String attachmentMimeType,
         String username,
         String password,
         String debug)
    throws Exception
         // create some properties and get the default Session
         Properties props = new Properties();
         props.put("mail.smtp.host", host);
         props.put("mail.smtp.port", smtpPort);
         props.put("mail.smtp.timeout","5000");
         props.put("mail.debug", debug);
         Session session = null;
         if (username != null && password != null)
              props.put("mail.smtp.auth", "true");
              MyPasswordAuthenticator auth = new MyPasswordAuthenticator(username, password);
              session = Session.getDefaultInstance(props,auth);
         else
              session = Session.getDefaultInstance(props, null);
         //session.setDebug(true);
         // create a message
         MimeMessage message = new MimeMessage(session);
         message.setFrom(new InternetAddress(from));
         InternetAddress[] address = InternetAddress.parse(to, false);
         message.setRecipients(Message.RecipientType.TO, address);
         message.setSubject(subject);
         message.setSentDate(new Date());
         // create the message part
         if ( fileAttachment != null && fileAttachment != "NO" )
              MimeBodyPart messageBodyPart = new MimeBodyPart();
              //fill message
              messageBodyPart.setText(body);
              //Multipart multipart = new MimeMultipart();
              Multipart multipart = new MimeMultipart("alternative");
              multipart.addBodyPart(messageBodyPart);
              // Part two is attachment
              System.out.println("----->fileAttachment DISTINTO de NULL");
              messageBodyPart = new MimeBodyPart();
              FileDataSource fds = new FileDataSource(fileAttachment);
              messageBodyPart.setDataHandler( new DataHandler(fds));
              messageBodyPart.setFileName(fileAttachment); //<-- El archivo atachado.
              multipart.addBodyPart(messageBodyPart);
              //EN DESARROLLO el envio de attachment!!          
              // Put parts in message
              message.setContent(multipart);
         } else { //Envio es solamente TEXTO
              message.setText(body);
         // send the message
         Transport.send(message);
    Regards,
    Vladimir

  • How can one send email-sized photo files as attachments in Mail, without the photos appearing within the email?s

    How can one send email-sized photo files as attachments in Apple Mail, without the photos appearing in the body of the email?  If it can be done, it's not at all obvious, at least not to me.  Thanks for any help you can provide.

    The "View as icon" option shrinks the photo to an icon in the sender's Apple Mail, but how it appears to the recipient varies dependingy on what e-mail client he/she uses.
    Using Apple Mail 5.0 (the Lion version) at both ends, the sender can use the "View as icon" option to shrink his view of the photo to an icon, but the recipient also using Apple Mail 5.0 still sees the full photo in line with the message text. The recipient can then use the "View as icon" option to shrink it to an icon, but I don't think that's not what jackofarabia is looking for.
    As far as I know there is no way in the current Apple Mail to do what jackofarabia wants. There should be, but there isn't.

  • Problem to send text file to mail from ALV report

    Hi Friends,
    I have a problem in my ALV report with text file.  As per the requirment, when we execute the program then text attachment should go to the particual email.
    When i am using file type as XLS i am getting attachment with all 4 recoreds( input for 4 records) in mail. But all 4 records are coming in SAME ROW. It should come 4 records in 4 rows. when I use file type as TXT and separated by pipe symble in code, it is showing only one recored for same above input.
    When i use file type as XLS and click the attachment in email, it will triggire one popul with three options like SAVE, OPEN, CANCEL.
    But when i click on text file attachment, it is directly showing ony one recored.
    Please correct me on this.
    my code is
    PERFORM send_file_as_email_attachment
                                   tables i_message
                                          i_attach
                                    using v_email
                                          'User last log on details'
                                          'XLS'
                                          'User log on list'
                                 changing v_error
                                          v_reciever.
    FORM send_file_as_email_attachment tables pi_message
                                              pi_attach
                                        using p_email
                                              p_mtitle
                                              p_format
                                              p_filename
                                              p_attdescription
                                              p_sender_address
                                              p_sender_addres_type
                                     changing p_error
                                              p_reciever.
      DATA: l_error    TYPE sy-subrc,
              l_reciever TYPE sy-subrc,
              l_mtitle LIKE sodocchgi1-obj_descr,
              l_email LIKE  somlreci1-receiver,
              l_format TYPE  so_obj_tp ,
              l_attdescription TYPE  so_obj_nam ,
              l_attfilename TYPE  so_obj_des ,
              l_sender_address LIKE  soextreci1-receiver,
              l_sender_address_type LIKE  soextreci1-adr_typ,
              l_receiver LIKE  sy-subrc.
      l_email   = p_email.
      l_mtitle = p_mtitle.
      l_format              = p_format.
      l_attdescription      = p_attdescription.
      l_attfilename         = p_filename.
      l_sender_address      = p_sender_address.
      l_sender_address_type = p_sender_addres_type.
    Fill the document data.
      v_doc_data-doc_size = 1.
    Populate the subject/generic message attributes
      v_doc_data-obj_langu = sy-langu.
      v_doc_data-obj_name  = 'SAPRPT'.
      v_doc_data-obj_descr = l_mtitle .
      v_doc_data-sensitivty = 'F'.
    Fill the document data and get size of attachment
      CLEAR v_doc_data.
      READ TABLE i_attach INDEX v_cnt.
      v_doc_data-doc_size =
         ( v_cnt - 1 ) * 255 + STRLEN( i_attach ).
      v_doc_data-obj_langu  = sy-langu.
      v_doc_data-obj_name   = 'SAPRPT'.
      v_doc_data-obj_descr  = l_mtitle.
      v_doc_data-sensitivty = 'F'.
      CLEAR i_attachment.
      REFRESH i_attachment.
      i_attachment[] = pi_attach[].
    Describe the body of the message
      CLEAR i_packing_list.
      REFRESH i_packing_list.
      i_packing_list-transf_bin = space.
      i_packing_list-head_start = 1.
      i_packing_list-head_num = 0.
      i_packing_list-body_start = 1.
      DESCRIBE TABLE i_message LINES i_packing_list-body_num.
      i_packing_list-doc_type = 'RAW'.
      APPEND i_packing_list.
    Create attachment notification
      i_packing_list-transf_bin = 'X'.
      i_packing_list-head_start = 1.
      i_packing_list-head_num   = 1.
      i_packing_list-body_start = 1.
      DESCRIBE TABLE i_attachment LINES i_packing_list-body_num.
      i_packing_list-doc_type   =  l_format.
      i_packing_list-obj_descr  =  l_attdescription.
      i_packing_list-obj_name   =  l_attfilename.
      i_packing_list-doc_size   =  i_packing_list-body_num * 255.
      APPEND i_packing_list.
    Add the recipients email address
      CLEAR i_receivers.
      REFRESH i_receivers.
      i_receivers-receiver = l_email.
      i_receivers-rec_type = 'U'.
      i_receivers-com_type = 'INT'.
      i_receivers-notif_del = 'X'.
      i_receivers-notif_ndel = 'X'.
      APPEND i_receivers.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
           EXPORTING
                document_data              = v_doc_data
                put_in_outbox              = 'X'
                sender_address             = l_sender_address
                sender_address_type        = l_sender_address_type
                commit_work                = 'X'
           IMPORTING
                sent_to_all                = v_sent_all
           TABLES
                packing_list               = i_packing_list
                contents_bin               = i_attachment[]
                contents_txt               = i_message
                receivers                  = i_receivers
           EXCEPTIONS
                too_many_receivers         = 1
                document_not_sent          = 2
                document_type_not_exist    = 3
                operation_no_authorization = 4
                parameter_error            = 5
                x_error                    = 6
                enqueue_error              = 7
                OTHERS                     = 8.
    Populate zerror return code
      l_error = sy-subrc.

    Hi,
    declare the following constant in u r program and concatenate at the end of each and every record in your internal table.
    CONSTANTS : LV_CRLF TYPE C VALUE CL_ABAP_CHAR_UTILITIES=>CR_LF.
    for eg.
    if u internal table has values like
    row1
    row2
    row3
    concatenate the 1st record lv_crlf into first record.
    conactenate second record lv_crlf into second record.
    concatenate third record lv_crlf into third record.
    now attach  the internal table to the FM which u use for sending email. Each and every row will come in new line. The LV_CRLF will hold nothing but a line feed character (#).
    Hope it will solve u r problem
    Regards,
    Rose.

  • Sending Text File through Mail Adapter

    Hi Group,
    I need to send my Target as Mail attachment in the Text File?Can any body Suggest

    Hi swabap,
         You need to use PayloadSwapBean module in the Mail receiver adapter. This module will send the payload as an attchment to the mail server.
    Check the following link
    <a href="/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure:///people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    Regards,
    Akshay

  • Text File Attachment in SAP Mail ECC 6.0

    Hi,
    Is it possible to use a text format 'TXT' on the Function Module "O_NEW_DOCUMENT_ATT_SEND_API1" in ECC 6.0? Because I've seen alot of examples in the forum that are using 'XLS' Format attachments.
    I made a program that have been attaching text fomat file in the SAP mail. It is working fine in other SAP boxes but in our current box, as I tested it, opening the text attachment, the result is a file text now contained a long string (max1022 char) instead of a file that is tab-delimited. What would you suggest on this?

    yes u can attach txt file.refer to the code below!
    data: itcpo like itcpo,
          tab_lines like sy-tabix.
    Variables for EMAIL functionality
    data: maildata   like sodocchgi1.
    data: mailpack   like sopcklsti1 occurs 2 with header line.
    data: mailhead   like solisti1 occurs 1 with header line.
    data: mailbin    like solisti1 occurs 10 with header line.
    data: mailtxt    like solisti1 occurs 10 with header line.
    data: mailrec    like somlrec90 occurs 0  with header line.
    data: solisti1   like solisti1 occurs 0 with header line.
    perform send_form_via_email.
          FORM  SEND_FORM_VIA_EMAIL                                      *
    form  send_form_via_email.
      clear:    maildata, mailtxt, mailbin, mailpack, mailhead, mailrec.
      refresh:  mailtxt, mailbin, mailpack, mailhead, mailrec.
    Creation of the document to be sent File Name
      maildata-obj_name = 'TEST'.
    Mail Subject
      maildata-obj_descr = 'Subject'.
    Mail Contents
      mailtxt-line = 'Here is your file'.
      append mailtxt.
    Prepare Packing List
      perform prepare_packing_list.
    Set recipient - email address here!!!
      mailrec-receiver = [email protected]'.
      mailrec-rec_type  = 'U'.
      append mailrec.
    Sending the document
      call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
           exporting
                document_data              = maildata
                put_in_outbox              = ' '
           tables
                packing_list               = mailpack
                object_header              = mailhead
                contents_bin               = mailbin
                contents_txt               = mailtxt
                receivers                  = mailrec
           exceptions
                too_many_receivers         = 1
                document_not_sent          = 2
                operation_no_authorization = 4
                others                     = 99.
    endform.
         Form  PREPARE_PACKING_LIST
    form prepare_packing_list.
      clear:    mailpack, mailbin, mailhead.
      refresh:  mailpack, mailbin, mailhead.
      describe table mailtxt lines tab_lines.
      read table mailtxt index tab_lines.
      maildata-doc_size = ( tab_lines - 1 ) * 255 + strlen( mailtxt ).
    Creation of the entry for the compressed document
      clear mailpack-transf_bin.
      mailpack-head_start = 1.
      mailpack-head_num = 0.
      mailpack-body_start = 1.
      mailpack-body_num = tab_lines.
      mailpack-doc_type = 'RAW'.
      append mailpack.
      mailhead = 'TEST.TXT'.
      append mailhead.
    File 1
      mailbin = 'This is file 1'.
      append mailbin.
      describe table mailbin lines tab_lines.
      mailpack-transf_bin = 'X'.
      mailpack-head_start = 1.
      mailpack-head_num = 1.
      mailpack-body_start = 1.
      mailpack-body_num = tab_lines.
      mailpack-doc_type = 'TXT'.
      mailpack-obj_name = 'TEST1'.
      mailpack-obj_descr = 'Subject'.
      mailpack-doc_size = tab_lines * 255.
      append mailpack.
    *File 2
      mailbin = 'This is file 2'.
      append mailbin.
      data: start type i.
      data: end type i.
      start = tab_lines + 1.
      describe table mailbin lines end.
      mailpack-transf_bin = 'X'.
      mailpack-head_start = 1.
      mailpack-head_num = 1.
      mailpack-body_start = start.
      mailpack-body_num = end.
      mailpack-doc_type = 'TXT'.
      mailpack-obj_name = 'TEST2'.
      mailpack-obj_descr = 'Subject'.
      mailpack-doc_size = tab_lines * 255.
      append mailpack.
    endform.
    regards,
    madhu

  • BCS to Send Text File

    Hi experts,
    I developed a custom program to send a text file using BCS. When I open text file using text pad, some special characters are displaying at the beginning of the sentence.
    ÿþ are displayed at the beginning of the sentence. How can I remove this?
    Thanks,
    Marc

    Hi,
    Related BCS class, Check these example programs how attachments are being generated.
    BCS_EXAMPLE_1
    BCS_EXAMPLE_2
    BCS_EXAMPLE_3
    BCS_EXAMPLE_4
    BCS_EXAMPLE_5 - BCS Use, Example 5 (Winword Attachment)
    BCS_EXAMPLE_6 - Send PDF Form by E-Mail
    BCS_EXAMPLE_7 -     BCS: Send E-Mail with Self-Created Excel Attachment (Example)
    Thanks
    Venkat.O

  • Send XML File as attachement in Mail Receiver adapter

    Hi all,
    i have the following scenario. i would like to read an XML file from the file system and send this file as an attachement of a mail to a mail receiver specified in this file.
    i would like to fill the payload of the mail with some information from the xml file and in addition i would like to send the complete xml file as an mail attachement.
    can anybody tell me, how the mail receiver adater needs to be specified ?
    best regards,
    martin

    Hey,
    you can go for dynamic configuration of mail adapter.
    In this you need to import a mail structure.
    mail details such as to, from, subject and content of the mail are a part of the structure.
    In your ID check the Use Mail package and also keep attachments.
    Now you can give your details in mapping itself.
    whatever you want to map in the content of the mail, map it in the content field.
    also your file will behave as an attachment.
    refer to this blog.
    this is the mail structure. Import it as extenal definitions.
    <?xml version="1.0" encoding="utf-8" ?>
    <!--
    SAP takes no position regarding the validity or scope of any intellectual property or
    other rights that might be claimed to pertain to the implementation or use of the
    technology described in this document or the extent to which any license under such
    rights might or might not be available; neither does it represent that it has made any
    effort to identify any such rights.
    Copyright © SAP 2003-2004. All Rights Reserved.
    This document and translations of it may be copied and furnished to others, and derivative
    works that comment on or otherwise explain it or assist in its implementation may be
    prepared, copied, published and distributed, in whole or in part, without restriction of
    any kind, provided that the above copyright notice and this paragraph are included on all
    such copies and derivative works. However, this document itself does not be modified in
    any way, such as by removing the copyright notice or references to SAP.
    This document and the information contained herein is provided on an u201CAS ISu201D
    basis and SAP DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
    ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY
    IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
    -->
    <xs:schema targetNamespace="http://sap.com/xi/XI/Mail/30"
      xmlns:xi="http://sap.com/xi/XI/Mail/30"
      xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <!--
    Mail
      -->
      <xs:element name="Mail">
        <xs:annotation>
          <xs:documentation>Mail package for XI - Mail Adapter</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Subject" type="xs:string" minOccurs="0"/>
            <xs:element name="From" type="xs:string" minOccurs="0"/>
            <xs:element name="To" type="xs:string" minOccurs="0"/>
            <xs:element name="Reply_To" type="xs:string" minOccurs="0"/>
            <xs:element name="Content_Type" type="xs:string" minOccurs="0"/>
            <xs:element name="Date" type="xs:dateTime" minOccurs="0"/>
            <xs:element name="Message_ID" type="xs:string" minOccurs="0"/>
            <xs:element name="X_Mailer" type="xs:string" minOccurs="0"/>
            <xs:element name="Content" minOccurs="0">
              <xs:annotation>
                <xs:documentation>any type</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
          <xs:attribute name="encoding" type="xs:string"/>
        </xs:complexType>
      </xs:element>
      <xs:element name="MailReceipt">
        <xs:annotation>
          <xs:documentation>Mail Receipt for XI - Mail Adaper</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Server" type="xs:string"/>
            <xs:element name="Format" type="xs:string"/>
            <xs:element name="UseMailPackage" type="xs:boolean"/>
            <xs:element name="Encoding" type="xs:string"/>
            <xs:element name="Subject" type="xs:string" minOccurs="0"/>
            <xs:element name="From" type="xs:dateTime" minOccurs="0"/>
            <xs:element name="To" type="xs:string" minOccurs="0"/>
            <xs:element name="Date" type="xs:dateTime" minOccurs="0"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:schema>
    regards,
    milan

  • How to send text file as an email attachment havin more than 255 characters

    My requirement is to generate a text file and to send this text file as E-mail attachment. I am using FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' to send the E-mail. but here the limitation is the number of characters per line must not be more than 255 characters whereas in my case it is exceeding 1000 characters per line. could anyone please suggest me what should i do now ? Each field in the text file has to be tab delimited.

    Simplest might well be to use javamail API instead of the two tags that Sites provides, e.g. see email - Sending mail attachment using Java - Stack Overflow for a full example.
    Phil

  • Pdf files as attachments in Mail

    Sometimes pdf attachments in mail are saved as a pdf file with icon other times the document is visible and fills the whole page - How can I ensure only the pdf file is attaced and not the open document - seems to be there is no reason as to why this is ?
    Using Blackbook + Leopard latest updates

    Don't understand the reply above; I assume it's for another thread.
    Not to worry: Mail will show you the pdf if it can but when you send it the file will be attached. If the other person's mail reader can view attachments inline then it will and there's nothing you do about that.

  • SENDING TEXT FILE AS AN ATTACHMENT

    Hi,
    I want to send an email as a TEXT file attachment.
    Thanks
    Vikranth Khimavath

    hi,
    Use the FM SO_NEW_DOCUMENT_ATT_SEND_API1 to send mail with an attachment. Here is the sample code.
    FUNCTION Z_SEND_MAIL.
    ""Local interface:
    *" IMPORTING
    *" VALUE(MESSAGE) TYPE STRING OPTIONAL
    *" VALUE(RECEIVER_MAIL) TYPE STRING OPTIONAL
    *" VALUE(TO) TYPE STRING OPTIONAL
    data for send function
    DATA doc_data TYPE sodocchgi1.
    DATA object_id TYPE soodk.
    DATA objcont TYPE TABLE OF soli INITIAL SIZE 10.
    DATA wa_objcont LIKE LINE OF objcont.
    DATA receiver TYPE TABLE OF somlreci1 INITIAL SIZE 1.
    DATA wa_receiver LIKE LINE OF receiver.
    move message
    TO doc_data-obj_descr .
    This is the subject for your mail.
    WRITE 'Sub:test Mail' TO doc_data-obj_descr.
    This is the body of your mail.
    concatenate ' Hi ' to into wa_objcont-line separated by space.
    append wa_objcont to objcont.
    wa_objcont-line = message.
    append wa_objcont to objcont.
    Specify receipent id.
    MOVE: RECEIVER_MAIL TO wa_receiver-receiver,
    'X' TO wa_receiver-express,
    'U' TO wa_receiver-rec_type.
    APPEND wa_receiver TO receiver.
    Finally call the function module.
    CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
    EXPORTING
    document_data = doc_data
    put_in_outbox = 'X' "Save Document in Outbox
    COMMIT_WORK = 'X'
    IMPORTING
    new_object_id = object_id
    TABLES
    object_content = objcont
    receivers = receiver
    EXCEPTIONS
    too_many_receivers = 1
    document_not_sent = 2
    document_type_not_exist = 3
    operation_no_authorization = 4
    parameter_error = 5
    x_error = 6
    enqueue_error = 7.
    SUBMIT rsconn01 USING SELECTION-SET 'SAP&CONNECTINT' AND RETURN.
    ENDFUNCTION.
    REPORT RSCONN01 MESSAGE-ID XS NO STANDARD PAGE HEADING.
    INCLUDE <SYMBOL>. " 11.11.96
    TYPE-POOLS: SX.
    TYPE-POOLS: KKBLO.
    PARAMETERS: MODE(3) TYPE C DEFAULT '*',
    OUTPUT TYPE C DEFAULT ' '. "B20K072036 new parameter
    selection-screen skip.
    parameters maxjobs type sx_maxjobs default 1.
    parameters rfcgroup type bdfields-rfcgr.
    selection-screen skip.
    parameters maxpsize type sx_maxpsize default 1000.
    parameters minpsize type sx_minpsize default 20.
    parameters maxsel type sx_maxqrows default 20000.
    parameters timepo type sx_timepo default 2.
    parameters timeout type sx_arfctimeout default 100.
    parameters commit type sx_commit default 1.
    data address_types type sx_addrtab.
    data job_params type sxjobs.
    data jobdata type sxjobdata.
    --- initialization -
    initialization.
    get default parameters
    call function 'SX_JOBDATA_GET'
    changing
    jobdata = jobdata.
    give defaults to parameters
    maxjobs = jobdata-maxjobs.
    maxpsize = jobdata-maxpsize.
    minpsize = jobdata-minpsize.
    maxsel = jobdata-maxsel.
    timepo = jobdata-timepo.
    timeout = jobdata-arfc_timeout.
    commit = jobdata-commit_after.
    --- start-of-selection -
    start-of-selection.
    perform addr_type_to_table using mode
    changing address_types.
    job_params-maxjobs = maxjobs.
    job_params-rfcgroup = rfcgroup.
    job_params-maxpsize = maxpsize.
    job_params-minpsize = minpsize.
    job_params-maxsel = maxsel.
    job_params-timepo = timepo.
    job_params-arfc_timeout = timeout.
    job_params-commit_after = commit.
    call function 'SX_OBJECTS_SEND'
    exporting
    address_types = address_types
    output = output
    job_params = job_params
    exceptions
    others = 1.
    if sy-subrc <> 0.
    message id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    exit.
    TABLES: SXADDRTYPE.
    DATA: selection type SX_ADDRTAB,
    NR_SO_OBJECTS TYPE I,
    OBJ_CAT TYPE SX_OBJ_CAT OCCURS 20 WITH HEADER LINE.
    if sy-batch = 'X'.
    message I078 with 'RSCONN01' SY-HOST SY-MANDT.
    endif.
    *fill selection table
    refresh selection.
    if mode = '*'.
    clear mode.
    endif.
    IF NOT ( MODE IS INITIAL ).
    SELECT SINGLE * FROM SXADDRTYPE WHERE ADDR_TYPE EQ MODE.
    IF SY-SUBRC NE 0.
    IF OUTPUT EQ 'X'.
    WRITE: MODE, TEXT-001, TEXT-002.
    ENDIF.
    EXIT.
    ENDIF.
    IF SXADDRTYPE-METHOD NE 'SAPCONNECT'.
    IF OUTPUT EQ 'X'.
    WRITE: MODE, TEXT-003, TEXT-004, TEXT-005.
    ENDIF.
    EXIT.
    ENDIF.
    append sxaddrtype-addr_type to selection.
    ELSE.
    select * from sxaddrtype
    where method = 'SAPCONNECT'
    and extern = sx_true.
    case sxaddrtype-addr_type.
    when 'INT' or 'FAX' or 'PAG' or
    'PRT' or 'RML' or 'X40'.
    append sxaddrtype-addr_type to selection.
    endcase.
    endselect.
    ENDIF.
    CALL FUNCTION 'SX_OBJECTS_SEND'
    EXPORTING
    ADDRESS_TYPES = SELECTION
    IMPORTING
    NR_SO_OBJECTS = NR_SO_OBJECTS
    TABLES
    OBJ_CAT = OBJ_CAT
    EXCEPTIONS
    INTERNAL_ERROR = 1
    OTHERS = 2.
    IF SY-SUBRC NE 0.
    IF OUTPUT EQ 'X'.
    Always write out this error message:
    WRITE: TEXT-006, SY-SUBRC.
    ENDIF.
    EXIT.
    ENDIF.
    IF NR_SO_OBJECTS = 0.
    IF OUTPUT EQ 'X'.
    WRITE: TEXT-007.
    ENDIF.
    EXIT.
    ENDIF.
    IF OUTPUT EQ 'X'.
    PERFORM DISPLAY_OBJECT_CATALOGUE.
    ENDIF.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR MODE.
    PERFORM F_SHOW_ADDR_TYPES CHANGING MODE.
    AT SELECTION-SCREEN ON HELP-REQUEST FOR OUTPUT.
    PERFORM F_HELP_OUTPUT.
    *& Form addr_type_to_table
    text
    form addr_type_to_table using address_type type sx_addrtyp
    changing address_types type sx_addrtab.
    data adrtp_wa type sxaddrtype.
    data adrtp type sx_addrtyp.
    if address_type <> '*'.
    adrtp = address_type.
    endif.
    if not adrtp is initial.
    select single * from sxaddrtype into adrtp_wa
    where addr_type = adrtp.
    if sy-subrc <> 0.
    message i009 with adrtp.
    exit.
    endif.
    if adrtp_wa-method ne 'SAPCONNECT'.
    message i027 with adrtp.
    exit.
    endif.
    append adrtp_wa-addr_type to address_types.
    else.
    select * from sxaddrtype into adrtp_wa
    where method = 'SAPCONNECT'
    and extern = sx_true.
    case adrtp_wa-addr_type.
    when 'INT' or 'FAX' or 'PAG' or
    'PRT' or 'RML' or 'X40'.
    append adrtp_wa-addr_type to address_types.
    endcase.
    endselect.
    endif.
    endform. " addr_type_to_table
    *& Form DISPLAY_OBJECT_CATALOGUE
    Anzeige der Liste der zum Versenden selektierten Objekte
    --> p1 text
    <-- p2 text
    FORM DISPLAY_OBJECT_CATALOGUE.
    DATA: FIELD_LST TYPE KKBLO_T_FIELDCAT.
    DATA: FIELD_CAT TYPE KKBLO_FIELDCAT.
    DATA: IS_LAYOUT TYPE KKBLO_LAYOUT.
    IS_LAYOUT-NO_ZEBRA = 'X'.
    FIELD_CAT-REF_TABNAME = 'SXOBJCAT'.
    FIELD_CAT-NO_SUM = 'X'.
    FIELD_CAT-JUST = 'L'.
    FIELD_CAT-OUTPUTLEN = 3.
    FIELD_CAT-REPTEXT = 'Trc'.
    FIELD_CAT-FIELDNAME = 'DISPL_TRC'.
    FIELD_CAT-HOTSPOT = 'X'.
    FIELD_CAT-SYMBOL = 'X'.
    APPEND FIELD_CAT TO FIELD_LST.
    FIELD_CAT-SYMBOL = ' '.
    FIELD_CAT-OUTPUTLEN = 0.
    FIELD_CAT-HOTSPOT = ' '.
    FIELD_CAT-REPTEXT = ' '.
    CLEAR: FIELD_CAT-NO_ZERO, FIELD_CAT-KEY .
    FIELD_CAT-FIELDNAME = 'ID'. APPEND FIELD_CAT TO FIELD_LST.
    FIELD_CAT-FIELDNAME = 'TITLE'. APPEND FIELD_CAT TO FIELD_LST.
    FIELD_CAT-FIELDNAME = 'TYPE'. APPEND FIELD_CAT TO FIELD_LST.
    FIELD_CAT-FIELDNAME = 'NR_RECIP'. APPEND FIELD_CAT TO FIELD_LST.
    LOOP AT FIELD_LST INTO FIELD_CAT.
    FIELD_CAT-COL_POS = SY-TABIX.
    MODIFY FIELD_LST FROM FIELD_CAT.
    ENDLOOP.
    LOOP AT OBJ_CAT.
    OBJ_CAT-DISPL_TRC = SYM_PENCIL.
    MODIFY OBJ_CAT.
    ENDLOOP.
    CALL FUNCTION 'K_KKB_LIST_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = 'RSCONN01'
    I_CALLBACK_USER_COMMAND = 'CB_OL_UCOMM'
    I_CALLBACK_TOP_OF_PAGE = 'CB_OL_TOP'
    I_CALLBACK_PF_STATUS_SET = 'CB_OL_PFSTATUS'
    I_TABNAME = 'OBJ_CAT'
    IS_LAYOUT = IS_LAYOUT
    IT_FIELDCAT = FIELD_LST
    TABLES
    T_OUTTAB = OBJ_CAT
    EXCEPTIONS
    OTHERS = 1.
    ENDFORM. " DISPLAY_OBJECT_CATALOGUE
    *& Form CB_OL_PFSTATUS
    Callback Funktion (wird aus Listtool heraus gerufen) *
    --> p1 text
    <-- p2 text
    FORM CB_OL_PFSTATUS
    USING EXTAB TYPE KKBLO_T_EXTAB.
    SET PF-STATUS 'CATALOG' EXCLUDING EXTAB.
    SET TITLEBAR 'CAT'.
    ENDFORM. " CB_OL_PFSTATUS
    *& Form CB_OL_TOP
    Callback Funktion (wird aus Listtool heraus gerufen) *
    --> p1 text
    <-- p2 text
    FORM CB_OL_TOP.
    ENDFORM. " CB_OL_TOP
    *& Form CB_OL_UCOMM
    text *
    --> p1 text
    <-- p2 text
    FORM CB_OL_UCOMM
    USING UCOMM LIKE SY-UCOMM
    SELFIELD TYPE KKBLO_SELFIELD.
    DATA: NUMC5(5) TYPE N.
    NUMC5 = SELFIELD-TABINDEX.
    CASE UCOMM.
    WHEN 'PIC1'.
    CASE SELFIELD-SEL_TAB_FIELD.
    WHEN 'OBJ_CAT-DISPL_TRC' OR 'OBJ_CAT-TITLE' OR 'OBJ_CAT-ID'.
    READ TABLE OBJ_CAT INDEX SELFIELD-TABINDEX.
    IF SY-SUBRC NE 0.
    MESSAGE E042.
    ENDIF.
    SUBMIT RSWTTR01
    WITH P_TYPE = 'D'
    WITH P_UNAME = SPACE
    WITH P_OBJ = OBJ_CAT-ID AND RETURN.
    WHEN OTHERS.
    MESSAGE I041 WITH NUMC5 SELFIELD-SEL_TAB_FIELD UCOMM.
    ENDCASE.
    WHEN OTHERS.
    MESSAGE I041 WITH NUMC5 SELFIELD-SEL_TAB_FIELD UCOMM.
    ENDCASE.
    ENDFORM. " CB_OL_UCOMM
    *& Form F_SHOW_ADDR_TYPES
    text
    <--P_MODE text *
    FORM F_SHOW_ADDR_TYPES CHANGING A_TYPE.
    DATA: HELP_INFO LIKE HELP_INFO
    , sel_value like help_info-fldvalue
    , CUCOL LIKE SY-CUCOL
    , CUROW LIKE SY-CUROW
    , value like help_info-fldvalue value 'SE38'
    , IND LIKE SY-INDEX
    , C_SY_SUBRC(3) TYPE C
    DATA: BEGIN OF FIELDS OCCURS 5.
    INCLUDE STRUCTURE HELP_VALUE.
    DATA: END OF FIELDS.
    DATA: BEGIN OF LIST_OF_FIELDS OCCURS 5,
    NAME(21) TYPE C.
    DATA: END OF LIST_OF_FIELDS.
    DATA: BEGIN OF FULL_LIST OCCURS 5,
    ADDRESS_TYPE LIKE SXADDRTYPE-ADDR_TYPE,
    END OF FULL_LIST.
    REFRESH FIELDS.
    REFRESH LIST_OF_FIELDS.
    REFRESH FULL_LIST.
    HELP_INFO-TABNAME = 'SXADDRTYPE'.
    HELP_INFO-FIELDNAME = 'ADDR_TYPE'.
    SELECT * FROM SXADDRTYPE.
    IF SXADDRTYPE-METHOD NE 'SAPCONNECT'
    OR SXADDRTYPE-EXTERN NE SX_TRUE.
    CONTINUE.
    ENDIF.
    MOVE SXADDRTYPE-ADDR_TYPE TO FULL_LIST-ADDRESS_TYPE.
    APPEND FULL_LIST.
    ENDSELECT.
    MOVE '*' TO FULL_LIST-ADDRESS_TYPE.
    APPEND FULL_LIST.
    LIST_OF_FIELDS-NAME = 'SXADDRTYPE-ADDR_TYPE'.
    APPEND LIST_OF_FIELDS.
    CALL FUNCTION 'TRANSFER_NAMES_TO_FIELDS'
    EXPORTING
    SELECTFIELD = HELP_INFO-FIELDNAME
    TABLES
    FIELDS = FIELDS
    NAMELIST = LIST_OF_FIELDS
    EXCEPTIONS
    WRONG_FORMAT_GIVEN = 1
    OTHERS = 2.
    CALL FUNCTION 'HELP_VALUES_GET_WITH_VALUE'
    EXPORTING
    DISPLAY = ' '
    FIELDNAME = HELP_INFO-FIELDNAME
    TABNAME = HELP_INFO-TABNAME
    GIVEN_VALUE = HELP_INFO-FLDVALUE
    TITEL = TEXT-002
    IMPORTING
    SELECT_VALUE = HELP_INFO-FLDVALUE
    SELECT_INDEX = IND
    TABLES
    FIELDS = FIELDS
    VALUETAB = FULL_LIST
    EXCEPTIONS
    FIELD_NOT_IN_DDIC = 1
    MORE_THEN_ONE_SELECTFIELD = 2
    NO_SELECTFIELD = 3
    OTHERS = 4.
    C_SY_SUBRC = SY-SUBRC.
    CASE SY-SUBRC.
    WHEN '0'.
    READ TABLE FULL_LIST INTO A_TYPE INDEX IND.
    WHEN OTHERS.
    MESSAGE E022 WITH C_SY_SUBRC.
    ENDCASE.
    ENDFORM. " F_SHOW_ADDR_TYPES
    *& Form F_HELP_OUTPUT
    text
    --> p1 text
    <-- p2 text
    FORM F_HELP_OUTPUT.
    DATA: CANCELLED TYPE C,
    C_SY_SUBRC(8) TYPE C.
    CALL FUNCTION 'POPUP_DISPLAY_TEXT'
    EXPORTING
    LANGUAGE = SY-LANGU
    POPUP_TITLE = 'SAPconnect'
    TEXT_OBJECT = 'RSCONN01_F1_OUTPUT_40B'
    IMPORTING
    CANCELLED = CANCELLED
    EXCEPTIONS
    TEXT_NOT_FOUND = 1
    OTHERS = 2.
    C_SY_SUBRC = SY-SUBRC.
    IF SY-SUBRC NE 0.
    MESSAGE E035 WITH C_SY_SUBRC. leads to dump !
    ENDIF.
    ENDFORM. " F_HELP_OUTPUT
    Regards,
    Richa

  • Trouble sending 2MB-3MB pdf attachments in Mail.

    I have sent 2MB-3MB pdf scanned documents as attachments in Mail for years.  In the last month, I can only get them to send intermittently.  What can be done?  OS X 10.6.8 running on iMac and MacBook Pro.  Same problem on both computers.  Not an email server issue.

    What email provider? (iCloud, Gmail, Yahoo, AOL, Earthlink, Comcast, ATT, other)
    What happens when they don't send? Are they just stuck in the Outbox?
    Have you looked at using DropBox?  Get a free DropBox account.
    Drag the files into DropBox and you can get a link to send to your friend to download.
    Another option with DropBox is to use a Shared folder. If you share files a lot with your friend, setup a Shared folder and everything in the folder will be shared. Obviously they also need to setup a free DropBox account (works on Windows). Just keep the folder size under the 2GB free limit.
    For the future... OS X Yosemite Mail coming this fall, will offer a way to share files like DropBox.
    Mail Drop allows you to attach large files via iCloud.
    Attachments can be up to 5GB in size. -new feature in OS X 10.10 Yosemite Mail

  • Send text file via serial

    hi
    i've trying to send a text file via rs-232 but no success
    The file contains a code for a device im dealing with, when i send the text file with labview to the device, it went ok with no errors, but when i connect the device on hyperterminal and check if the code was loaded it was not.
    can you please give some clues to deal with this?
    thanks a lot
    attached example text file and LV code
    Attachments:
    Serial.JPG ‏45 KB
    DefineHome.txt ‏1 KB

    Some devices are very picky with the End Of Line.  You might want to right-click on your FIle Read and deselect the "Convert EOL".
    Or if you need to write 1 line at a time, right click on the Read Text File and select "Read Lines".  Set the number of line to read to -1 (read all) and then wire the resulting array into a FOR loop where you do the VISA Write.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

Maybe you are looking for

  • Will 2D objects in java.awt.geom.* be Serializable in next version of Java?

    I am pretty frustrated about having to write my own Serializable classes. I'm not sure if this is the right place to ask, but will the next version of Java supports Serializable 2D objects? Further, I was trying to write my own class to extend java.a

  • Problem with my nokia 3110 classic

    Hi, in about a month before I tried to apply a theme and it displayed a message Unable to open theme. theme corrupted. What should I do? I'm afraid to do anything so that i don't make it worse. The only thing I tried is to upgrade my software, but it

  • Native Compiled PL/SQL - Missing ORAPLS9.LIB (9i Release 2)

    In configuring the Natively Compiled PL/SQL feature of Oracle 9i, the library file ORAPLS9.LIB file can't be found. I tried generating it with: LIB /DEF:ORAPLS9.DLL but got the following warnings which didn't quite look right, and the resultant orapl

  • Exercise 8, Ch Access Control from Thinking  in Java

    I am learning java using Bruce Eckel book "Thinking in Java" 4th edition and I got stuck on one exercise: .. create a class called ConnectionManager that manages a fixed array of Connection objects. The client programmer must not be able to explicite

  • Internet turns off every 10-15 minutes

    I have just moved into a 3 bedroom flat in the centre of Liverpool. All 3 of us share a BT Internet connection with a BTHub 2.0 However, every 10-15 minutes we all lose connection and have to reset the router, eventhough the router says everything is