Error with ._x && ._y with attached clips

attachMovie("phraseA", phraseA, 1000);
_root.phraseA._x = 200;
_root.phraseA._y = 460;
Ive used this same type of code like, 16 diffrent places
through out my movie, and it works perfect, except for this set. Am
i totally missing something? it attaches correctly, just doesnt go
to 200x460, it stays a 0x0. If i try assigning it to,
_root.myObject._x + 10; or something along thoes lines, it still
stays at 0x0.
this is attached via inside a if statement, inside a
function. Ive done this other places so i dont see why that would
differ from here.
thanks
Mike

Mike,
> attachMovie("phraseA", phraseA, 1000);
There's a problem with this line. Your second parameter
needs to be a
string (see the MovieClip.attachMovie() method entry in the
ActionScript
Language Reference for details).
> this is attached via inside a if statement, inside a
> function. Ive done this other places so i dont see
> why that would differ from here.
It's possible you're seeing a scope issue, then. Would you
provide the
whole function, or at least a bit more context?
David
stiller (at) quip (dot) net
Dev essays:
http://www.quip.net/blog/
"Luck is the residue of good design."

Similar Messages

  • Error while trying send emai with attachment

    Hello,
    I am facing an error while trying to send email with attachment (spreadsheet).
    Error is:  "Error in calling 'SBCOMS_SEND_REQUEST_CREATE'   in  'SO_DOCUMENT_SEND_API1' with Sy-subcr = 1".
    Do I need to configure the sender email address or some configuration at the sender system?
    I followed the example given in the below link.
    http://wiki.sdn.sap.com/wiki/display/ABAP/HowtowriteanABAPProgramtoplaceanExcelfileinapathandsenditasan+Attachment
    Could you please help on this?
    Thanks & regards,
    Ravish

    Hi Ravish,
    sure you can create local excel using [Desktop Office Integration (BC-CI)|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCIOFFI/BCCIOFFI.pdf], load as binary and attach.
    More elegant, future-oriented and advanced is the [excel-from-scratch-approach abap2xlsx by Ivan Femia|http://wiki.sdn.sap.com/wiki/display/ABAP/abap2xlsx]
    Regards,
    Clemens

  • Error while invoking renderPDFForm with attachment

    hi,
    I'm using ES4 renderPDFForm service to render pdf along with attachment.
    This service works if I dont have PDF attachment but doesn't work PDF with attachments.
    I'm sending the PDF attachment like below.
         Map attachments = new Map();
         MapItem item = new MapItem();
         itme.setKey("attachment");
         byte[] pdfAttachment = new byte[10,20,30...]
         com.adobe.idp.Document doc = new com.adobe.idp.Document(pdfAttachment );
         item.setValue(doc);
         attachments .add(item);
    service.renderPDFForm("CORR0040-MiscellaneousMS-8.xdp", inputData, renderSpec, spec, attachments);
    Error I'm getting is:  javax.xml.ws.soap.SOAPFaultException: java.lang.ClassCastException: java.lang.String incompatible with com.adobe.idp.Document
    Please help me how to resolve this...

    hi,
    I'm using ES4 renderPDFForm service to render pdf along with attachment.
    This service works if I dont have PDF attachment but doesn't work PDF with attachments.
    I'm sending the PDF attachment like below.
         Map attachments = new Map();
         MapItem item = new MapItem();
         itme.setKey("attachment");
         byte[] pdfAttachment = new byte[10,20,30...]
         com.adobe.idp.Document doc = new com.adobe.idp.Document(pdfAttachment );
         item.setValue(doc);
         attachments .add(item);
    service.renderPDFForm("CORR0040-MiscellaneousMS-8.xdp", inputData, renderSpec, spec, attachments);
    Error I'm getting is:  javax.xml.ws.soap.SOAPFaultException: java.lang.ClassCastException: java.lang.String incompatible with com.adobe.idp.Document
    Please help me how to resolve this...

  • SC gone in to error while creating with attachment

    Hi,
    SCs gone in to error when ever i create SC with attachement.
    error is : Shopping cart 3000349408 (PO 2000122875):  000
    Can any one help on this..

    Hi
    Please provide the system details and version. Any errors noticed in RZ20, ST22, SLG1 or SM21 transactions, after creating a new shopping cart with attachements.
    If yes, please provide the details as well.
    <b>Meanwhile, please go through the following SAP OSS Notes, which might help -></b>
    Note 550071 - FAQ: EBP - Shopping Cart
    Note 848909 - Size of the table BBPCONT is very big.
    Note 1030777 - Follow-on note to 848909. Size of the table BBPCONT is big
    Note 1042048 - Short Dump in Purchase Order Header Notes and Attachment Tab
    Note 932602 - Follow on note to note 891293
    Note 964065 - Follow on note to note 932602
    Note 891293 - LOIO_OBJID field empty for attachments in database
    Note 67225 - Context memory overflows in ITS
    Note 1008491 - BBPSOCO01:Problems with large follow on Docs
    Note 668062 - Configuration of attachment display
    Do let me know.
    Regards
    - Atul

  • Xpath error while trying to send attachment with email

    Hi,
    I was trying to execute the BPEL sample - SendingAttachementWithEmail, as given in the tutorials.
    I had mapped the 'contentBody' in attachment[2] to
    ora:readFile(bpws:getVariableData('inputVariable','payload',
    '/client:SendEmailWithAttachmentProcessRequest/client:attachmentURI')
    I have a file called "SOA.txt" in my C:\ (C drive).
    I specified the following details in my 'initiate' screen
    to - jcooper
    subject - sample email
    body - testing how to send email with attachment
    attachmentName - SOA.txt
    attachmentMimeType - multipart/mixed
    attachmentURI - file:C:/SOA.txt
    I got the following error while executing the process, can any one please tell me where I am going wrong. Are the values I am passing correct?
    Error
    XPath expression failed to execute.
    Error while processing xpath expression, the expression is "ora:readFile(bpws:getVariableData("inputVariable", "payload", "/client:SendEmailWithAttachmentProcessRequest/client:attachmentURI"))", the reason is C:\SOA.txt (The system cannot find the file specified).
    Please verify the xpath query.
    What could be the problem with the xpath query.

    Thanks for your suggestions, but it still does not work.
    The following is the error I get when I enter
    file:///c:/SOA.txt as my attachmentURI.
    XPath expression failed to execute.
    Error while processing xpath expression, the expression is "ora:readFile(bpws:getVariableData("inputVariable", "payload", "/client:SendEmailWithAttachmentProcessRequest/client:attachmentURI"))", the reason is c:\SOA.txt (The system cannot find the file specified).
    Please verify the xpath query.
    I followd the same steps as given in the tutorial 'SendEmailWithAttachment' available under the folder <BPEL_HOME>\integration\orabpel\samples\tutorials\SendEmailWithAttachment.

  • Itunes console errors with iphone attached

    anyone else seeing these errors with itunes?
    6/7/11 1:16:45 PM          iTunes[863]          _AMDDeviceAttachedCallbackv3 (thread 0xb0513000): Device 'AMDevice 0x454c8b0 {endpoint type = USB Mux, location ID = 0xfd310000, product ID = 0x1292, UDID = 74586deb7c993a148e8d2a23205f4a697dd60ffb, device ID = 1, Valid = 1, Retain Count = 2}' attached.
    6/7/11 1:16:45 PM          kernel          Message Version Check or Length Not Match.
    6/7/11 1:16:45 PM          kernel          Message Length Check - msglength = 3152, expectingLength = 3152
    6/7/11 1:16:45 PM          kernel          Message Version Check - msg(0.0.0)@0xffffff8019241030 atifb:(3.1.0)
    6/7/11 1:16:45 PM          kernel          Message Version Check or Length Not Match.
    6/7/11 1:16:45 PM          kernel          Message Length Check - msglength = 3152, expectingLength = 3152
    6/7/11 1:16:45 PM          kernel          Message Version Check - msg(0.0.0)@0xffffff801926e030 atifb:(3.1.0)
    6/7/11 1:16:45 PM          kernel          Message Version Check or Length Not Match.
    6/7/11 1:16:45 PM          kernel          Message Length Check - msglength = 3152, expectingLength = 3152
    6/7/11 1:16:45 PM          kernel          Message Version Check - msg(0.0.0)@0xffffff801924a030 atifb:(3.1.0)
    6/7/11 1:16:47 PM          AppleMobileDeviceHelper[866]          _AMDDeviceAttachedCallbackv3 (thread 0xa08bd540): Device 'AMDevice 0x620ef0 {endpoint type = USB Mux, location ID = 0xfd310000, product ID = 0x1292, UDID = 74586deb7c993a148e8d2a23205f4a697dd60ffb, device ID = 1, Valid = 1, Retain Count = 2}' attached.
    6/7/11 1:16:55 PM          kernel          Message Version Check or Length Not Match.
    6/7/11 1:16:55 PM          kernel          Message Length Check - msglength = 3152, expectingLength = 3152
    6/7/11 1:16:55 PM          kernel          Message Version Check - msg(0.0.0)@0xffffff801825b030 atifb:(3.1.0)
    6/7/11 1:16:55 PM          kernel          Message Version Check or Length Not Match.
    6/7/11 1:16:55 PM          kernel          Message Length Check - msglength = 3152, expectingLength = 3152
    6/7/11 1:16:55 PM          kernel          Message Version Check - msg(0.0.0)@0xffffff8018450030 atifb:(3.1.0)
    6/7/11 1:16:55 PM          kernel          Message Version Check or Length Not Match.
    6/7/11 1:16:55 PM          kernel          Message Length Check - msglength = 3152, expectingLength = 3152
    6/7/11 1:16:55 PM          kernel          Message Version Check - msg(0.0.0)@0xffffff8017f3d030 atifb:(3.1.0)
    caused by itunes connecting to iphone 3G (good ole locked at 4.2.2 one)
    it does this once or twice, before it grabs device and mounts it into itunes. i don't know if this is just itunes getting impatient with a device that's slow by comparison to newer models it was expecting.
    on plus side, the new update seems to have fixed the other error that's spam console every minute endlessly for entire duration a device was plugged in

    I tried something else.  I created a new account on my computer, launched itunes, and plugged in the iPhone 4.  The summary screen came up.  I subscribed to a podcast, clicked on the iPhone (not crashed) and synched podcasts.  Synch completed ok.  Other iPhone content is not affected. 
    So something is wrong with my account on this computer?  Where are account stuff stored for an iPhone or iTunes?  Or is it something else? 
    Thanks for any input.

  • Cannot attach files to email. get message "An internal error occurred when attempting to attach... " when do retry and "switch" can attach the file. What is the problem? Files attach ok with IE.

    Cannot attach files to email. get message "An internal error occurred when attempting to attach... " Have tried attaching docs and jpg. Same result , files don't attach. When click on try again and then "switch" the file does attach.

    Cannot attach files to email. get message "An internal error occurred when attempting to attach... " Have tried attaching docs and jpg. Same result , files don't attach. When click on try again and then "switch" the file does attach.

  • Problem by  Sending an Email with attached Adobe Interactive Form (Code)

    Thanks. I have written Programm, but it does not work as i want it to do. I will send an Email with attached Adobe Interactive Firm to [email protected]. I tried it with "*lo_recipient = cl_sapuser_bcs=>create( sy-uname )" at the marked(bold, fat) position. It worked but the Email was send to my SAP-Account, but i want to send to [email protected], so I tried this (see at code in bold, fat):
    lo_rec TYPE adr6-smtp_addr VALUE '[email protected]'. " Empfänger Receiver
    lo_recipient = cl_cam_address_bcs=>create_internet_address( lo_rec ).
    But it doens`t send the email.
    Can anybody help me please???
    Kevin
    Here my Code:
    Report FP_EXAMPLE_01
    Printing of documents using PDF based forms
    REPORT z_example_02.
    Data declaration
    DATA: carr_id TYPE sbook-carrid,
    customer TYPE scustom,
    bookings TYPE ty_bookings,
    connections TYPE ty_connections,
    fm_name TYPE rs38l_fnam,
    fp_docparams TYPE sfpdocparams,
    fp_outputparams TYPE sfpoutputparams,
    error_string TYPE string,
    l_booking TYPE sbook,
    t_sums TYPE TABLE OF sbook,
    l_sums LIKE LINE OF t_sums,
    fp_formoutput TYPE fpformoutput.
    PARAMETER: p_custid TYPE scustom-id DEFAULT 38.
    SELECT-OPTIONS: s_carrid FOR carr_id DEFAULT 'AA' TO 'ZZ'.
    PARAMETER: p_form TYPE tdsfname DEFAULT 'FP_EXAMPLE_01'.
    PARAMETER: language TYPE sfpdocparams-langu DEFAULT 'E'.
    PARAMETER: country TYPE sfpdocparams-country DEFAULT 'US'.
    Get data from the following tables: scustom(Flight customer)
    sbook (Single flight reservation)
    spfli (Flight plan)
    SELECT SINGLE * FROM scustom INTO customer WHERE id = p_custid.
    CHECK sy-subrc = 0.
    SELECT * FROM sbook INTO TABLE bookings
    WHERE customid = p_custid
    AND carrid IN s_carrid
    ORDER BY PRIMARY KEY.
    SELECT * FROM spfli INTO TABLE connections
    FOR ALL ENTRIES IN bookings
    WHERE carrid = bookings-carrid
    AND connid = bookings-connid
    ORDER BY PRIMARY KEY.
    Print data:
    First get name of the generated function module
    CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
    EXPORTING
    i_name = p_form
    IMPORTING
    e_funcname = fm_name.
    IF sy-subrc <> 0.
    MESSAGE e001(fp_example).
    ENDIF.
    Set output parameters and open spool job
    fp_outputparams-nodialog = 'X'. " suppress printer dialog popup
    fp_outputparams-getpdf = 'X'. " launch print preview
    CALL FUNCTION 'FP_JOB_OPEN'
    CHANGING
    ie_outputparams = fp_outputparams
    EXCEPTIONS
    cancel = 1
    usage_error = 2
    system_error = 3
    internal_error = 4
    OTHERS = 5.
    Set form language and country (->form locale)
    fp_docparams-langu = language.
    fp_docparams-country = country.
    *fp_docparams-fillable = 'X'.
    *fp_docparams-langu = 'E'. "wird jetzt automatisch gesetzt, bzw. kann dynamisch verändert werden
    *fp_docparams-country = 'GB'. "wird jetzt automatisch gesetzt, bzw. kann dynamisch verändert werden
    currency key dependant summing
    LOOP AT bookings INTO l_booking.
    l_sums-forcuram = l_booking-forcuram.
    l_sums-forcurkey = l_booking-forcurkey.
    COLLECT l_sums INTO t_sums.
    ENDLOOP.
    Now call the generated function module
    CALL FUNCTION fm_name
    EXPORTING
    /1bcdwb/docparams = fp_docparams
    customer = customer
    bookings = bookings
    connections = connections
    t_sums = t_sums
    IMPORTING
    /1bcdwb/formoutput = fp_formoutput
    EXCEPTIONS
    usage_error = 1
    system_error = 2
    internal_error = 3
    OTHERS = 4.
    IF sy-subrc <> 0.
    CALL FUNCTION 'FP_GET_LAST_ADS_ERRSTR'
    IMPORTING
    e_adserrstr = error_string.
    IF NOT error_string IS INITIAL.
    we received a detailed error description
    WRITE:/ error_string.
    EXIT.
    ELSE.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDIF.
    Close spool job
    CALL FUNCTION 'FP_JOB_CLOSE'
    EXCEPTIONS
    usage_error = 1
    system_error = 2
    internal_error = 3
    OTHERS = 4.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    *********************Send the form*******************
    *********************to the Customer*****************
    *********************via Email***********************
    *IF i_down = abap_true.
    DATA: filename TYPE string,
    path TYPE string,
    fullpath TYPE string,
    default_extension TYPE string VALUE 'PDF'.
    Data:
    lt_att_content_hex TYPE solix_tab.
    *DATA: data_tab TYPE TABLE OF x255.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
    EXPORTING
    buffer = fp_formoutput-pdf
    TABLES
    binary_tab = lt_att_content_hex.
    CLASS cl_bcs DEFINITION LOAD.
    DATA:
    lo_send_request TYPE REF TO cl_bcs VALUE IS INITIAL.
    lo_send_request = cl_bcs=>create_persistent( ).
    DATA:
    lt_message_body TYPE bcsy_text VALUE IS INITIAL.
    DATA: lo_document TYPE REF TO cl_document_bcs VALUE IS INITIAL.
    APPEND 'Dear Vendor,' TO lt_message_body.
    APPEND ' ' TO lt_message_body.
    APPEND 'Please fill the attached form and send it back to us.'
    TO lt_message_body.
    APPEND ' ' TO lt_message_body.
    APPEND 'Thank You,' TO lt_message_body.
    lo_document = cl_document_bcs=>create_document(
    i_type = 'RAW'
    i_text = lt_message_body
    i_subject = 'Vendor Payment Form' ).
    DATA: lx_document_bcs TYPE REF TO cx_document_bcs VALUE IS INITIAL.
    TRY.
    lo_document->add_attachment(
    EXPORTING
    i_attachment_type = 'PDF'
    i_attachment_subject = 'Vendor Payment Form'
    i_att_content_hex = lt_att_content_hex ).
    CATCH cx_document_bcs INTO lx_document_bcs.
    ENDTRY.
    lo_send_request->set_document( lo_document ).
    DATA:
    lo_sender TYPE REF TO if_sender_bcs VALUE IS INITIAL,
    lo_send TYPE adr6-smtp_addr VALUE '[email protected]'. "Absender SENDER
    lo_sender = cl_cam_address_bcs=>create_internet_address( lo_send ).
    Set sender
    lo_send_request->set_sender(
    EXPORTING
    i_sender = lo_sender ).
    Create recipient
    DATA:
    lo_recipient type ref to if_recipient_bcs value is initial.
    Data:
    lo_rec TYPE adr6-smtp_addr VALUE '[email protected]'. " Empfänger Receiver
    lo_recipient = cl_cam_address_bcs=>create_internet_address( lo_rec ).
    *lo_recipient = cl_sapuser_bcs=>create( sy-uname ).
    Set recipient
    lo_send_request->add_recipient(
    EXPORTING
    i_recipient = lo_recipient
    i_express = 'X' ).
    *lo_send_request->add_recipient(
    *EXPORTING
    *i_recipient = lo_recipient
    *i_express = 'X' ).
    Send email
    DATA: lv_sent_to_all(1) TYPE c VALUE IS INITIAL.
    lo_send_request->send(
    EXPORTING
    i_with_error_screen = 'X'
    RECEIVING
    result = lv_sent_to_all ).
    COMMIT WORK.
    MESSAGE 'The payment form has been emailed to the Vendor' TYPE 'I'.

    Hi Kevin,
    Please try this code to send your mail, i wrote it and works well in many system.
    Take care if in your profile you got an e-mail adress define .
    Take care also of trnasaction SCOT customizing, are you able to send mail to e-mail adress ?
    Let me know if it's works.
    Best regards.
    <i>**----
    CLASS-DEFINITIONS
    DATA: send_request       TYPE REF TO cl_bcs.
    DATA: document           TYPE REF TO cl_document_bcs.
    DATA: sender             TYPE REF TO cl_sapuser_bcs.
    DATA: recipient          TYPE REF TO if_recipient_bcs.
    INTERNAL TABLES
    DATA: l_mailtext TYPE soli_tab.
    DATA: iaddsmtp   TYPE TABLE OF bapiadsmtp.
    DATA: ireturn    TYPE TABLE OF bapiret2.
    VARIABLES
    DATA: mail_line  LIKE LINE OF l_mailtext.
    DATA: bapiadsmtp         TYPE bapiadsmtp.
    DATA: subject    TYPE so_obj_des.
    DATA : att_subject TYPE so_obj_des.
    DATA : w_except TYPE REF TO cx_root .
    CONSTANTS : c_defmail TYPE ad_smtpadr VALUE
                     '[email protected]' .
    FIELD-SYMBOLS : <smtp> TYPE bapiadsmtp.
    *Convert the pdf given by function module into Binary .
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
      EXPORTING
        buffer     = output-pdf "PDF file from function module
      TABLES
        binary_tab = hexa.
    *Set subject of the mail
    subject = 'Exemple de PDF interactif'.
    Set text of the mail
    mail_line = 'Merci de remplir le formulaire et nous le retourner'.
    APPEND mail_line TO l_mailtext .
    Set the name of the attached document
    att_subject = 'Template du PDF'.
    TRY.
    Create persistent send request
        send_request = cl_bcs=>create_persistent( ).
    Get sender object
        sender = cl_sapuser_bcs=>create( sy-uname ).
    Add sender
        CALL METHOD send_request->set_sender
          EXPORTING
            i_sender = sender.
    Read the E-Mail address for the user
        CALL FUNCTION 'BAPI_USER_GET_DETAIL'
          EXPORTING
            username = sy-uname
          TABLES
            return   = ireturn
            addsmtp  = iaddsmtp.
        LOOP AT iaddsmtp ASSIGNING <smtp> WHERE std_no = 'X'.
          CLEAR bapiadsmtp.
          MOVE <smtp> TO bapiadsmtp.
        ENDLOOP.
        CASE bapiadsmtp-e_mail.
          WHEN space.
    No adress main for user, so send it to the default mail adress
            recipient =
         cl_cam_address_bcs=>create_internet_address( c_defmail ).
          WHEN OTHERS.
            recipient =
         cl_cam_address_bcs=>create_internet_address( bapiadsmtp-e_mail ).
        ENDCASE.
    Add recipient with its respective attributes to send request
        CALL METHOD send_request->add_recipient
          EXPORTING
            i_recipient  = recipient
            i_express    = 'X'
            i_copy       = space
            i_blind_copy = space
            i_no_forward = space.
    Set that you don't need a Return Status E-mail
        CALL METHOD send_request->set_status_attributes
          EXPORTING
            i_requested_status = 'E'
            i_status_mail      = 'E'.
    set send immediately flag
        send_request->set_send_immediately( 'X' ).
    *Build Document
        document = cl_document_bcs=>create_document(
                            i_type    = 'RAW'
                            i_text    = l_mailtext
                            i_subject = subject ).
        add attachment to document
        CALL METHOD document->add_attachment
          EXPORTING
            i_attachment_type    = 'PDF'
            i_attachment_subject = att_subject
            i_att_content_hex    = hexa.
    Add document to send request
        CALL METHOD send_request->set_document( document ).
    Send document
        CALL METHOD send_request->send( ).
        COMMIT WORK.
      CATCH cx_send_req_bcs INTO w_except.
      CATCH cx_address_bcs INTO w_except.
      CATCH cx_document_bcs INTO w_except.
    ENDTRY.</i>

  • Webmail / error with uploading a file

    Anyone else having issues with attaching a file? It's giving me an error message. Thanks!

    Hi,
    this issue was resolved earlier, could you please confirm if this is fixed for you as well. If you have any issue , please let me know  and I will check it further.

  • I dont receive e-mails with attachment sent to OS X Server 3.0.1 Group-mailing lists

    I have a small company using a mac mini with mavericks and server 3.0.1.
    We are using most of the services available in OS X server (except DHCP, Netinstall and Xsan). One of the services we use the most is Mail server, and the whole company uses that as our primary mail server.
    We have set up several different Groups and activated group-mailing lists on some of them. The setup has been working very good for over a year (started using it with Mountain Lion Server).
    Recently I was going to send a christmas card to all employees using the workgroup mailing list. I was using the stationaries in Mail, and it was sent as normal but never recieved by me or any of the other employees. Below is the SMTP Log
    Dec  6 17:10:16 server.mydomain.com postfix/smtpd[29101]: connect from unknown[10.0.1.16 *<- my local IP address*]
    Dec  6 17:10:16 server.mydomain.com postfix/smtpd[29101]: 480451503B0A: client=unknown[10.0.1.16 *<- my local IP address*], sasl_method=CRAM-MD5, sasl_username=myusername
    Dec  6 17:10:16 server.mydomain.com postfix/cleanup[29109]: 480451503B0A: message-id=<[email protected]>
    Dec  6 17:10:16 server.mydomain.com postfix/qmgr[23288]: 480451503B0A: from=<[email protected]>, size=98063, nrcpt=1 (queue active)
    Dec  6 17:10:16 server.mydomain.com postfix/local[29110]: 480451503B0A: to=<[email protected]>, relay=local, delay=0.13, delays=0.05/0.01/0/0.08, dsn=2.0.0, status=sent (delivered to command: /Applications/Server.app/Contents/ServerRoot/usr/libexec/MailService/list_serve r_post post workgroup)
    Dec  6 17:10:16 server.mydomain.com postfix/qmgr[23288]: 480451503B0A: removed
    Dec  6 17:11:16 server.mydomain.com postfix/smtpd[29101]: disconnect from unknown[10.0.1.16 *<- my local IP address*]
    I did some trial and error and it seems like it is linked to the fact that I have attachments to the email. Sending an email with only text is recieved like normal. Even attacment like PDF or jpg is "blocked" it seems. I have tried using email outside my domain but still the same result. Sending the same email (with attachment) to all reciepients (not using the mailiing list) works and is recieved by everyone. I have turned off all email filtering settings on the server but still the same result.
    Is anyone else experiencing the same problem? My guess is that this is a Server 3.0.1 hickup, so it would be nice to get confirmation from others experiencing the same.

    Troubleshooting Apple Mail
    What does Mail/Window/Connection Doctor Show? If the server is red, select it and look at the Show Details box.
    Troubleshooting sending and receiving email messages
    Troubleshooting sending email messages

  • Sending Mail with attachment from WD

    Hi all,
    I wan't to send an email from webdynpro with an attached pdf-document. I had a look at Tutorial 31, but i will only use the first part, sending email with attached interactive form. So I decided to build a new project. I did everything as in the tutorial described, but when entering the following code into the wdDoInit method from the SendView an error occurs.
    //@@begin wdDoInit()
         //     @TODO Enter your email address for the setFrom and setTo methods by replacing the text in angle brackets.
         wdContext.currentEmailElement().setFrom("[email protected]");
         wdContext.currentEmailElement().setTo("[email protected]");
         wdContext.currentEmailElement().setCc("");
         wdContext.currentEmailElement().setBcc("");
         wdContext.currentEmailElement().setSubject("Travel Request Form");
         wdContext.currentEmailElement().setBody("BlaBlaBla");   
        //@@end
    In the coding is no error. In the Context node of the SendView I created a new value node with the value attributes. When writing the code and using strg+space i can complete automatically, so no writing errors.
    When deploying and running the application I get always a NullPointerException, if make no difference if i delete one entry or which line of code i insert, the same error.
    java.lang.NullPointerException
         at com.ao.test.emailtest.SendView.wdDoInit(SendView.java:99)
         at com.ao.test.emailtest.wdp.InternalSendView.wdDoInit(InternalSendView.java:127)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:274)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
    I've compared my project with the one from tutorial but i found no differences.
    Have anybody have an idea what to do?
    Thanks
    Mathias

    Hi,
    NullpOinter excepttion could be bcose of "currentEmailElement()".
    Please create an element of EmailNode before these statements.
    IPrivate<ViewName>.IEmailElement ele=wdContext.createEmailElement();
    wdContext.NodeEmail().addElement(ele);
    You can use the following for sending attachments :
    BodyPart messageBodyPart = new MimeBodyPart();
    messageBodyPart.setText(Attachment);
    Multipart multipart = new MimeMultipart();
    multipart.addBodyPart(messageBodyPart);
    messageBodyPart = new MimeBodyPart();
    DataSource source = new FileDataSource(Attachment);
    messageBodyPart.setDataHandler(new DataHandler(source));
    messageBodyPart.setFileName(Attachment);
    multipart.addBodyPart(messageBodyPart);
    msg.setContent(multipart);
    Regards, Anilkumar
    Message was edited by: Anilkumar Vippagunta

  • Email with attachment doesn't work

    Hi all,
    I have a form in with i upload a file. On submit i send a mail with attach the file i uploaded. the form has as action a servlet.
    Well it works if i try it on the localhost, when i try it from my computer to the server the mail is sent but without the file attach.
    the code is the following:
    import java.util.Properties;
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.activation.*;
    import java.io.*;
    import java.util.*;
    /public class SendMail
    String host ="" ;
    String from ="" ;
    String to ="";
    String subject ="";
    String body ="";
    String id ="";
    String filename ="" ;
    boolean add = false;
    boolean tosend = false;
    public SendMail(String h , String f)
         host = h;
         from = f;
    public void setTo(String to)
         this.to = to;
    public void setSubject(String obj)
         this.subject = obj;
    public void setBody(String body)
         if(add)
              this.body += body;
              add = false;
         else
              this.body = body;
    public void addToBody(String body)
         this.body += body;
    public boolean getContinue()
         return add;
    public void setContinue(boolean a)
         add = a;
    public String getBody()
         if(!add)
              return this.body;
         else
              return "";
    public boolean send()
         try
         //Get system properties
         Properties props = System.getProperties();     
         //Setup mail server
         props.put("mail.smtp.host", host);
         // Get session
         Session session = Session.getDefaultInstance(props, null);
         // Define message
         MimeMessage message = new MimeMessage(session);
                   // Set the from address
                   message.setFrom(new InternetAddress(from));
    //               Set the to address
    System.out.println("to = >" + to +"< body = "+ body);
         message.addRecipient(Message.RecipientType.TO,new InternetAddress(to));
    //     Set the subject
         message.setSubject(subject);
    //     Set the content
         message.setText(body);
    // Send message
         // Transport.send(message);
    File file = new File(filename);
                   if (file.exists())
                        // create and fill the first message part
                        MimeBodyPart mbp1 = new MimeBodyPart();
                        mbp1.setText(body);
                        // create the second message part
                        MimeBodyPart mbp2 = new MimeBodyPart();
                        // attach the file to the message
                        FileDataSource fds = new FileDataSource(filename);
                        mbp2.setDataHandler(new DataHandler(fds));
                        mbp2.setFileName(fds.getName());
                        // create the Multipart and its parts to it
                        Multipart mp = new MimeMultipart();
                        mp.addBodyPart(mbp1);
                        mp.addBodyPart(mbp2);
                        // add the Multipart to the message
                        message.setContent(mp);
                   // send the message
                   Transport.send(message);
    return true;
    catch (AddressException e)
                   e.printStackTrace();
                   return false;
    catch (MessagingException e)
                   e.printStackTrace();
                   return false;
    catch (Exception e)
                   e.printStackTrace();
                   return false;
    Any help is appreciated.
    Thanks!

    Ok, I have made something similar to which your you want to do.
    Before to send a e-mail you have to upload the file, and later you can attach it into the e-mail.
    To upload the file:
    I made it with a jsp file (has a form) where I call to a java servlet how upload the file:
    package ServletUpload;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.text.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import org.apache.commons.fileupload.*;
    import org.apache.commons.fileupload.disk.DiskFileItemFactory;
    import org.apache.commons.fileupload.servlet.ServletFileUpload;
    public class uploadFichero extends HttpServlet {
        public void init(ServletConfig config) throws ServletException{
            super.init(config);
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            response.setContentType("text/html");
            PrintWriter out = response.getWriter();
            out.println("<html>");
            out.println("<head>");
            out.println("<title>Servlet</title>");
            out.println("</head>");
            out.println("<body>");
            out.println("We began the processing of the file");
            boolean uploaded = false;
            uploaded = procesaFicheros(request,out);
            if (true==uploaded)
                out.println("File uploaded");
            else
                out.println("Error to upload File");
            out.println("</body>");
            out.println("</html>");
            out.close();
        public boolean procesaFicheros(HttpServletRequest req, PrintWriter out ) throws ServletException, IOException {
            try {
                boolean isMultipart = FileUpload.isMultipartContent(req);
                out.println ("<br>Is multipart:"+isMultipart);
                // Create a factory for disk-based file items
                FileItemFactory factory = new DiskFileItemFactory();
                // Create a new file upload handler
                ServletFileUpload upload = new ServletFileUpload(factory);
                // Set overall request size constraint
                upload.setSizeMax(1024*512); //524288 Bytes (512 KB)
                // Parse the request
                List items = upload.parseRequest(req);
                // Process the uploaded items
                Iterator iter = items.iterator();
                while (iter.hasNext()) {
                    FileItem item = (FileItem) iter.next();
                    if (!item.isFormField()) {  //Files to upload
                        String fieldName = item.getFieldName();
                        String fileName = item.getName();
                        String contentType = item.getContentType();
                        boolean isInMemory = item.isInMemory();
                        long sizeInBytes = item.getSize();
                        /* ************* FOR WINDOWS EXPLORER ****************** */
                        /* ************** FOR MOZILLA EXPLORER IS NOT NEED ****************** */
                        /* *********** We extract the name of the file ONLY the name *********** */
                            /*  We have the name into a string, We have the separated folders by the character \  */
                        int numbers=0;
                        for(int i=fileName.length();(i=fileName.lastIndexOf('\\',i-1))>=0;)
                            numbers++;
                            /* WE OBTAIN A STRING FOR EACH DIRECTORY And The FILE */
                        String stringFile[] = fileName.split("\\\\");
                        /* *********** We only extract the name of the file (END) *********** */
                        /* WE CREATED THE FOLDER IN CASE IT DOES NOT EXIST */
                        /* WE VERIFIED IF THE FOLDER EXISTS */
                        String folder = "yourFolderName";
                        String newUserFolder = folder;
                        File createFile = new File("routeOfYourFolder/"+newUserFolder);
                        /*  for example (in unix)
    File createFile = new File("/usr/local/tomcat/webapps/"+newUserFolder);
                        if (!createFile.exists()){ /* IT DOES NOT EXIST, WE CREATE IT */
                            createFile.mkdir();
                        /* WE VERIFIED IF THE FOLDER EXISTS (END) */
                        /* WE WROTE THE FILE (UPLOAD) IN THE CHOSEN FOLDER */
                        fileName = stringFile[numbers];
                        File uploadedFile = new File("routeOfYourFolder/"+newUserFolder+"/"+fileName);
                        item.write(uploadedFile);
                        /* WE WROTE THE FILE (UPLOAD) IN THE CHOSEN FOLDER (END) */
                    } else {        //THAT ARE THE OTHER FIELDS OF THE FORM
                        // s= item.toString();
                        // out.println("<br>isFormField: "+s);
            catch(Exception e) {
                out.println("ERROR IN THE APPLICATION " + e.getMessage());
            return true;
        public void destroy() {
        public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{
            response.setContentType("text/html");
            PrintWriter out = response.getWriter();
            processRequest(request, response);
        public void doPost(HttpServletRequest req,HttpServletResponse res) throws ServletException, IOException {
              doGet(req,res);
    }  //END OF uploadFicheroI hope it helps you. you will tell me.

  • B2B-51566 Description: Parse stream error with RosettaNet 1.1

    Hi
    Need help with the following error message
    B2B-51566 Parse stream error
    We have a trading partner set up to use RosettaNet 1.1 protocol and we are getting 51566 error. We are NOT experiencing this error with a trading partner who is in RosettaNet 2.0
    we are currently patched up to 11.1.1.5
    One thing I notice is when i go to the message and open the packed message i get this "Cannot display Packed Message in binary format."
    Here is the payload
    XMessage-ID: <[email protected]d.e2open.com>
    MIME-Version: 1.0
    Content-Type: multipart/related;
         boundary="----=_Part_176_29725195.1331307008851";
         type="Application/x-RosettaNet"
    Content-Description: This is the RosettaNet Business Message
    Content-ID: "-15059242:135f6ea5e3c:-62b9"
    ------=_Part_176_29725195.1331307008851
    Content-Type: Application/xml; rnsubtype=preamble-header; name=Preamble
    Content-Transfer-Encoding: binary
    Content-Disposition: attachment; filename=Preamble
    Content-ID: <[email protected]>
    Content-Description: This is the Preamble Header part of the Business Message
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE Preamble SYSTEM "PreamblePartMessageGuideline.dtd">
    <Preamble>
    <DateTimeStamp>20120309T153008.852Z</DateTimeStamp>
    <GlobalAdministeringAuthorityCode>RosettaNet</GlobalAdministeringAuthorityCode>
    <GlobalUsageCode>Production</GlobalUsageCode>
    <VersionIdentifier>1.1</VersionIdentifier>
    </Preamble>
    ------=_Part_176_29725195.1331307008851
    Content-Type: Application/xml; rnsubtype=service-header; name=ServiceHeader
    Content-Transfer-Encoding: binary
    Content-Disposition: attachment; filename=ServiceHeader
    Content-ID: <[email protected]>
    Content-Description: This is the Service Header part of the Business Message
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ServiceHeader SYSTEM "ServiceHeaderPartMessageGuideline.dtd">
    <ServiceHeader>
    <ProcessControl>
    <ProcessIdentity>
    <description>
    <FreeFormText>NotNull</FreeFormText>
    </description>
    <GlobalProcessCode>Request Purchase Order</GlobalProcessCode>
    <GlobalProcessIndicatorCode>3A4</GlobalProcessIndicatorCode>
    <initiatingPartner>
    <GlobalBusinessIdentifier>007710825</GlobalBusinessIdentifier>
    </initiatingPartner>
    <InstanceIdentifier>PIPC0A85CB8135F814CB4200000EAFE56F0</InstanceIdentifier>
    <VersionIdentifier>V02.00</VersionIdentifier>
    </ProcessIdentity>
    <ServiceRoute>
    <fromService>
    <BusinessServiceDescription>
    <GlobalBusinessServiceCode>Seller Service</GlobalBusinessServiceCode>
    </BusinessServiceDescription>
    </fromService>
    <toService>
    <BusinessServiceDescription>
    <GlobalBusinessServiceCode>Buyer Service</GlobalBusinessServiceCode>
    </BusinessServiceDescription>
    </toService>
    </ServiceRoute>
    <TransactionControl>
    <AttemptCount>1</AttemptCount>
    <PartnerRoleRoute>
    <fromRole>
    <PartnerRoleDescription>
    <GlobalPartnerRoleClassificationCode>Seller</GlobalPartnerRoleClassificationCode>
    </PartnerRoleDescription>
    </fromRole>
    <toRole>
    <PartnerRoleDescription>
    <GlobalPartnerRoleClassificationCode>Buyer</GlobalPartnerRoleClassificationCode>
    </PartnerRoleDescription>
    </toRole>
    </PartnerRoleRoute>
    <TransactionIdentity>
    <GlobalTransactionCode>Request Purchase Order</GlobalTransactionCode>
    <InstanceIdentifier>TIC0A85CB8135F814CB4200000EAFE5700</InstanceIdentifier>
    </TransactionIdentity>
    <SignalControl>
    <inResponseTo>
    <ActionIdentity>
    <GlobalBusinessActionCode>Purchase Order Request Action</GlobalBusinessActionCode>
    <InstanceIdentifier>C0A85CB8135F814C33C00000EAFE5670</InstanceIdentifier>
    </ActionIdentity>
    </inResponseTo>
    <InstanceIdentifier>20120309T153008.882Z</InstanceIdentifier>
    <PartnerRoute>
    <fromPartner>
    <PartnerDescription>
    <BusinessDescription>
    <GlobalBusinessIdentifier>364132837</GlobalBusinessIdentifier>
    </BusinessDescription>
    <GlobalPartnerClassificationCode>null</GlobalPartnerClassificationCode>
    </PartnerDescription>
    </fromPartner>
    <toPartner>
    <PartnerDescription>
    <BusinessDescription>
    <GlobalBusinessIdentifier>007710825</GlobalBusinessIdentifier>
    </BusinessDescription>
    <GlobalPartnerClassificationCode>null</GlobalPartnerClassificationCode>
    </PartnerDescription>
    </toPartner>
    </PartnerRoute>
    <SignalIdentity>
    <GlobalBusinessSignalCode>Receipt Acknowledge</GlobalBusinessSignalCode>
    <VersionIdentifier>1.1</VersionIdentifier>
    </SignalIdentity>
    </SignalControl>
    </TransactionControl>
    </ProcessControl>
    </ServiceHeader>
    ------=_Part_176_29725195.1331307008851
    Content-Type: Application/xml; rnsubtype=service-content;
         name=ReceiptAcknowledgement
    Content-Transfer-Encoding: binary
    Content-Disposition: attachment; filename=ReceiptAcknowledgement
    Content-ID: <[email protected]>
    Content-Description: This is the Service Content part of the Business Message
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ReceiptAcknowledgement SYSTEM "ReceiptAcknowledgementMessageGuideline.dtd">
    <ReceiptAcknowledgement>
    <fromRole>
    <PartnerRoleDescription>
    <ContactInformation>
    <contactName>
    <FreeFormText>E2open Support</FreeFormText>
    </contactName>
    <EmailAddress>[email protected]</EmailAddress>
    <telephoneNumber>
    <CommunicationsNumber>650-381-6000</CommunicationsNumber>
    </telephoneNumber>
    </ContactInformation>
    <GlobalPartnerRoleClassificationCode>Seller</GlobalPartnerRoleClassificationCode>
    <PartnerDescription>
    <BusinessDescription>
    <GlobalBusinessIdentifier>364132837</GlobalBusinessIdentifier>
    <GlobalSupplyChainCode>Information Technology</GlobalSupplyChainCode>
    </BusinessDescription>
    <GlobalPartnerClassificationCode>null</GlobalPartnerClassificationCode>
    </PartnerDescription>
    </PartnerRoleDescription>
    </fromRole>
    <receivedDocumentDateTime>
    <DateTimeStamp>20120309T153008.907Z</DateTimeStamp>
    </receivedDocumentDateTime>
    <receivedDocumentIdentifier>
    <ProprietaryDocumentIdentifier>337719</ProprietaryDocumentIdentifier>
    </receivedDocumentIdentifier>
    <thisMessageDateTime>
    <DateTimeStamp>20120309T153008.904Z</DateTimeStamp>
    </thisMessageDateTime>
    <thisMessageIdentifier>
    <ProprietaryMessageIdentifier>20120309T153008.905Z</ProprietaryMessageIdentifier>
    </thisMessageIdentifier>
    <toRole>
    <PartnerRoleDescription>
    <GlobalPartnerRoleClassificationCode>Buyer</GlobalPartnerRoleClassificationCode>
    <PartnerDescription>
    <BusinessDescription>
    <GlobalBusinessIdentifier>007710825</GlobalBusinessIdentifier>
    <GlobalSupplyChainCode>Information Technology</GlobalSupplyChainCode>
    </BusinessDescription>
    <GlobalPartnerClassificationCode>null</GlobalPartnerClassificationCode>
    </PartnerDescription>
    </PartnerRoleDescription>
    </toRole>
    </ReceiptAcknowledgement>
    ------=_Part_176_29725195.1331307008851--

    I do have SR but hoping i can get quicker answer hereYou may always escalate the SR if you are not getting response timely. Anyways, give the reference of this thread in the SR and ask service engineer to file a bug.
    I will email you the wire messageI saw the wire message you mailed across. There are some junk characters in the starting of the payload and that's why parsing is failing. Most probably it is a BOM (Byte Order Mark). Ask your TP to send messages in UTF-8 encoding without BOM or any other junk character in the starting of the message. You may open the wire message payload you mailed across in notepad or textpad and you will able to see those junk characters in the starting of the payload.
    Regards,
    Anuj

  • InDesign CC | Error with indd file - "Cannot open the file...Adobe InDesign may not support file format"

    I encountered a very strange error with InDesign CC after saving a file created in CS4. I'd attach the file but I'm not sure how to do this, if I'm able to. The file is 44kb and doesn't seem like it should be (file I saved had a large book cover). Now since the original CS4 file was overwritten using InDesign CC, the file is corrupt and I'm getting the error message displayed below. The file is not open within another application. Has anyone gotten this before?

    Thanks for your response Peter. Below is the gibber contained in the first four lines. In the first line, where it reads "mimetypeapplication" and then "indesign-idml-package", I would assume that this should've been a valid idml file.
    PK        *meEËv‰+   +       mimetypeapplication/vnd.adobe.indesign-idml-packagePK        *meE!t/k   {<     designmap.xmlÝ[ýrÚH ÿ;y •ê.µ[uk 6¶IÀ)À áb  þÈÞÖÖÖ 0e1£ IŽÙ¿ò wUw/—'¹îÑ× cc;gv«²FÝ==¿îéîé CýýíÌ5n¨ô™à ³¼U2 Êmá0>i˜ çÇ?훆  î WpÚ0çÔ7ß ¼®¿'Ì ÆÜ Z   s >9 g” ¦!)q¨¼L ï¢â1%A(é ³RÝ3 O '´á©\Ú*ý°WúÑ4P÷a¬Å lÜËœþ5€™ ÷Ö²¸¿E 1¢[¶˜YMüÔá‡Ôg n1gæZ`‚å ûšLÀ Ó8ìuS 8‹i ©; ¤ð! r~Ê|˜?¤ # ׌°\ÂÿöwŒ°62R)ú‚q( 0´i 솞’9•0f´k íîÏ ûRŒ úábk¸e\Ñ‘Ñ $ ŽñÃðª×ÿѸ©˜ÆकŠùð`tŽÚ»åÚîîO•2@ .sÚ ²Ã Šó]øT=ƒ³ 0ćÉÇ •-—r\›b±C:&¡ tfdB‹¥  ÌiÏ f_RŸÊ z4 QÇ¡NŒÓ‹¥Úb6bœ àÈÞ8 ÒäΐŒi{6¿FçØ¡ »O›¡' ¿aŽ‰ëSóàõ«ú)á“  ÅÎO ¿t #>q™?

  • Sharepoint Online - Send email with attachment

    Hi All,
    is there some way how to send email with attachment, which is attached to list item in host web?
    I tried some of solutions but none of them not working.
    Server side:
    For example event receiver after added list item with attachment - Because it is office 365, in SandBox solution I can´t use SmtpClient class.
    Any other ideas?
    Client side:
    For example client web part with REST call. It works fine until I don´t need access to attachment.
    string oDataUrlAttach = "/_api/Web/lists/getbytitle('ListName')/Items(6)/AttachmentFiles('Document.docx')/$value";
                HttpWebRequest itemRequestAttach = (HttpWebRequest)HttpWebRequest.Create(sharepointUrl.ToString() + oDataUrlAttach);
                itemRequest.Method = "GET";
                itemRequest.Accept = "application/atom+xml";
                itemRequest.ContentType = "application/atom+xml;type=entry";
                itemRequest.Headers.Add("Authorization", "Bearer " + accessToken);
                HttpWebResponse itemResponseAttach = (HttpWebResponse)itemRequestAttach.GetResponse();
    Here I get error: The remote server returned an error: (403) Forbidden.
    But other calls are OK. I can get all items from my list except attachments.
    Any ideas?
    Thank you.

    Why hasn't this been answered?
    Sam Ogle

Maybe you are looking for