Wheres my send button? Mail problems..

This is something strange, that I have tried to get help to solve.
About 2 months after I installed Leopard, the Mail application gave up. My "Send" button has disappeared, gone, away and I have tried everything possible to solve it but its seems impossible. So i've changed to Thunderbird for the moment until Mail could be fixed, and the funny thing is that thunderbird has the same settings as Mail and it works.
I have checked for misspelling and all that but Mail actually worked for 2 months but just gave up after an update from Apple. Getting the Mail works fine, its just when composing one. If your composing an email, the field where you select the email account you wish to send from is in red typing, both my .Mac account and my work mail. The "Send" button that is supposed to be at the left is nowhere to be found...
I installed iAlertU a week ago and its able to send its cam captures trough Mail, which seems a bit strange to me.
Please, anyone... I need help...
Message was edited by: Maximilian Kylén

As far as I remember, the account being red in the menu means a misconfiguration of the account. Verify that you have everything configured, especially SMTP server, if missing, will prevent Mail.app to send your message.
About the Send button, if not related to a misconfiguration of the account, may be just caused by the button being deleted from the toolbar, which is configurable.
1. If the toolbar on top of the message window is not displayed, display it with the little button on the top right of the window.
2. Right click, or control click on an empty space of the toolbar, and choose "Customize Toolbar"
3. Find the "Send" Button here, and place it where you want in the toolbar, by drag and drop.
I hope that helps

Similar Messages

  • Where is SEND button in latest version?

    After v.5, the Intant Message  SEND button was relocated outside the message text panel. When the panel is reduced to less than 50% of screen width, the SEND button vanishes. Has the button been relocated INSIDE in the text panel in the latest version? I don't wish to d/l the latest version if I must then re-instal the earlier version.
    I know about configuring 'Return' to either send a message or create a new line - that's not the issue. I wish to create a new line when I have multiple IM panels open, each one perhaps 25% of screen width and I then need a visible SEND button
     Peter-S
    Solved!
    Go to Solution.

    Yesterday when I opened Skype I found that no matter how I changed the screen there was no longer a 'send' button! Now I didn't use it anymore because the option to remove her 'enter' key from sending was no longer there. I missed it as I often want a line break and without holding the shift key the message sent when I only wanted to give a line break! Well the took away the send key as I guess they figured no one used it! In looking in 'tools' 'options' I found in and advanced setting and there again was the option to change the use of the 'enter' key. so I changed it to 'line break' ! then when I finished the message I wondered how was I to send the message since the send key was gone? in speaking to a friend in France who uses Linux as an OS he said he had to use the Ctrl key with the Enter key. So I tried that and it works!

  • Sender Adapter Mail Problem

    Hello All,
    on PI 7.0, i have a scenario MAIL -> PI -> MAIL.
    I've configured the sender mail adapter in order to keep attachment and using pop protocol.
    When i test, the problem is that everything is green in the CC monitoring but it doesn't take any mail from the mailbox server, still in it. i see 0 mail taken in the CC monitoring.
    Since i don't have error messages i don't know how and where to look at ! Do you have some ideas ?
    For infos, i've based my configuration with the help of this blog :
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    EDIT : For further more informations, i am using a Lotus server for the mail.
    Thanks,
    Jean-Philippe
    Edited by: Jean-Philippe PAIN on Jan 14, 2010 6:08 PM

    Hi Jean,
      Have you tried to open the link *http://xiserver:port/mdt/amtServlet
    as suggested by Michal? What is the status there? There you can see whether the mail has been received by your mail adapter or not. If not, then check with your POP server and ports again. Look whether you have the POP port opened bi-directionally for your PI server.
    Regards,
    Sugata

  • Mail & Adress Book: issues sending group mail - Problem solved

    I started writing this discussion because I could not get something to work. As I wrote it, I made many tests to confirm what I was writing and also read several past discussions on the subject. I ended up solving my problem and decided to share my findings. Hope it is useful to other people.
    EMAIL TO A GROUP WITH ALL RECIEPIENTS SHOWING IN THE «TO» HEADER - My problem solved
    SENDING FROM THE MAIL APPLICATION:
    To start do the following:  Mail/Preferences/Composing  check «Show members of a group»
    Then for a group name with two or more words OR wit a one word group name, start writing the group name in the «TO» header of an email wait until the « () » appears highlithed in a color as you slowly write the Address Book group name and then select the group name from the scroling list appearing below which comes from your Adress Book (whether it's open or not). If you choose in a selection list before the « () » appears as you type, you could end up with an empty list and the group email does not work. When the « () » does not yet appear but the group name does below, it most likely will not work but if you scroll down you may find a second one that will.  The whole thing is wear but once you get the hang of it you make it work everytime.
    SENDING FROM THE ADDRESS BOOK APPLICATION:
    If you try to send the email to a group from the application ADRESS BOOK by pressing «ctrl» & right clicking the name of the group and select «Send an email to GROUP-NAME», it will work also. But the group name must not have a space before its name in the Address Book (one could decide to do this to have a group to appear at the top of a list of groups). The latter was my problem and sending from the address book application did not work.
    EMAIL TO A GROUP WITH «UNDISCLOSED RECIPIENTS» SHOWING IN THE «TO» HEADER  - My problem solved
    First one has to uncheck the «Show members of a group» in Mail/Preferences/Composing
    Second strat a new email and proceed as described above in «1.»  in the second and third paragraph.
    As suggested in one discussion, if you still can not get it to work try closing your Mail and Address Book applications and re-open them.
    As suggeted in another discussion by Ernie Stamper on May 15 2009 in the «Can't send an email to a group»:
    «In Mail Preferences/Composing, select to Show members of a group, and then compose a message (no need to send for this test) using the group address -- do the 9 addresses show in the message header? If so, then report the name of the provider of the SMTP you are using. It might be that they do not allow the Group in the To -- when working correctly, the recipient sees only Undesignated Recipients in the header.»
    I'm using Mac OS X 10.7.5 and Mail 5.3 (1283) on an iMac 2009
    Can't send an email to a group.

    Hi Priyanka,
    I can't get it working. I get this error:
    2007/03/25 17:23:00] Error in evaluate <from> expression at line "98". The result is empty for the XPath expression : "ids:getUserProperty('esbMailTo', 'mail', 'jazn.com')".
    [2007/03/25 17:23:00] "{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure" has been thrown.less
    - <selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
    - <part name="summary">
    <summary>
    empty variable/expression result.
    xpath variable/expression expression "ids:getUserProperty('esbMailTo', 'mail', 'jazn.com')" is empty at line 98, when attempting reading/copying it.
    Please make sure the variable/expression result "ids:getUserProperty('esbMailTo', 'mail', 'jazn.com')" is not empty.
    </summary>
    </part
    In users-properties.xml I have this:
    <userObject>
         <name>esbMailTo</name>
            <description>MailTo</description>
         <mail>[email protected]</mail>           
         <title>Loan Agent 1</title>
         <firstName>James</firstName>
         <lastName>Cooper</lastName>
         <manager>jstein</manager>
            <timeZone>America/Los_Angeles</timeZone>
         <languagePreference>en-US</languagePreference>
         <notificationPreferences>Mail</notificationPreferences>
         </userObject> Any ideas?
    Regards Pete

  • Sending & receiving mail problems in Yosemite

    I have had continuous problems wt my Comcast mail for months now. The problem started after I did a clean install of Yosemite. My mail settings, and passwords are all correct. I used connection doctor, and it said that I had two Comcast.net smtp accounts. One was green, while the other was red. I'm quite sure that I only have one, that I set up, but still deleted my Comcast mail account, hoping that this would remove the offending account. I removed it, and checked connection doctor again. It still says trying to log in to this Comcast SMTP account failed. Verify that the username, and password are correct. This is really confusing me, because I no longer even have a Comcast account account, even set up in mail. I am guessing that the extra offending Comcast account is to blame, but I can't seem to locate or delete it from my mac. Any ideas why I can't Comcast to work?

    I believe I fixed the problem wt some internet searching, and help from above. I read on another site, that sometimes if you have multiple passwords in your keychain for mail, it can cause problems. I checked my keychain, and sure enough, I had 3 different passwords, set up for my dektop mail account. One of them, was the password, that Comcast had changed my email too, when I had called them previously about the problem. I had changed it back, but the older one in the keychain was still inadvertently taking control. I removed all of my desktop mail  login from the keychain, deleted all email accounts in my mac for good measure, and then added them again. I changed my password also through Comcast, from the goofy one they chose. So far all of my mail accounts are working A-Ok. Should I have removed the older passwords from my keychain? I change online email passwords occasionally, on the Internet, but never had a problem wt my keychain mixing up passwords before.

  • Where to send Apple Mail suggestions & new ideas.

    Hi, I have one fast Question.
    Does anyone knows an email from somebody at Apple that I can write some suggestions for the Apple Mail application?
    I have been using this app for the past four years and I think it REALLY!!! needs some easy add-ons and fixes to make it better.
    I really appreciate the help.
    Sam
    MacBook Pro Mac OS X (10.4.9)

    samgtz, welcome to Apple Discussions from a fellow Texan.
    Try using this page. http://www.apple.com/macosx/feedback/
     Cheers, Tom

  • Help required in sending automated mails to hr-coordinator

    Dear Friends,
    I have a requirement where to send the mails to HR co-ordinator via r3-program
    suggestions are appreciated, Help me in this regard.
    Thanks in advance.
    Regards,
    nallani.

    Hi Nallani,
    Write a <Zprogram>, use your own logic in the program to send mails.
    Example: Suppose mails should be generated to the respective administrators when a employee is hired.
    clue - once IT 0001 is saved you should generate a mails.
    Solution: My logic is, check Personnel area & Personnel sub-area, based  on this in IT 0001 - pick up respective Administrator for that employee, and run the program to send mails.
    for this you need to maintain Dynamic actions for IT 0001, there you need to  maintain your <Zprogram>, while change/create of IT 0001, <Zprogram> should be executed
    [Insure the respective administrators maintained with their e-mail id addresses]
    Hope you got an idea how to make a show for your query?
    Cheers,
    TG

  • Mail App - Where is Send or cancel button in Fullscreen mode??

    Mail App - Where is Send or cancel button in Fullscreen mode??

    well, i don't have it.
    it's full screen mode - don't forget it.
    Navweb3620 -> I have it without the dark grey bar. :\

  • Send button on "new" mail missing.

    The SEND button on the new mail being composed has gone missing. I checked on the same MACOSX version of my Powerbook and it's still there. Anyone have any idea what's happened.
    Thanks,
    Bette

    Thanks. My Send button is now back. It took me a while to understand what and exactly where the lozenge shaped button is, Finally found it under the upper right magnifying glass -- the oblong shaped untitled button. Duh! BTW, love the upper right magnifying glass to search my computer.
    Thanks for solving this headache.
    I had a difficult time getting my outgoing SMTP server for BellSouth (AT&T) set up for Mail 3.1. Has to be exactly right and ATT only has on line instructions up to 2.1. Changing outgoing server took two saves -- first time entered new server, stayed at "none" and had to go back in to select.
    Off and running with my new and first mac. Yay! Though very disappointed to have to run Quicken 2008 for PC on Boot Camp given the problems with Q 2007 for mac. Pages and pages of instructions to port and still lots of warnings about possible problems with Mac version. Also off to google how to surf and download while in Boot Camp so I can download to Quicken.

  • Mail wont let me click 'send' button

    I have a problem and then some questions about my mail app.
    Below is a screenshot of my problems, the main problem is it wont let me click the 'send' button.
    The other problem is there is that triangly line symbol new to my windows live account and it always makes me put my password in.. I never had this mail send problem until a month ago and i've been too frustrated to brother to fix it until now.
    Help?
    http://img413.imageshack.us/img413/5350/screenshot20110110at650.png

    Normally this is the result of not having any SMTP selected for the account. Check in Mail Preferences/Accounts/Account Information for whether a SMTP is currently selected for the account.
    Ernie

  • "Send" button not working in Mail

    Picked up Leopard on an iMac two days ago. Some of the time when I compose a new email, Mail works fine--I click "send" once I'm through typing and out it goes.
    Other times--like this morning--I try to send an email and the "send" button is transparent and does not click. This is not a server issue. I tried adding the recipients to my address book in case there was some weird thing where that had to be done first. But to no avail--the "send" button won't click, nor will the "send" command within the toolbar or drop-down menus--and so I have no clue how I'm supposed to send this email if the button to do it is not working. Help!

    Unfortunately, the SMTP and outgoing mail settings aren't the issue. The issue is that the "send" button is visible but un-clickable. I tested sending mail from all of my accounts and it works just fine--sometimes. Other times, I try to reply to an email or send out a new one and the "send" button does not allow me to send anything at all.

  • Problem in sending a mail in Excel Format

    Hi Experts,
              i have created one report which send a mail to the customer in Excel format. For that Report, i have used on function module for downloading .
      the Coding is like this,
       CALL FUNCTION 'WS_DOWNLOAD'
             EXPORTING
                  FILENAME = 'C:\YD1.XLS'
                  FILETYPE = 'DAT'
             TABLES
                  DATA_TAB = ITAB_RESULT
                  FIELDNAMES = IOUTHEAD.
      After Downloading i have send the XLS File to the Customer using user Function Module.
      My Problem is,
            I have attached the Excel to the Custmer.
    But the Excel File not displaying the headers . But In my Business Workplace(sbwp) the Attached Excel file displaying the header and the Details . in SBWP it is displaying correctly. But when the Customer's Place(SyStem) the particular Excel File not displaying the Headers.
       where and what is the error in my report?
    Regards,
    Neptune.M

    HI
    GOOD
    CHECK OUT THIS LINK,
    http://www.thespot4sap.com/Articles/SAP_Mail_UNIX.asp
    CODE
    FORM SEND_MAIL.
      DATA: OBJPACK   LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.
      DATA: OBJHEAD   LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE.
      DATA: OBJBIN    LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
      DATA: OBJTXT    LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
      DATA: RECLIST   LIKE SOMLRECI1 OCCURS 5 WITH HEADER LINE.
      DATA: DOC_CHNG  LIKE SODOCCHGI1.
      DATA: TAB_LINES LIKE SY-TABIX.
      DATA L_NUM(3).
    Creation of the document to be sent
    File Name
      DOC_CHNG-OBJ_NAME = 'SENDFILE'.
    Mail Subject
      DOC_CHNG-OBJ_DESCR = 'Delivered Mail'.
    Mail Contents
      OBJTXT = 'Object text'.
      APPEND OBJTXT.
      DESCRIBE TABLE OBJTXT LINES TAB_LINES.
      READ TABLE OBJTXT INDEX TAB_LINES.
      DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
    Creation of the entry for the compressed document
      CLEAR OBJPACK-TRANSF_BIN.
      OBJPACK-HEAD_START = 1.
      OBJPACK-HEAD_NUM = 0.
      OBJPACK-BODY_START = 1.
      OBJPACK-BODY_NUM = TAB_LINES.
      OBJPACK-DOC_TYPE = 'RAW'.
      APPEND OBJPACK.
    Creation of the document attachment
      LOOP AT ITAB_DATA.
        CONCATENATE ITAB_DATA-PRODUCTOR
                    ITAB_DATA-VBELN
                    ITAB_DATA-POSNR
                    ITAB_DATA-MATNR INTO OBJBIN.
        APPEND OBJBIN.
      ENDLOOP.
      DESCRIBE TABLE OBJBIN LINES TAB_LINES.
      OBJHEAD = 'ORDERS'.
      APPEND OBJHEAD.
    Creation of the entry for the compressed attachment
      OBJPACK-TRANSF_BIN = 'X'.
      OBJPACK-HEAD_START = 1.
      OBJPACK-HEAD_NUM   = 1.
      OBJPACK-BODY_START = 1.
      OBJPACK-BODY_NUM   = TAB_LINES.
      OBJPACK-DOC_TYPE   = 'TXT'.
      OBJPACK-OBJ_NAME   = 'WEBSITE'.
      OBJPACK-OBJ_DESCR  = 'ORDERS.TXT'.
      OBJPACK-DOC_SIZE   = TAB_LINES * 255.
      APPEND OBJPACK.
    Completing the recipient list
    target recipent
      clear RECLIST.
      RECLIST-RECEIVER = '[email protected]'.
      RECLIST-EXPRESS  = 'X'.
      RECLIST-REC_TYPE = 'U'.
      APPEND RECLIST.
    copy recipents
      clear RECLIST.
      RECLIST-RECEIVER = '[email protected]'.
      RECLIST-EXPRESS  = 'X'.
      RECLIST-REC_TYPE = 'U'.
      RECLIST-COPY     = 'X'.
      APPEND RECLIST.
    Sending the document
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
           EXPORTING
                DOCUMENT_DATA              = DOC_CHNG
           TABLES
                PACKING_LIST               = OBJPACK
                OBJECT_HEADER              = OBJHEAD
                CONTENTS_BIN               = OBJBIN
                CONTENTS_TXT               = OBJTXT
                RECEIVERS                  = RECLIST
           EXCEPTIONS
                TOO_MANY_RECEIVERS         = 1
                DOCUMENT_NOT_SENT          = 2
                OPERATION_NO_AUTHORIZATION = 4
                OTHERS                     = 99.
    ENDFORM.                    " SEND_MAIL
    THANKS
    MRUTYUN

  • Problem  while sending the mail from sap

    Hi experts,
                     I am facing some problem while sending mail from sap to external mail.
    this is th code i am using but it is not working. plz check and tell me.
    REPORT  ZMAIL_DEMO.
    data: maildata type sodocchgi1.
    data: mailtxt type table of solisti1 with header line.
    data: mailrec type table of somlrec90 with header line.
    start-of-selection.
    break-point.
    clear: maildata, mailtxt, mailrec.
    refresh: mailtxt, mailrec.
    maildata-obj_name = 'TEST'.
    maildata-obj_descr = 'Test'.
    maildata-obj_langu = sy-langu.
    mailtxt-line = 'This is a test'.
    append mailtxt.
    mailrec-receiver = 'SOME MAIL ID'.
    mailrec-rec_type = 'U'.
    append mailrec.
    call function 'SO_NEW_DOCUMENT_SEND_API1'
    exporting
    document_data = maildata
    document_type = 'RAW'
    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.   "( did not receive any mail) *
    write : 'mail sent'.
    endif.

    Hi,
    Please check with the following code.
    TABLES: KNA1.
    data for send function
    DATA DOC_DATA  LIKE SODOCCHGI1.
    DATA OBJECT_ID LIKE SOODK.
    DATA OBJCONT   LIKE SOLI OCCURS 10 WITH HEADER LINE.
    DATA RECEIVER  LIKE SOMLRECI1 OCCURS 1 WITH HEADER LINE.
    SELECT * FROM KNA1 WHERE ANRED LIKE 'C%'.
      WRITE:/ KNA1-KUNNR, KNA1-ANRED.
    send data internal table
      CONCATENATE KNA1-KUNNR KNA1-ANRED
                             INTO OBJCONT-LINE SEPARATED BY SPACE.
      APPEND OBJCONT.
    ENDSELECT.
    insert receiver (sap name)
      REFRESH RECEIVER.
      CLEAR RECEIVER.
      MOVE: 'any_email'_ TO RECEIVER-RECEIVER,                " SY-UNAME
            'X'      TO RECEIVER-EXPRESS,
            'U'      TO RECEIVER-REC_TYPE.
      APPEND RECEIVER.
    insert mail description
      WRITE 'Sending a mail through abap'
                     TO DOC_DATA-OBJ_DESCR.
    CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
         EXPORTING
              DOCUMENT_DATA              = DOC_DATA
         IMPORTING
              NEW_OBJECT_ID              = OBJECT_ID
         TABLES
              OBJECT_CONTENT             = OBJCONT
              RECEIVERS                  = RECEIVER
         EXCEPTIONS
              TOO_MANY_RECEIVERS         = 1
              DOCUMENT_NOT_SENT          = 2
              DOCUMENT_TYPE_NOT_EXIST    = 3
              OPERATION_NO_AUTHORIZATION = 4
              PARAMETER_ERROR            = 5
              X_ERROR                    = 6
              ENQUEUE_ERROR              = 7
              OTHERS                     = 8.

  • Problem with the ALV after sending the mail

    Good Morning Experts
    I have a small issue with the ALV. I have a program, which has to sent email. In My program initially I am displaying basic list in the alv and user can navigate to secondary list also, by clicking on a contract number in the basic list.
    I gave a tool button in the tool bar to the user in the basic list, to send the mail. When the user clicks on the I have to send the mail both the lists, basic list and seconday list in the mail as separate attachments.
    Mail is going fine and later if the user chooses to see any contract in detail(Secondary List), that time ALV giving dump with message type X. And it is stopping some where in the ALV code
    call method cl_gui_cfw=>get_subscriber_by_id
           exporting shellid = p_handle-shellid
           exceptions others = 1.
      if sy-subrc = 0.
        </B>message X007 with p_handle-clsid.<B>
      endif.
    If anybody having an Idea, how to resolve it, please tell me.
    Thanks in Advance
    Praveen

    Please find the code for user_command form and sending the mail. Please look into this advice me if anything wrongly I coded.
    *&      Form  user_command
    FORM user_command USING r_ucomm LIKE sy-ucomm
                                  rs_selfield TYPE slis_selfield.
      IF r_ucomm EQ '&IC1' OR r_ucomm EQ 'SHOW'.
        REFRESH: it_all[],
                 it_fcat1[],
                 it_sort[].
        LOOP AT it_final INTO wa_final WHERE select EQ 'X' OR xblnr EQ rs_selfield-value.
          LOOP AT it_bsid INTO wa_bsid WHERE xblnr EQ wa_final-xblnr AND zuonr IS INITIAL.
            wa_all = wa_bsid.
            wa_all = wa_bsid.
            wa_all-booked = wa_bsid-dmbtr.
            IF wa_bsid-augdt IS NOT INITIAL AND wa_bsid-augbl IS NOT INITIAL.
              wa_all-paid = wa_bsid-dmbtr.
            ENDIF.
            wa_all-amtr = wa_all-booked - wa_all-paid.
            APPEND wa_all TO it_all.
            CLEAR: wa_all,
                   wa_bsid.
          ENDLOOP.
          LOOP AT it_bsad INTO wa_bsad WHERE xblnr EQ wa_final-xblnr AND zuonr IS INITIAL.
            wa_all = wa_bsad.
            wa_all-booked = wa_bsad-dmbtr.
            IF wa_bsad-augdt IS NOT INITIAL AND wa_bsad-augbl IS NOT INITIAL.
              wa_all-paid = wa_bsad-dmbtr.
            ENDIF.
            wa_all-amtr = wa_all-booked - wa_all-paid.
            APPEND wa_all TO it_all.
            CLEAR: wa_all,
                   wa_bsad.
          ENDLOOP.
        ENDLOOP.
        SORT it_all BY xblnr.
        PERFORM fill_fcat2.
        CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
         EXPORTING
            i_callback_program                = sy-repid
            i_callback_top_of_page            = 'TOP_OF_PAGE'
            i_grid_title                      = 'Report to display selected contracts'
            is_layout                         = wa_layout1
            it_fieldcat                       = it_fcat1[]
       I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'
            IT_SORT                           = it_sort[]
            i_default                         = 'X'
            i_save                            = 'A'
            is_variant                        = wa_variant
          TABLES
            t_outtab                          = it_all[]
    EXCEPTIONS
      PROGRAM_ERROR                     = 1
      OTHERS                            = 2
        IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
      ENDIF.
      CASE r_ucomm.
        WHEN 'BACK1' OR 'EXT1'.
          PERFORM exit IN PROGRAM  saplslvc_fullscreen.
        WHEN '&F12' or 'CANCEL'.
          PERFORM exit IN PROGRAM  saplslvc_fullscreen.
        WHEN 'MAIL'.
           PERFORM prepare_mail.
      ENDCASE.
    ENDFORM.                    "user_command
    *&      Form  prepare_mail
          text
    -->  p1        text
    <--  p2        text
    FORM prepare_mail .
      DATA:
           l_lay    TYPE pri_params-paart,
           l_line  TYPE pri_params-linct,
           l_cols   TYPE pri_params-linsz,
           l_val    TYPE c,
           i_spno   TYPE tsp01-rqident,
           i_lines  TYPE i,
           i_bin    TYPE i,
           i_pack_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
           i_recivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
           i_contents LIKE solisti1 OCCURS 0 WITH HEADER LINE,
           i_header    LIKE solisti1  OCCURS 0 WITH HEADER LINE,
           i_docdata   LIKE sodocchgi1,
           i_excel     LIKE solisti1 OCCURS 0 WITH HEADER LINE.
      i_pos    type i.
      TYPES:
         t_pripar TYPE pri_params,
         t_arcpar TYPE arc_params.
      "Work areas
      DATA:
         lw_pripar TYPE t_pripar,
         lw_arcpar TYPE t_arcpar,
         w_no_of_bytes TYPE i.
      l_lay   = 'X_65_255'.
      l_line  = 65.
      l_cols  = 255.
      "Read, determine, change spool print parameters and archive parameters
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING
          in_archive_parameters  = lw_arcpar
          in_parameters          = lw_pripar
          layout                 = l_lay
          line_count             = l_line
          line_size              = l_cols
          no_dialog              = 'X'
        IMPORTING
          out_archive_parameters = lw_arcpar
          out_parameters         = lw_pripar
          valid                  = l_val
        EXCEPTIONS
          archive_info_not_found = 1
          invalid_print_params   = 2
          invalid_archive_params = 3
          OTHERS                 = 4.
    *l_val eq space
      IF  sy-subrc = 0.
        lw_pripar-prrel = space.
        lw_pripar-primm = space.
        NEW-PAGE PRINT ON
          NEW-SECTION
          PARAMETERS lw_pripar
          ARCHIVE PARAMETERS lw_arcpar
          NO DIALOG.
      ENDIF.
      DATA: ls_prnt TYPE slis_print_alv.
      ls_prnt-print = ''.
      ls_prnt-prnt_title = 'X'.
      ls_prnt-no_coverpage = 'X'.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
          i_callback_program                = sy-repid
          i_callback_top_of_page            = 'TOP_OF_PAGE'
          i_grid_title                      = 'Report to display collection pattern on Clearing Date'
          is_layout                         = wa_layout
          it_fieldcat                       = it_fcat[]
          i_callback_user_command           = 'USER_COMMAND'
          i_callback_pf_status_set          = 'PF_STATUS_SET'
       IT_SORT                           = it_sort[]
          i_default                         = 'X'
          i_save                            = 'A'
          is_variant                        = wa_variant
        TABLES
          t_outtab                          = it_final[]
    EXCEPTIONS
      PROGRAM_ERROR                     = 1
      OTHERS                            = 2
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    WRITE 'Test program to generate and download as PDF'.
      NEW-PAGE PRINT OFF.
      CALL FUNCTION 'ABAP4_COMMIT_WORK'.
      i_spno = sy-spono.
      CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
        EXPORTING
          src_spoolid   = i_spno
          no_dialog     = 'X'
        IMPORTING
          pdf_bytecount = w_no_of_bytes
         pdf_spoolid   = w_pdf_spoolid
         btc_jobname   = w_jobname
         btc_jobcount  = w_jobcount
        TABLES
          pdf           = it_pdf.
      LOOP AT it_pdf INTO wa_pdf.
        IF w_pos = 34170.
          PERFORM attach.
        ENDIF.
        w_stuff+w_pos(134) = wa_pdf.
        ADD 134 TO w_pos.
      ENDLOOP.
      IF NOT ( w_stuff IS INITIAL ).
        PERFORM attach.
      ENDIF.
      CLEAR wa_pdf.
      PERFORM fill_receivers TABLES i_recivers.
      PERFORM fill_contents TABLES i_contents.
      DESCRIBE TABLE i_contents LINES i_lines.
      READ TABLE i_contents INDEX i_lines.
      CLEAR i_pack_list-transf_bin.
      i_pack_list-head_start = 1.
      i_pack_list-head_num = 1.
      i_pack_list-body_start = 2.
      i_pack_list-body_num = i_lines.
      i_pack_list-doc_type = 'RAW'.
      APPEND i_pack_list.
      CLEAR i_pack_list.
    *u2022  Attachment (pdf-Attachment)
    CONCATENATE p_date6(2) p_date4(2) p_date+0(4) INTO w_date1 SEPARATED BY '.'.
      DESCRIBE TABLE it_att LINES i_lines.
      READ TABLE it_att INTO wa_att INDEX i_lines.
      i_pack_list-transf_bin = 'X'.
      i_pack_list-head_start = '1'.
      i_pack_list-head_num = '0'.
      i_pack_list-body_start = '1'.
      i_pack_list-body_num = i_lines.
      i_pack_list-doc_type = 'PDF'.
      i_pack_list-obj_name = 'Renewal List'.
      CONCATENATE 'Report to display outstanding premium' 'Executed on' w_date1 INTO i_pack_list-obj_descr SEPARATED BY space.
    i_pack_list-obj_descr = 'Exchange Rates uploaded to the database'.
      i_pack_list-obj_langu = 'E'.
      i_pack_list-doc_size = i_lines * 255.
      APPEND i_pack_list.
      CLEAR i_pack_list.
      REFRESH: it_pdf[].
      CLEAR wa_pdf.
      REFRESH: it_all[],
                it_fcat1[],
                it_sort[].
      LOOP AT it_final INTO wa_final.
        LOOP AT it_bsid INTO wa_bsid WHERE xblnr EQ wa_final-xblnr AND zuonr IS INITIAL.
          wa_all = wa_bsid.
          wa_all-booked = wa_bsid-dmbtr.
          IF wa_bsid-augdt IS NOT INITIAL AND wa_bsid-augbl IS NOT INITIAL.
            wa_all-paid = wa_bsid-dmbtr.
          ENDIF.
          wa_all-amtr = wa_all-booked - wa_all-paid.
          APPEND wa_all TO it_all.
          CLEAR: wa_all,
                 wa_bsid.
        ENDLOOP.
        LOOP AT it_bsad INTO wa_bsad WHERE xblnr EQ wa_final-xblnr AND zuonr IS INITIAL.
          wa_all = wa_bsad.
          wa_all-booked = wa_bsad-dmbtr.
          IF wa_bsad-augdt IS NOT INITIAL AND wa_bsad-augbl IS NOT INITIAL.
            wa_all-paid = wa_bsad-dmbtr.
          ENDIF.
          wa_all-amtr = wa_all-booked - wa_all-paid.
          APPEND wa_all TO it_all.
          CLEAR: wa_all,
                 wa_bsad.
        ENDLOOP.
      ENDLOOP.
       NEW-PAGE PRINT ON
          NEW-SECTION
          PARAMETERS lw_pripar
          ARCHIVE PARAMETERS lw_arcpar
          NO DIALOG.
    ENDIF.
      SORT it_all BY xblnr.
      PERFORM fill_fcat2.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
          i_callback_program                = sy-repid
          i_callback_top_of_page            = 'TOP_OF_PAGE'
          i_grid_title                      = 'Report to display selected contracts'
          is_layout                         = wa_layout1
          it_fieldcat                       = it_fcat1[]
       I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'
          it_sort                           = it_sort[]
          i_default                         = 'X'
          i_save                            = 'A'
          is_variant                        = wa_variant
        TABLES
          t_outtab                          = it_all[]
    EXCEPTIONS
      PROGRAM_ERROR                     = 1
      OTHERS                            = 2
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      NEW-PAGE PRINT OFF.
      CALL FUNCTION 'ABAP4_COMMIT_WORK'.
      i_spno = sy-spono.
      CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
        EXPORTING
          src_spoolid   = i_spno
          no_dialog     = 'X'
        IMPORTING
          pdf_bytecount = w_no_of_bytes
         pdf_spoolid   = w_pdf_spoolid
         btc_jobname   = w_jobname
         btc_jobcount  = w_jobcount
        TABLES
          pdf           = it_pdf.
    LOOP AT it_pdf INTO wa_pdf.
        IF w_pos = 34170.
          PERFORM attach1.
        ENDIF.
        w_stuff+w_pos(134) = wa_pdf.
        ADD 134 TO w_pos.
      ENDLOOP.
      IF NOT ( w_stuff IS INITIAL ).
        PERFORM attach1.
      ENDIF.
      CLEAR wa_pdf.
    DESCRIBE TABLE it_att LINES i_lines.
      ADD 1 TO i_lines.
      DESCRIBE TABLE it_att1 LINES i_bin.
      READ TABLE it_att1 INTO wa_att INDEX i_bin.
    DESCRIBE TABLE it_att LINES i_lines.
    READ TABLE it_att INTO wa_att INDEX i_lines.
      i_pack_list-transf_bin = 'X'.
      i_pack_list-head_start = '1'.
      i_pack_list-head_num = '0'.
      i_pack_list-body_start = i_lines.
      i_pack_list-body_num = i_bin.
      i_pack_list-doc_type = 'PDF'.
      i_pack_list-obj_name = 'Renewal List-Details'.
      CONCATENATE 'Outstanding Premium-Details' w_date1 INTO i_pack_list-obj_descr SEPARATED BY space.
    i_pack_list-obj_descr = 'Exchange Rates uploaded to the database'.
      i_pack_list-obj_langu = 'E'.
      i_pack_list-doc_size = i_bin * 255.
      APPEND i_pack_list.
      CLEAR i_pack_list.
      APPEND LINES OF it_att1 to it_att.
      i_docdata-obj_name = 'Renewal List'.
      CONCATENATE 'Oustanding Premium' 'as on' w_date1 INTO i_docdata-obj_descr SEPARATED BY space.
      CONDENSE i_docdata-obj_descr.
      i_docdata-obj_langu = 'E'.
      i_docdata-obj_prio = '1'.
      i_docdata-no_change = 'X'.
      i_docdata-sensitivty = 'F'.
      i_docdata-doc_size = ( i_lines - 1 ) * 255 + STRLEN( wa_att ).
    ***Data for Header
      i_header-line = 'Header'. APPEND i_header.
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = i_docdata
          commit_work                = 'X'
        TABLES
          packing_list               = i_pack_list[]
          object_header              = i_header
          contents_bin               = it_att[]
          contents_txt               = i_contents[]
          receivers                  = i_recivers[]
        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.
      ELSE.
        MESSAGE 'Document Sent' TYPE 'S'.
      ENDIF.
    ENDFORM.                    " prepare_mail
    Thanks
    Praveen

  • Send Button Problem

    If I send the form per mail (per allocation-function of LifeCycle Designer) to Mr.X
    Mr.X can fulfil my form and click on the send-button in the form - the form will come right back to my adress. That is good.
    Now, what is not good:
    If Mr.X do not get the form per mail, if he open the form from the public server - the send-button doesn't work. He get the pop-up: "This action is not allowed" (in german: "Dieser Vorgang ist nicht zulässig"), even it is not poosible to send the fulfilled form out of outlook.
    How can I solve the problem. (The form must be openable from the server and then easy to send!)
    (I am working with Adobe LifeCycle Designer 8.0 / public are working with Adobe Reader 7.08)
    best regards joachim

    Open your Settings > Accounts.
    At the bottom of the screen > Set Defaults.
    Do you have an email account set as your default send from email?
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

Maybe you are looking for