Sending attachment in a mail using SO_DOCUMENT_SEND_API1

Hi,
I am trying to send an attachment in a mail using the FM SO_DOCUMENT_SEND_API1.
The contents of the body and the attachement are same.
The contents of the body are coming in proper format but the attachements are not.
The body contents are in this way:
1000013559     0010004994     PBG BROOKF     1000013559     000100     010052000328667000     GA LQ CRE 20OZ 24CS FRT PUN              0.000     CS
1000013559     0010004994     PBG BROOKF     1000013559     000200     010052000328681000     GA LQ CRE 20OZ 24CS LL              0.000     CS
But the attachement contents are:
1000013559     0010004994     PBG BROOKF     1000013559     000100     010052000328667000     GA LQ CRE 20OZ 24CS FRT PUN
         ⸀        䌀匀ഀ਀                                                                                                         u2020
1000013559     0010004994     PBG BROOKF     1000013559     000200     010052000328681000     GA LQ CRE 20OZ 24CS LL
    ⸀        䌀匀ഀ਀                                                                                                              u2020
Also the last 2 fields which are quantity and unit fields, are not coming at all in the attachment.
Please help me solve this issue.
Thanks,
Abhishek

what is the document type of attachment? is it excel?

Similar Messages

  • Sending HTML Mails using SO_DOCUMENT_SEND_API1

    Dear all,
    we were using SO_DOCUMENT_SEND_API1 to send plain text e-mail replies to participants of an incentive program. Now the customer wants to send HTML mails. Customer has provided HTML templates for the mails, and the text always is the same, only slight changes in regard to the particpants number occur. Has anybody ever performed sending HTML formated mails without using SmartForms?
    Thanks for your help!
    Kind Regards
    Chris

    Sure.. here is a sample program.
    report zrich_0002.
    data: maildata   like sodocchgi1.
    data: mailtxt    like solisti1 occurs 10 with header line.
    data: mailrec    like somlrec90 occurs 0  with header line.
    start-of-selection.
      clear:    maildata, mailtxt,  mailrec.
      refresh:  mailtxt, mailrec.
      perform build_text_message.
      perform build_receivers.
      perform send_mail_nodialog..
    *      Form  BUILD_TEXT_MESSAGE
    form build_text_message.
      maildata-obj_name = 'TEST'.
      maildata-obj_descr = 'Test Subject'.
      mailtxt  = '<html>'.
      append mailtxt.
      mailtxt  = '<head>'.
      append mailtxt.
      mailtxt  = '<title>Untitled Document</title>'.
      append mailtxt.
      mailtxt  = '<meta http-equiv="Content-Type" content="text/html;'.
      append mailtxt.
      mailtxt  = 'charset=iso-8859-1">'.
      append mailtxt.
      mailtxt  = '</head>'.
      append mailtxt.
      mailtxt  = '<body>'.
      append mailtxt.
      mailtxt  = '<div align="center"><em><font' .
      append mailtxt.
      mailtxt  = 'color="#0000FF" size="+7" face="Arial,'.
      append mailtxt.
      mailtxt  = 'Helvetica, sans-serif">THIS'.
      append mailtxt.
      mailtxt  = '  IS A TEST </font></em><font' .
      append mailtxt.
      mailtxt  = 'color="#0000FF" size="+7" face="Arial,'.
      append mailtxt.
      mailtxt  = 'Helvetica, sans-serif"></font>'.
      append mailtxt.
      mailtxt  = '</div>'.
      append mailtxt.
      mailtxt  = '</body>'.
      append mailtxt.
      mailtxt  = '</html>'.
      append mailtxt.
    endform.
    *      Form  BUILD_RECEIVERS
    form build_receivers.
    *  mailrec-receiver = '[email protected]'.
      mailrec-rec_type  = 'U'.
      append mailrec.
    endform.
    *      Form  SEND_MAIL_NODIALOG
    form send_mail_nodialog.
      call function 'SO_NEW_DOCUMENT_SEND_API1'
           exporting
                document_data              = maildata
                document_type              = 'HTM'
                put_in_outbox              = 'X'
           tables
                object_header              = mailtxt
                object_content             = mailtxt
                receivers                  = mailrec
           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 SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    endform.
    Regards,
    Rich Heilman

  • Need to send a link in mail using apex

    Hi,
    I need to send a mail using apex which will contain a link for a specific page. For sending mail , I used the following query:
    for c1 in (select EMAIL_ADDRESS
                 from USER_DETAILS
                where USER_NAME= :P4_USER_NAME and EMAIL_ADDRESS=:P4_EMAIL_ADDRESS) loop
      if c1.EMAIL_ADDRESS is not null then
        HTMLDB_MAIL.SEND(
          P_TO       =>  c1.EMAIL_ADDRESS,
          P_FROM     => '[email protected]',
          P_BODY     => 'Your new password is '|| 'xyzxyz',
          P_SUBJ     => 'Password detail' );
      end if;
    end loop;
    But how i will send the required link.
    Pls give some idea.
    Thanks,
    Chandra Bhanu

    Hi Chandra,
    Try this version of your code, you will alter the url to map to your apex server.
    DECLARE
       l_body   VARCHAR2 (4000);
    BEGIN
       FOR c1
          IN (SELECT email_address
                FROM user_details
               WHERE     user_name = :p4_user_name
                     AND email_address = :p4_email_address)
       LOOP
          IF c1.email_address IS NOT NULL
          THEN
             -- Include link to login page
             l_body :=
                   '<p>Your new password is '
                || 'xyzxyz'
                || '  To access the application and change your password, follow the '
                || 'link below.</p><p><a href="http://'
                || '</p><p><a href="http://edwprd:7777/pls/oitp/f?p=&APP_ID.:LOGIN</a></p>';
             apex_mail.send (p_to     => c1.email_address,
                             p_from   => '[email protected]',
                             p_body   => l_body,
                             p_subj   => 'Password detail');
          END IF;
       END LOOP;
    END;
    Jeff

  • Submit Report as an attachement Excel via mail using planified job SM37

    Hi,
    I'm executing a program in background via job to get back the result of a report as an attachment XLS on mail.
    the result of my program give me just title of Excel columns , but when i execute it manually , the result is perfect.
    my code is :
    ******************************FORM MAIL*******************************
    FORM mail.
    CONCATENATE 'Expédition' 'TExp' 'PtOT' 'Crée' 'Crée le' 'St.' 'Déb.
    chargt'
    'Désignation' 'Div.' 'Doc. vente' 'Réceptionnaire' 'Nom1' 'Nom2'
    'Volume' 'UQ' INTO it_mess_att
    SEPARATED BY con_tab.
    CONCATENATE con_cret it_mess_att INTO it_mess_att.
    APPEND it_mess_att.
    CONCATENATE SPACE SPACE INTO it_mess_att
    SEPARATED BY con_tab.
    CONCATENATE con_cret it_mess_att INTO it_mess_att.
    APPEND it_mess_att.
    *CLEAR it_mess_att.
    LOOP AT it_tab into wa_tab.
    *VAL = it_tab-ZQTEMAX.
    CONCATENATE wa_tab-SHNUMBER wa_tab-SHTYPE
    wa_tab-TPLST wa_tab-CRE_NAME
    wa_tab-CRE_DATE wa_tab-OIG_SSTSF
    wa_tab-LOAD_STDTA wa_tab-VMODE_TEXT
    wa_tab-WERKS wa_tab-VBELN
    wa_tab-KUNNR wa_tab-NAME1
    wa_tab-CARRIER_DE
    wa_tab-WGT_UOM INTO it_mess_att
    SEPARATED BY con_tab.
    CONCATENATE con_cret it_mess_att INTO it_mess_att.
    APPEND it_mess_att.
    *CLEAR it_mess_att.
    ENDLOOP.
    ENDFORM.
    *************************FORM SEND_MAIL*******************************
    FORM send_mail .
    DATA: send_request TYPE REF TO cl_bcs,
    document TYPE REF TO cl_document_bcs,
    recipient TYPE REF TO cl_cam_address_bcs,
    bcs_exception TYPE REF TO cx_bcs,
    sent_to_all TYPE os_boolean,
    lt_fields TYPE TABLE OF w3fields,
    lt_html TYPE TABLE OF w3html.
    DATA: ld_error TYPE sy-subrc,
    ld_reciever TYPE sy-subrc,
    ld_mtitle LIKE sodocchgi1-obj_descr,
    ld_email LIKE somlreci1-receiver,
    ld_format TYPE so_obj_tp , ld_attdescription TYPE sopcklsti1-obj_descr,
    ld_attfilename TYPE so_obj_des , ld_sender_address LIKE
    soextreci1-receiver, ld_sender_address_type LIKE soextreci1-adr_typ,
    ld_receiver LIKE sy-subrc.
    DATA: t_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
    t_contents LIKE solisti1 OCCURS 0 WITH HEADER LINE,
    t_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
    t_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE,
    t_object_header LIKE solisti1 OCCURS
    0 WITH HEADER LINE, w_cnt TYPE i,
    w_sent_all(1) TYPE c, w_doc_data LIKE sodocchgi1.
    *MOVE p_email TO mailid.
    ***************ADD ADRESS MAIL**************
    p_email1-RECEIVER = mail .
    append p_email1.
    ld_email = mail.
    ld_mtitle = gd_attachment_desc.
    ld_format = 'XLS'.
    ld_attdescription = gd_attachment_desc.
    ld_attdescription = 'Liste expéditions PN'.
    CONCATENATE ld_attdescription '.XLS' INTO ld_attfilename.
    ld_attfilename = p_filename.
      ld_sender_address = w_sender.
      ld_sender_address_type = 'INT'.
    Fill the document data.
      w_doc_data-doc_size = 1.
    Populate the subject/generic message attributes
      w_doc_data-obj_langu = sy-langu.
      w_doc_data-obj_name = 'SAPRPT'.
      w_doc_data-obj_descr = ld_mtitle .
      w_doc_data-sensitivty = 'F'.
    Fill the document data and get size of attachment
      CLEAR w_doc_data.
      READ TABLE it_mess_att INDEX 1.
      w_doc_data-doc_size = ( w_cnt - 1 ) * 255 + STRLEN( it_mess_att ).
      w_doc_data-obj_langu = sy-langu.
      w_doc_data-obj_name = 'SAPRPT'.
      w_doc_data-obj_descr = gd_attachment_desc.
      w_doc_data-sensitivty = 'F'.
      CLEAR t_attachment.
      REFRESH t_attachment.
    t_attachment[] = it_attach[]
    Describe the body of the message clear t_packing_list.
      REFRESH t_packing_list.
      t_packing_list-transf_bin = space.
      t_packing_list-head_start = 1.
      t_packing_list-head_num = 0.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE it_mess_bod LINES
      t_packing_list-body_num.
      t_packing_list-doc_type = 'RAW'.
      APPEND t_packing_list.
    Create attachment notification
      t_packing_list-transf_bin = 'X'.
      t_packing_list-head_start = 1.
      t_packing_list-head_num = 1.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE it_mess_att LINES t_packing_list-body_num.
      t_packing_list-doc_type = ld_format.
      t_packing_list-obj_descr = ld_attdescription.
      t_packing_list-obj_name = ld_attfilename.
      t_packing_list-doc_size =
      t_packing_list-body_num * 255.
      APPEND t_packing_list.
    Add the recipients email address
      CLEAR t_receivers.
      REFRESH t_receivers.
      loop at p_email1.
      t_receivers-receiver = p_email1-receiver.
      t_receivers-rec_type = 'U'.
      t_receivers-com_type = 'INT'.
      t_receivers-notif_del = 'X'.
      t_receivers-notif_ndel = 'X'.
      APPEND t_receivers.
      endloop.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
        EXPORTING
            document_data = w_doc_data
            put_in_outbox = 'X'
            sender_address = ld_sender_address
            sender_address_type = ld_sender_address_type
            commit_work = 'X'
       IMPORTING
            sent_to_all = w_sent_all
            TABLES packing_list = t_packing_list
            contents_bin = it_mess_att
            contents_txt = it_mess_bod
            receivers = t_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
      ld_error = sy-subrc.
    Populate zreceiver return code
      LOOP AT t_receivers.
      ld_receiver = t_receivers-retrn_code.
      ENDLOOP.
      WAIT UP TO 5 SECONDS.
      SUBMIT rsconn01 WITH mode = 'INT' WITH output = 'X' AND RETURN.
    ENDFORM. " send_mail

    Hi,
    I'm executing a program in background via job to get back the result of a report as an attachment XLS on mail.
    the result of my program give me just title of Excel columns , but when i execute it manually , the result is perfect.
    my code is :
    ******************************FORM MAIL*******************************
    FORM mail.
    CONCATENATE 'Expédition' 'TExp' 'PtOT' 'Crée' 'Crée le' 'St.' 'Déb.
    chargt'
    'Désignation' 'Div.' 'Doc. vente' 'Réceptionnaire' 'Nom1' 'Nom2'
    'Volume' 'UQ' INTO it_mess_att
    SEPARATED BY con_tab.
    CONCATENATE con_cret it_mess_att INTO it_mess_att.
    APPEND it_mess_att.
    CONCATENATE SPACE SPACE INTO it_mess_att
    SEPARATED BY con_tab.
    CONCATENATE con_cret it_mess_att INTO it_mess_att.
    APPEND it_mess_att.
    *CLEAR it_mess_att.
    LOOP AT it_tab into wa_tab.
    *VAL = it_tab-ZQTEMAX.
    CONCATENATE wa_tab-SHNUMBER wa_tab-SHTYPE
    wa_tab-TPLST wa_tab-CRE_NAME
    wa_tab-CRE_DATE wa_tab-OIG_SSTSF
    wa_tab-LOAD_STDTA wa_tab-VMODE_TEXT
    wa_tab-WERKS wa_tab-VBELN
    wa_tab-KUNNR wa_tab-NAME1
    wa_tab-CARRIER_DE
    wa_tab-WGT_UOM INTO it_mess_att
    SEPARATED BY con_tab.
    CONCATENATE con_cret it_mess_att INTO it_mess_att.
    APPEND it_mess_att.
    *CLEAR it_mess_att.
    ENDLOOP.
    ENDFORM.
    *************************FORM SEND_MAIL*******************************
    FORM send_mail .
    DATA: send_request TYPE REF TO cl_bcs,
    document TYPE REF TO cl_document_bcs,
    recipient TYPE REF TO cl_cam_address_bcs,
    bcs_exception TYPE REF TO cx_bcs,
    sent_to_all TYPE os_boolean,
    lt_fields TYPE TABLE OF w3fields,
    lt_html TYPE TABLE OF w3html.
    DATA: ld_error TYPE sy-subrc,
    ld_reciever TYPE sy-subrc,
    ld_mtitle LIKE sodocchgi1-obj_descr,
    ld_email LIKE somlreci1-receiver,
    ld_format TYPE so_obj_tp , ld_attdescription TYPE sopcklsti1-obj_descr,
    ld_attfilename TYPE so_obj_des , ld_sender_address LIKE
    soextreci1-receiver, ld_sender_address_type LIKE soextreci1-adr_typ,
    ld_receiver LIKE sy-subrc.
    DATA: t_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
    t_contents LIKE solisti1 OCCURS 0 WITH HEADER LINE,
    t_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
    t_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE,
    t_object_header LIKE solisti1 OCCURS
    0 WITH HEADER LINE, w_cnt TYPE i,
    w_sent_all(1) TYPE c, w_doc_data LIKE sodocchgi1.
    *MOVE p_email TO mailid.
    ***************ADD ADRESS MAIL**************
    p_email1-RECEIVER = mail .
    append p_email1.
    ld_email = mail.
    ld_mtitle = gd_attachment_desc.
    ld_format = 'XLS'.
    ld_attdescription = gd_attachment_desc.
    ld_attdescription = 'Liste expéditions PN'.
    CONCATENATE ld_attdescription '.XLS' INTO ld_attfilename.
    ld_attfilename = p_filename.
      ld_sender_address = w_sender.
      ld_sender_address_type = 'INT'.
    Fill the document data.
      w_doc_data-doc_size = 1.
    Populate the subject/generic message attributes
      w_doc_data-obj_langu = sy-langu.
      w_doc_data-obj_name = 'SAPRPT'.
      w_doc_data-obj_descr = ld_mtitle .
      w_doc_data-sensitivty = 'F'.
    Fill the document data and get size of attachment
      CLEAR w_doc_data.
      READ TABLE it_mess_att INDEX 1.
      w_doc_data-doc_size = ( w_cnt - 1 ) * 255 + STRLEN( it_mess_att ).
      w_doc_data-obj_langu = sy-langu.
      w_doc_data-obj_name = 'SAPRPT'.
      w_doc_data-obj_descr = gd_attachment_desc.
      w_doc_data-sensitivty = 'F'.
      CLEAR t_attachment.
      REFRESH t_attachment.
    t_attachment[] = it_attach[]
    Describe the body of the message clear t_packing_list.
      REFRESH t_packing_list.
      t_packing_list-transf_bin = space.
      t_packing_list-head_start = 1.
      t_packing_list-head_num = 0.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE it_mess_bod LINES
      t_packing_list-body_num.
      t_packing_list-doc_type = 'RAW'.
      APPEND t_packing_list.
    Create attachment notification
      t_packing_list-transf_bin = 'X'.
      t_packing_list-head_start = 1.
      t_packing_list-head_num = 1.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE it_mess_att LINES t_packing_list-body_num.
      t_packing_list-doc_type = ld_format.
      t_packing_list-obj_descr = ld_attdescription.
      t_packing_list-obj_name = ld_attfilename.
      t_packing_list-doc_size =
      t_packing_list-body_num * 255.
      APPEND t_packing_list.
    Add the recipients email address
      CLEAR t_receivers.
      REFRESH t_receivers.
      loop at p_email1.
      t_receivers-receiver = p_email1-receiver.
      t_receivers-rec_type = 'U'.
      t_receivers-com_type = 'INT'.
      t_receivers-notif_del = 'X'.
      t_receivers-notif_ndel = 'X'.
      APPEND t_receivers.
      endloop.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
        EXPORTING
            document_data = w_doc_data
            put_in_outbox = 'X'
            sender_address = ld_sender_address
            sender_address_type = ld_sender_address_type
            commit_work = 'X'
       IMPORTING
            sent_to_all = w_sent_all
            TABLES packing_list = t_packing_list
            contents_bin = it_mess_att
            contents_txt = it_mess_bod
            receivers = t_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
      ld_error = sy-subrc.
    Populate zreceiver return code
      LOOP AT t_receivers.
      ld_receiver = t_receivers-retrn_code.
      ENDLOOP.
      WAIT UP TO 5 SECONDS.
      SUBMIT rsconn01 WITH mode = 'INT' WITH output = 'X' AND RETURN.
    ENDFORM. " send_mail

  • Can't download attachements on yahoo mail using firefox. IE will open them

    Can't download attachments on yahoo mail using firefox. IE will open them
    == This happened ==
    Every time Firefox opened
    == 5/4/2010

    You don't have to disable any addons or extentions!!!You guys are not going to believe this I figured out the problem it's really dumb...ok here goes the attachment uploader loads seperate so I got to thinking it's a popup so I went to options content and under block pop ups there is an option exceptions click on that and in the box type firefox.com and hit allow pow its fixed!!!!! :-)

  • Can't send FIOS/Yahoo e-mail using Thunderbird

    I've seen other posts about this but cannot find anything that helped.
    I'm trying to set up Thunderbird to send e-mail using my new FIOS/Yahoo e-mail address which is [email protected]  The ISP on the computer from which I am trying to send is Verizon FIOS.  I can receive e-mails in Thunderbird but cannot send.
    I have tried both using SMTS outgoing.verizon.net and outgoing.yahoo.verizon.net.  For incoming I had to use incoming.yahoo.verizon.net and it works.
    I've tried using Port 25 and Port 587.
    I've input my username both with and without the @verizon.net
    For "Secure Connection" I've tried all choices:  No, TLS, if available, TLS and SSL.
    Whenever I try to send an e-mail it usually asks for my password twice and after inputting it the second time I get a version of this message:
    The message could not be sent because connecting to SMTP server outgoing.verizon.net failed.  The server may be unavailable or is refusing SMTP connections.  Please verify that your SMTP server setting is correct and try again, or else contact your network administrator.
    Any advice?  Thanks.
    Solved!
    Go to Solution.

    somegirl wrote:
    1. Change your server to outgoing.yahoo.verizon.net - This is the correct outbound server for Verizon Yahoo accounts.
    2. Make sure the setting for "outgoing server requires authentication" is selected. - It should auth with your vz username and password
    If you are still having trouble, post the error. (The error you've posted here is for the wrong server.)
    Well, I had already done those things before.  The message I got when I tried is:
    An error occurred while sending mail.  The mail server responded: From address not verified - see http://help.yahoo.com/l/us/yahoo/mail/original/manage/sendfrom-07.html.  Please verify that your email address is correct in your Mail preferences and try again.
    I had input the email address without the @verizon.net extension.  That's exactly how I input it in the pop3 set-up for receiving e-mail and it works there.
    So I went to the link that is referenced in the error message.  It basically had me go to my Yahoo mail account page.  I was directed to add an account with a different email address.  A verification code was then sent to me via email that I then had to input into the new account's setup page in order to activate my Yahoo mail for smtp use.  Once I input the code and validated I was then able to send e-mails just fine with Thunderbird.  I was able to use my @verizon.net email address and not the new account I had created.
    Bottom line - I had to activate/validate my account before I could send email.  I had not read about this anywhere when trying to figure out what was wrong.

  • Sending Attachment via oracle mail packages

    Hi,
    I am using utl_smtp and utl_tcp pacakges to send an e-mail. I would like to send an attachment through it, is this possible? and if yes how do i do it?
    Thanks.

    Jens,
    I am frequent visitor and contributor to this forum.
    About the link, I waned to try the same thing as I never tried this before and I am getting some hickups.
    May be you can help as you seem to be familiar with this subject,
    1. I down loaded the two java packages one for mail and one for activation from Java web site.
    2. Executed the down loads which provided me with mail.jar and activation.jar
    3. Zipped them again using Winzip as per Tom's suggestion(this may be where I may be doing some thing wrong).
    4. Transfered the mail.zip and activation.zip to my UNIX server and have our DBA try loading the files under SYS account. It is throwing error, following is the loading endeavor just for mail.zip, the other one just similar.
    $ loadjava -u sys/manager -o -r -v -f -noverify -synonym -g public mail.zip
    initialization complete
    loading  : mail.jar
    creating : mail.jar
    Error while creating resource mail.jar
        ORA-29547: Java system class not available: oracle/aurora/rdbms/Compiler
    resolver : 
    Error while turning off verifier
        ORA-06576: not a valid function or procedure name
    loadjava: 2 errorsAny ideas?
    I will appreciate any help in this regard.
    Thx,
    SriDHAR

  • TS3276 Corrupt Attachment in Apple Mail (using IMAP)(on Mountain Lion too)

    I got corrupt attachments by using Apple Mail, IMAP on both Gmail and my company email. The problem continues since Lion, Mountain Lion is the same still. Any suggestion?
    This is really a trouble to me...
    Look, the main reason I bought Mountain Lion on 25th this month is Mail improvement. And seems the hug problem is not solved at all... what a pity...
    I might have to go back to the less integrated 3rd party apps... Can some one answer me?

    Well no particular file, any file can be corrupted in my experience. I've seen corrupted JPG files, PDF files, MS word files, excel files, and even .zip files.
    It doesn't matter who send the email, it could happen on any email in my mail box. When I use other application like Thunderbird or Sparrow doesn't cause such issue.
    Believe me I know what I'm doing, with the latest Mountain Lion, Latest Adobe Reader I can get from official website and it does not matter which version I'm having. No antivirus program involved, even if there is antivirus program involved, why I don't get trouble in other mail apps?
    The problem is, the attachment files in the email was not correctly downloaded. It doesn't matter which program I use to view it. If I save the attached files onto my desktop, situation remain the same. The only possible way I can do is to rebuild the entire mail database. However, the rebuilding process could be hours for I have tons of emails saved on the server, and it does not guarantee will solve the problem. Why bother spending so much time only simply want to get a file? The point is, by using Thunderbird I can get the file instantly, with Mail I can't?
    The following is part of the corrupted file's MIME header. I'm not sure if this is enough for I didn't copy the entire header for it contains some sender information. I would probably not sharing those email addresses.
    MIME-Version: 1.0
    Content-Type: multipart/mixed; boundary="=_997f4b2baebbe275a574812f1ca64cdf"
    --=_997f4b2baebbe275a574812f1ca64cdf
    Content-Type: multipart/ALTERNATIVE;
              boundary="=_44f440161c4f3bd3273d9805e6f1454b"
    --=_997f4b2baebbe275a574812f1ca64cdf
    Content-Disposition: attachment;
              filename*0="=?UTF-8?Q?GMOs=20=E0=B9=80=E0=B8=A1=E0=B8=A5=E0=B9=87=E0=B8=94 =E";
              filename*1="0=B8=9E=E0=B8=B1=E0=B8=99=E0=B8=98=E0=B9=8C=E0=B8=82=E0=B9=89= E0";
              filename*2="=B8=B2=E0=B8=A7=E0=B9=82=E0=B8=9E=E0=B8=94=E0=B8=AB=E0=B8=A7=E 0=";
              filename*3="B8=B2=E0=B8=9927072555_0000.pdf?="
    Content-Type: APPLICATION/PDF;
              name*0="=?UTF-8?Q?GMOs=20=E0=B9=80=E0=B8=A1=E0=B8=A5=E0=B9=87=E0=B8=94=E";
              name*1="0=B8=9E=E0=B8=B1=E0=B8=99=E0=B8=98=E0=B9=8C=E0=B8=82=E0=B9=89=E0";
              name*2="=B8=B2=E0=B8=A7=E0=B9=82=E0=B8=9E=E0=B8=94=E0=B8=AB=E0=B8=A7=E0=";
              name*3="B8=B2=E0=B8=9927072555_0000.pdf?="
    Content-Transfer-Encoding: base64

  • Cannot send emails in Mac Mail using third party SMTP via BT Infinity Broadband

    EUREKA!!
    I have a Mac Book Pro and recently had my home broadband upgraded to BT Infinity. Prior to this upgrade sending emails via my Mac mail was working perfectly. Since the new installation I could no send any external emails using the Hotmail.co.uk or 123-Reg.co.uk smtp outgoing servers. Googlemail.com was ok.? very strange.
    So when I connected the same macbook to other wireless connections it would work perfectly.???
    So after many hours wasted messing around, I managed to get the right person at the right time via BT helpline in the UK not India. (India helpine just say "we are not trained in Apple".
    So the very polite man from UK Helpline provided me with the solution.
    GO TO > Apple Icon top left > System Preferences > Network > Wireless >
    Select your wireless connection > Click Advanced lower right on popup
    Select DNS tab
    Click on the + under DNS left pane and type the following :- 208.67.222.222
    Click Apply
    BINGO!!!!
    I hope this helps someone, as I know how painful these types of issues can be.
    Cheers

    Hi Haggie
    Had a similar experience but couldn't work out why macbook was working and imac not. I hate verification with bt. Anyway, tried your method and as you say eureka! Did have imac plugged in before and put it on wifi to try your fix  I will try plugging broadband back in to see if that works and will post back but at the moment just enjoying the moment!
    Just to say a big thank you for not only sorting the problem out but equally importantly posting the answer! Too many people sort out their problems without letting other people know how!
    Many thanks

  • Cannot send email w/mac mail using Juno and Tiger

    Hello!
    I have had a problem ever since I upgraded last year to Tiger. I have Juno, and ever since I upgraded from Jaguar, I cannot use the Juno software to log on. But more annoying that that (I have a work around that works just fine), I cannot send email from my mac mail. If I want to send an email or respond to an email, I have to physically log onto Juno's website and email and write and send from there. I have contacted Juno numerous times, and they tell me to reset my password, which makes no sense to me. Any Ideas?

    Regarding not being able to send mail with your .Mac account and .Mac SMTP server, most if not all ISPs used for connecting to the internet block the use of SMTP servers outside of their network on Port 25. Some ISPs allow the use of an authenticated SMTP server only (such as the .Mac SMTP server) that is outside of their network on Port 25 but some block its use regardless. These restrictions are in place as part of an overall effort to prevent or reduce spam eminating from the ISP's domain.
    Something to try.
    Go to Mail > Preferences > Accounts and under the Account Information tab for your .Mac account preferences at the SMTP server selection, select the Server Settings button below.
    At the Server Port field, enter 587 in place of 25 and when finished, select OK to save the changed setting.
    If this is not successful, select/use your ISP's SMTP server to send mail with your .Mac account which is invisible to all recipients.

  • Can't send email from Apple mail using hosted exchange since upgrade to 10.5.8

    I've got a client who just upgraded to 10.8. Since doing so he can recieve email but not send it for a hosted exchange account. He can send and recieve from his personal pop account. It is a wireless connection.  I have tried the following without any success:
    1. Verified all the config info was correct (server password etc) - no change
    2. Deleted and re-added the account - same result
    3. Deleted keychain data and readed the account - no change.
    4. Ran disk utility (why not?) - no change
    5. Removed an internet sharing app called open garden - no change
    6. Installed 10.8.1 - no change
    After trying all of this when we start mail everything looks good and then the outbound server abruptly goes "offline". The exchange host says there are no issues on their end. Internet works too. Email delivers/sends to his iPhone, iPad, and a home iMac that was also upgraded to 10.8.
    Anyone with other ideas? This one has me stumped.
    -Jonathan

    I have the exact same issue, but with a standard IMAP account and SMTP.  My iPhone can send out, using the EXACT same settings, from the exact same WiFi connection...but the 10.8 MacBook cannot send at all.  The only account I can send out on is my iCloud account. 
    I have also tried all the steps above...no luck.
    I have also turned off all network filters and firewalls...no luck.  (And as I said above, my iPhone is on the exact same WiFi connection and using the exact same settings, and it can send fine.)
    Other messages I've found via Google have suggested simply forcing the SMTP server to use Port 25, but that didn't work for me either.

  • Send high priority/importance mails using wf_mail.send

    Hello All,
    I wish to using wf_mail.send to send emails with p_content_type => wf_notification.doc_html
    I am getting the mails , however I need the mails to be sent with high importance or priority flag.
    (For eg: In outlook we have high importance flag)
    How can I do this using wf_mail.send ? In which parameter I need to mention this ?
    If this is not possible in wf_mail.send, Is there an alternative?
    Please help.
    Thanks.

    On the Message there is a field called Priority, choose High, Normal, or Low for the default priority of the message. The priority level simply informs the recipient of the urgency of the message. It does not affect the processing or delivery of the message.
    Or if you don't want the default set, you can change it on the insertion of the Notification in a Process.  It is on the tab "Node"

  • How to send attachment to internal mails

    hi,
    my requirement is ,
    i have to send alv output as attachment through mail to internal(sap) users.
    could you please some one provide me some solution

    I am enclosing the sample code to trigger an email, The logic for this is in comments, check this I am shure yuor problem will be solved.
    *& Report ZGBL_SLA_PER
    REPORT zgbl_sla_per NO STANDARD PAGE HEADING LINE-COUNT 26(3) MESSAGE-ID
    zmsg2.
    DECLARATION OF DB TABLES
    TABLES: zncrfid, zrule_id.
    DECLARATION OF INTERNAL TABLES
    DATA: BEGIN OF ncrf OCCURS 0,
    zncrf_id(15) TYPE c,
    zncrf_l4_name(60) TYPE c,
    z9gl_sla_flag(1) TYPE c,
    zowners(30) TYPE c,
    zowners_value(30) TYPE c,
    zdate_changed(8) TYPE n,
    ztime_changed(6) TYPE n,
    END OF ncrf.
    *DATA: NCRF LIKE ZNCRFID OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF it_ruleid OCCURS 0,
    zrule_id(10) TYPE c,
    zowners(30) TYPE c,
    zowners_value(30) TYPE c,
    END OF it_ruleid.
    *data: wa like ncrf occurs 0 with header line.
    DATA: BEGIN OF itab OCCURS 0,
    zncrf_id(15) TYPE c,
    zncrf_l4_name(60) TYPE c,
    z9gl_sla_flag(1) TYPE c,
    zowners(30) TYPE c,
    zowners_value(30) TYPE c,
    zdate_changed(8) TYPE n,
    ztime_changed(6) TYPE n,
    END OF itab.
    data: file(10) type c,
    dates type date.
    EMAIL DECLARATION
    *CONSTANTS: c_subject LIKE sodocchgi1-obj_descr VALUE 'Subject',
    *c_tab TYPE c VALUE cl_abap_char_utilities=>horizontal_tab.
    *DATA: g_time TYPE char8,
    *g_email(40) TYPE c,
    *g_sent_all(1) TYPE c,
    *g_doc_data LIKE sodocchgi1,
    *g_error TYPE sy-subrc.
    *DATA: i_message LIKE solisti1 OCCURS 0 WITH HEADER LINE,
    *i_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
    *i_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE.
    *DATA: BEGIN OF mailid OCCURS 0,
    zemail_id TYPE zrule_id-zemail_id,
    END OF mailid.
    *data: mailid like zrule_id occurs 0 with header line.
    UPLOADING FLAT FILE TO INTERNAL TABLE NCRF
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    filename = 'C:\VAMSY\file.txt'
    filetype = 'ASC'
    has_field_separator = 'X'
    HEADER_LENGTH = 0
    READ_BY_LINE = 'X'
    DAT_MODE = ' '
    CODEPAGE = ' '
    IGNORE_CERR = ABAP_TRUE
    REPLACEMENT = '#'
    CHECK_BOM = ' '
    IMPORTING
    FILELENGTH =
    HEADER =
    TABLES
    data_tab = ncrf[]
    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
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ELSE.
    IF sy-subrc EQ 0.
    Checking internal table ncrf is empty then
    *delete records from TABLE ZNCRF_ID ******************************
    IF ncrf[] IS INITIAL.
    MESSAGE i003(ZMSG2).
    ELSE.
    DELETE FROM zncrfid.
    ENDIF.
    *****Values are read from rule table and checking owner and owner_value
    *from zrule_id table and inserted into ZNCRFID **************
    SELECT * FROM zrule_id INTO CORRESPONDING FIELDS OF TABLE it_ruleid
    WHERE zrule_id IN ('OWNER1', 'OWNER2').
    append IT_RULEID.
    LOOP AT ncrf WHERE z9gl_sla_flag EQ 'Y'.
    READ TABLE it_ruleid WITH KEY zowners = ncrf-zowners
    zowners_value = ncrf-zowners_value.
    IF ncrf-zowners = it_ruleid-zowners AND ncrf-zowners_value =
    it_ruleid-zowners_value AND ncrf-z9gl_sla_flag ='Y'.
    itab-zncrf_id = ncrf-zncrf_id.
    itab-zncrf_l4_name = ncrf-zncrf_l4_name.
    itab-z9gl_sla_flag = ncrf-z9gl_sla_flag.
    itab-zdate_changed = sy-datum.
    itab-ztime_changed = sy-uzeit.
    itab-zowners = it_ruleid-zowners.
    itab-zowners_value = it_ruleid-zowners_value.
    APPEND itab.
    ENDIF.
    ENDLOOP.
    modify database table zncrfid FROM ITAB
    LOOP AT itab.
    WRITE:/ itab-zncrf_id, itab-zncrf_l4_name, itab-z9gl_sla_flag,
    itab-zowners, itab-zowners_value, itab-zdate_changed,
    itab-ztime_changed.
    zncrfid-zncrf_id = itab-zncrf_id.
    zncrfid-zncrf_l4_name = itab-zncrf_l4_name.
    zncrfid-z9gl_sla_flag = itab-z9gl_sla_flag.
    zncrfid-zowners = itab-zowners.
    zncrfid-zowners_value = itab-zowners_value.
    zncrfid-zdate_changed = itab-zdate_changed.
    zncrfid-ztime_changed = itab-ztime_changed.
    INSERT INTO zncrfid VALUES zncrfid.
    ENDLOOP.
    ENDIF.
    ENDIF.
    *CALL FUNCTION 'DATE_TO_DAY'
    EXPORTING DATE = sy-datum
    IMPORTING WEEKDAY = file.
    **CHECKING FOR THE FIRST MONDAY OF THE MONTH.
    dates = sy-datum.
    shift dates by 6 places left.
    if file CO 'monday' and dates < 7 and dates >= 1.
    else.
    message e004(zmsg2).
    endif.
    EMAIL SEND TO OWNERS LIST
    **Fill the mail body in i_message.
    get email id's from database into internal table et_mailid
    Fill the document data.
    *g_doc_data-doc_size = 1.
    Populate the subject/generic message attributes
    *g_doc_data-obj_langu = sy-langu.
    *g_doc_data-obj_name = 'SAPRPT'.
    *g_doc_data-obj_descr = c_subject .
    *g_doc_data-sensitivty = 'F'.
    Describe the body of the message
    Information about structure of data tables
    *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.
    Add the recipients email address
    *LOOP AT mailid.
    *CLEAR i_receivers.
    *i_receivers-receiver = mailid-zemail_id.
    *i_receivers-rec_type = 'U'.
    *i_receivers-com_type = 'INT'.
    *i_receivers-notif_del = 'X'.
    *i_receivers-notif_ndel = 'X'.
    *APPEND i_receivers.
    *ENDLOOP.
    Call the FM to post the message to SAPMAIL
    *CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    *EXPORTING
    *document_data = g_doc_data
    *put_in_outbox = 'X'
    *commit_work = 'X'
    *IMPORTING
    *sent_to_all = g_sent_all
    *TABLES
    *packing_list = i_packing_list
    *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.
    Store function module return code
    *g_error = sy-subrc.
    Get i_receivers return code
    *LOOP AT i_receivers.
    *ENDLOOP.
    **Instructs mail send program for SAPCONNECT to send email(rsconn01)
    *WAIT UP TO 2 SECONDS.
    *IF g_error EQ 0.
    *SUBMIT zgbl_sla_per WITH mode = 'INT'
    *WITH output = 'X'
    *AND RETURN.
    REWARD IF FOUND USEFULL,
    Cheers,
    Chandru

  • Send attachment from oracle mail....

    i got sample code --
    CREATE OR REPLACE AND COMPILE JAVA SOURCE NAMED "SendMail" AS
    import java.util.*;
    import java.io.*;
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.activation.*;
    public class SendMail {
    // Sender, Recipient, CCRecipient, and BccRecipient are comma-separated
    // lists of addresses. Body can span multiple CR/LF-separated lines.
    // Attachments is a ///-separated list of file names.
    public static int Send(String SMTPServer,
    String Sender,
    String Recipient,
    String CcRecipient,
    String BccRecipient,
    String Subject,
    String Body,
    String ErrorMessage[],
    String Attachments) {
    // Error status;
    int ErrorStatus = 0;
    // Create some properties and get the default Session;
    Properties props = System.getProperties();
    props.put("mail.akadia.com", SMTPServer);
    Session session = Session.getDefaultInstance(props, null);
    try {
    // Create a message.
    MimeMessage msg = new MimeMessage(session);
    // extracts the senders and adds them to the message.
    // Sender is a comma-separated list of e-mail addresses as per RFC822.
    InternetAddress[] TheAddresses = InternetAddress.parse(Sender);
    msg.addFrom(TheAddresses);
    // Extract the recipients and assign them to the message.
    // Recipient is a comma-separated list of e-mail addresses as per RFC822.
    InternetAddress[] TheAddresses = InternetAddress.parse(Recipient);
    msg.addRecipients(Message.RecipientType.TO,TheAddresses);
    // Extract the Cc-recipients and assign them to the message;
    // CcRecipient is a comma-separated list of e-mail addresses as per RFC822
    if (null != CcRecipient) {
    InternetAddress[] TheAddresses = InternetAddress.parse(CcRecipient);
    msg.addRecipients(Message.RecipientType.CC,TheAddresses);
    // Extract the Bcc-recipients and assign them to the message;
    // BccRecipient is a comma-separated list of e-mail addresses as per RFC822
    if (null != BccRecipient) {
    InternetAddress[] TheAddresses = InternetAddress.parse(BccRecipient);
    msg.addRecipients(Message.RecipientType.BCC,TheAddresses);
    // Subject field
    msg.setSubject(Subject);
    // Create the Multipart to be added the parts to
    Multipart mp = new MimeMultipart();
    // Create and fill the first message part
    MimeBodyPart mbp = new MimeBodyPart();
    mbp.setText(Body);
    // Attach the part to the multipart;
    mp.addBodyPart(mbp);
    // Attach the files to the message
    if (null != Attachments) {
    int StartIndex = 0, PosIndex = 0;
    while (-1 != (PosIndex = Attachments.indexOf("///",StartIndex))) {
    // Create and fill other message parts;
    MimeBodyPart mbp = new MimeBodyPart();
    FileDataSource fds =
    new FileDataSource(Attachments.substring(StartIndex,PosIndex));
    mbp.setDataHandler(new DataHandler(fds));
    mbp.setFileName(fds.getName());
    mp.addBodyPart(mbp);
    PosIndex += 3;
    StartIndex = PosIndex;
    // Last, or only, attachment file;
    if (StartIndex < Attachments.length()) {
    MimeBodyPart mbp = new MimeBodyPart();
    FileDataSource fds = new FileDataSource(Attachments.substring(StartIndex));
    mbp.setDataHandler(new DataHandler(fds));
    mbp.setFileName(fds.getName());
    mp.addBodyPart(mbp);
    // Add the Multipart to the message
    msg.setContent(mp);
    // Set the Date: header
    msg.setSentDate(new Date());
    // Send the message;
    Transport.send(msg);
    } catch (MessagingException MsgException) {
    ErrorMessage[0] = MsgException.toString();
    Exception TheException = null;
    if ((TheException = MsgException.getNextException()) != null)
    ErrorMessage[0] = ErrorMessage[0] + "\n" + TheException.toString();
    ErrorStatus = 1;
    return ErrorStatus;
    } // End Send Class
    } // End of public class SendMail
    /

    Assuming there is no question being asked there:
    http://www.oracle.com/technology/sample_code/tech/pl_sql/htdocs/maildemo_sql.txt

  • Cannot send message (from mac mail) using the server iCloud

    My Mac Mail send stopped working during a large number of mail sends yesterday.Could that be an issue? If so, what to do?
    Message further reads - The sender address [email protected] was rejected by the server smtp.mail.me.com.
    I deleted the account and set it up again, but still can't get the mail out. Same messages
    If I go on to iCloud, mail send is working fine.
    Can anyone see anything wrong or suggest what to do?
    I've deleted the user name below for the screenshot.
    Thanks in anticipation.

    TryinMyBestest wrote:
    My Mac Mail send stopped working during a large number of mail sends yesterday.Could that be an issue? If so, what to do?
    Message further reads - The sender address [email protected] was rejected by the server smtp.mail.me.com.
    I deleted the account and set it up again, but still can't get the mail out. Same messages
    If I go on to iCloud, mail send is working fine.
    Can anyone see anything wrong or suggest what to do?
    I've deleted the user name below for the screenshot.
    Thanks in anticipation.
    There is no user name entered in your SMTP (advanced) preferences.

Maybe you are looking for

  • Reading and Writing files to external controller with Agilent 4395A

    Hi everyone, I have been trying to store the Agilent 4395A Analyzer Compensation Files in an external controller, and then writing them back into the 4395A while running a program. I'm doing this because the 4395A's internal memory and disk storage a

  • Facebook Greetings for All Toshiba Users

    Hey everyone, I just wanted to advertise for all Toshiba users, fanpage on fb which is created by one of the authorized service. We will try to answer on all of your question, fix a parts for you if it will be needed or extend your warranty :) Check

  • My Emailed photo looks bad!

    When I email a specific picture, either from within Iphoto, or by copying photo to desktop and attaching it....it looks TERRIBLE in my email. (Overly saturated, skin tone too orange). This is an un-edited picture. The picture in question, looks perfe

  • Music disappearing from iphone 6

    I have an iPhone 6 128 GB. I went to put some music on it via iTunes and my macbook pro 13. I do not SYNC, I manually manage my music files. I noticed a large portion of my songs has been removed from my phone. When I plug my phone in and click on my

  • Psc 2110 all-in-one​, Windows Vista 32-bit,

    psc 2110 all-in-one, Windows Vista 32-bit, Tried to scan and now printer will not scan or print. I have uninstalled and reinstalled and it still doesn't work. HP diagnostic said I needed a new driver and HP by passes that request. Scanner hasn't work