Automatically send e-mail function or object

Hy! I need a function or an method of an specific object to automatically send e-mails.
Thanx

Hi,
The way we created automatic e-mails are by using actions. In the action, you can call a method. We created a method of our own which basically contains the following steps:
Determine order data (FM CRM_ORDER_READ) --> determines you BP's
Determine BP addressdata (FM BUPA_ADDRESSES_GET + BUPA_ADDRESS_GET_DETAIL) --> determines the e-mail address
Then we call an self-defined FM that composes the mail and sends it afterwards:
prepare the e-mail text
set the e-mail properties
generate the e-mail (FM SO_NEW_DOCUMENT_SEND_API1)
SUBMIT rsconn01 USING SELECTION-SET 'SAP&CONNECTINT' AND RETURN
Of course, there are also other ways to do this, but this solution we created gives us the flexibility to also sent mass-mails from one transaction within one action.
Hope you can use this...

Similar Messages

  • Automatically sending e-mails

    I need help writing a script that will automatically send an e-mail when production quanitiy is below expectations.  Right now I have a script for sending an e-mail but its not automated.  It brings up the actually e-mail it's self and the user has to manually hit send.  I do not want them to have the option of not sending the e-mail.  Is there any way to do this??
    Please help!

    Then use this as the folder-level script:
    myMailMsg = app.trustPropagatorFunction(function(vTo, vSubject, vMsg){
        app.beginPriv();
        app.mailMsg({ bUI: false, cTo: vTo, cSubject: vSubject, cMsg: vMsg });
        app.endPriv();
    myTrustedMailMsg = app.trustedFunction(function(vTo, vSubject, vMsg) {
        app.beginPriv();
        myMailMsg(vTo, vSubject, vMsg);
        app.endPriv();
    And then you can call it like this:
    myTrustedMailMsg("[email protected]", "Subject Line", "Hi there!")

  • Outlook 2013 - "schedule an automatic send/receive" NOT functioning

    Here is yet another bug in Outlook 2013 which remains at large.
    Yes, "schedule an automatic send/receive" is not functioning, except in the case of Hotmail/Outlook.com
    The only time new emails  are getting download are when the Send/Receive button is clicked, or when the inbox of the account is selected.
    Other than that Email is not getting checked/downloaded every thirty minutes as it is setup to do.
    Oh, and please none of those generic "create a new profile" answers.
    Thank you.

    Hi,
    We have unmarked that thread. Sorry for any inconvenience caused.
    We have tried several steps to narrow down the issue in the previous thread. The issue is a little difficult, may not good to troubleshoot in the forum. We highly recommend you
    to contact our phone support to get more effective support.
    Thank you for your support and understanding.
    Steve Fan
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • How to automatically send the mail without popping for send

    Hi,
    I am providing proper values in system parameters of report6. viz.
    Desformat=pdf
    Destype=mail
    mode=bitmap
    desname=Valid email id
    I am using MS MAPI (Microsoft Outlook)
    When I run the report, I get the composed mail with the pdf attachment. When I press the SEND button of the composed mail, I shall be able to send the mail.
    Is there a way to SEND the mail automatically through reports?
    Regds
    Prakash H L

    hi ,
    Try running your report in batch mode, provide batch=yes on the command line for your report. This will suppress any user interaction and will mail the report without the need for the user to click on the send button of the mail composer.
    Regards
    Oracle Reports Team.

  • Automatic send e-mail according to the expire data attribute in database

    Hi, everyone. I am now working a web library system, and I use MS Access as the database to store the data.
    Now I want to build a function for the system, which can automatic send loan expire message to the borrower when the expire data is met.
    I have search several days for this function and all the information is about other program language. I really have not any idea about this function. CAN Java archive the function.
    Appreciate for any suggestion. It is better if can post some code example. Thanks!

    HI,
    I just downloaded javamail, and installed it. I tested the javamail with the demo file follow the readme.txt, I don't know what is the mailserver is for MSN in the step 5 (java msgshow -T imap -H <mailserver> -U <username> -P <passwd> -f INBOX 5), and the '<' and '>' should be there? Could you give me an example. Thanks!
    PS: I am not English-speak people , forgive my poor English.

  • Macro for automatically sending E-mail from a folder

    I have a folder containing purchase orders (in pdf format) for many companies (say 500 companies), which I should send them manually to all the companies twice a month.
    (by insert the Purchase order and selecting the E-mail address and send separately to all of them)
    Is there any way to automate this work?

    Hi,
    Since we are not the best source for coding, if you are looking for some coding assistance, I'd recommend you to post your question to the Outlook for Developers forum:
    http://social.msdn.microsoft.com/Forums/office/en-US/home?forum=outlookdev
    In addition, you can also find some add-ins to achieve the goal. For more information, please refer to the article below:
    Send files and report updates automatically
    http://www.msoutlook.info/question/236
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft
    does not guarantee the accuracy of this information.
    Hope this helps.
    Regards,
    Steve Fan
    TechNet Community Support

  • Automatic send a mail to vendor

    Dear SRM community,

    I can not send automatic a mail to the vendor. I use SRM 7.0 andprocess-controlled workflows with automatic approval.
    But I can send manuel over my purchase order in the portal to the vendor
    Please, can you help me?
    Thank advance.

  • Automate sending e-mail at a certain time?

    I would like to send out a form e-mail automatically at a certain time on Tue, Thur and Fridays to the same recipient. I can't seem to find an easy way to do this and I am not very good with Apple Script. I looked through Automator but didn't see anything.
    Anyone have a simple solution?
    Ron

    What are you trying?
    When you Save As Plugin for iCal alarm, you can choose which calendar to attach the event to in iCal.
    If you have further questions, you should post them in a new topic with details.

  • Automatically send e-mail

    Hi you wonderful Gurus of Captivate.
    I put together a test and all is working well. I need to have
    the results automatically e-mailed when the user clicks the "E-Mail
    result" button. I do not want them to be able to change the results
    of the test. As it is right now, the e-mail is open for
    comments/changes etc.
    Can you please help???
    Trudy

    Hello all,
    Like Trudy I am also looking for help to have a way for the
    results of the quiz goto something like form mail or form post.
    I also need to have some way to get details a user provides
    in text entry fields to also be sent with the same quiz results.
    I guess the best way for text entry fields might be to have
    then included in quiz results. Text entry things will mannly be
    users name, company they work for etc...
    Thanks for reading and hope some people out there can help
    Trudy and myself.
    Ross M (New Zealand)

  • Automated mail function for sales order acknowledgement

    Hi Friends,
    We have a requirement for automated functionality for sending mail to the sold to customers when the order is first saved.
    We already have a customer program to convert into PDF and mail directly.
    But this is to automatically send the mail to sold to customer. I think for acknowledgement we have already a existing outputtype.
    I understand that we need to maintain the mail address over the customer master of the sold to.
    Apart from this, is there that we need to maintain to have this automated functionality of sending mails.
    I had tested with existing Z otuput type by changing the transmission medium to 5 and entering my own email id where it prompts to enter mail id. But it wont send any mails.
    Just wondering if we have any determined steps that i can follow.
    thanks in advance.
    Best Regards,
    Ram

    Hi:
    Order acknowlegement output BA00 or your copy of this one is capable of using medium 5 to send SMTP mail to an external address  ( even PDFs can be attached  is your want).  When you trigger the medium 5 output, did the output get process successfully and you get a green light in your output screen?   If not, have a look to see if a communication strategy is assigned.  If yes, your configuration is OK. What is missing is mostly likely that Basis have not set up SAPCONNECT to send SMTP mail externally for you.
    Frank

  • Outbox automatically sends.... help.

    I use mail.app for all the mail on my business MacBookPro. My business software can export a PDF file from any screen to my customer which is sent to the outbox of the mail app. I like to include a short message there but the app automatically sends the mail. I have to disconnect from the wireless network before exporting to mail to stop it so I can add to the message.
    I'm unable to alter the path of the message in my business software to the Draft folder. Is there a way to set the Outbox folder in Mail to a schedule or some other function so I can circumvent the automailing?
    Thanks in advance.

    The software is MYOB. I can export to the desktop, but it will do so to my default e-mail app which is fewer steps (copy/pasting e-mail addy, attaching etc.) if there is a setting in Mail to delay the outbox schedule.
    Mail Prefs are set to check for new mail manually however once something hits the "Outbox" it's automatically sent (it assumes you've hit "Send")?

  • Error Send E-MAIL

    Hi everybody!
    I am configuring KM Services, I need to utilize the Send E-MAIL function but when I try to send the following error gives me:  Not transport there you are been configured for e-mail.  Already configure the Channel (E-mail server) by which is sent for: System admin -> System Config -> KM -> Content Management. 
    Am i skiping any step?
    Please advice. Thanks..

    Hi ,
    Check the below steps mentioned in thread once again
    Configuration for Sending UM Mails?
    Koti Reddy

  • ALV - is there a way to automatically send the ALV via e-mail

    Hi,
    I have a requirement to automatically send the ALV to an e-mail address.
    Is this possible to do by just using the ALV methods available ?
    Cheers
    Colin.

    Hi Colin,
    Check the weblog:
    /people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface
    Check these link..
    http://www.sap-img.com/abap/sending-email-with-attachment.htm
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/789. [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    Have a look at below code:
    REPORT ZSENDEXTERNAL.
    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.
    Creation of the document to be sent
    File Name
    DOC_CHNG-OBJ_NAME = 'SENDFILE'.
    Mail Subject
    DOC_CHNG-OBJ_DESCR = 'Send External Mail'.
    Mail Contents
    OBJTXT = 'Minimum bid : $250000'.
    APPEND OBJTXT.
    OBJTXT = 'A representation of the pictures up for auction'.
    APPEND OBJTXT.
    OBJTXT = 'was included as attachment.'.
    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
    (Assume that the data in OBJBIN is in BMP format)
    *OBJBIN = ' O/ '. APPEND OBJBIN.
    *OBJBIN = ' | '. APPEND OBJBIN.
    *OBJBIN = ' /  '. APPEND OBJBIN.
    *DESCRIBE TABLE OBJBIN LINES TAB_LINES.
    *OBJHEAD = 'PICTURE.BMP'.
    *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 = 'BMP'.
    *OBJPACK-OBJ_NAME = 'PICTURE'.
    *OBJPACK-OBJ_DESCR = 'Representation of object 138'.
    *OBJPACK-DOC_SIZE = TAB_LINES * 255.
    *APPEND OBJPACK.
    Completing the recipient list
    RECLIST-RECEIVER = '[email protected]'.
    RECLIST-REC_TYPE = 'U'.
    APPEND RECLIST.
    *RECLIST-RECEIVER = 'SAPUSERNAME'.
    *RECLIST-REC_TYPE = 'P'.
    *APPEND RECLIST.
    Sending the document
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    DOCUMENT_DATA = DOC_CHNG
    PUT_IN_OUTBOX = 'X'
    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.
    CASE SY-SUBRC.
    WHEN 0.
    WRITE: / 'Result of the send process:'.
    LOOP AT RECLIST.
    WRITE: / RECLIST-RECEIVER(48), ':'.
    IF RECLIST-RETRN_CODE = 0.
    WRITE 'The document was sent'.
    ELSE.
    WRITE 'The document could not be sent'.
    ENDIF.
    ENDLOOP.
    WHEN 1.
    WRITE: / 'No authorization for sending to the specified number',
    'of recipients'.
    WHEN 2.
    WRITE: / 'Document could not be sent to any recipient'.
    WHEN 4.
    WRITE: / 'No send authorization'.
    WHEN OTHERS.
    WRITE: / 'Error occurred while sending'.
    ENDCASE.
    Reward points if this Helps.
    Manish

  • Attach GOS attachments with a standard send mail functionality

    Hi Folks,
    I am here after long time and need your help.
    I have a requirement where I need to attach document with a standard send mail functionality.
    Below is the details:
    From Quality notification 'Action Box', if the user select a perticular action (it is similar to web link), the system is sending a mail to an external mail id provided by the user (In a popup). This mail send is happening through a SAP standard functionality.
    Now the requirement is, I need to attach selected file from GOS (generic Object Services) and attach them to the mail. Sending mail should happen through standard functionality.
    I want to know below two points:
    1) How to get selected files from GOS attachment?
    2) How to attach them to mail? (only attach, sending will be done by standard functionality)
    Hope I am clear with the requirement.
    Please help me to get it resolved.
    thanks,
    Surajit

    1st - analyse fm SO_ATTACHMENT_LIST_READ and table SOOD
    and function groups sgos* and SOB2
    hope that helps
    Andreas

  • Standard SAP functionality to send e-mail Text on PO Output?

    Hi,
    I have a new requirement to send E-mail body along with the PO as an attachment to our vendors.
    We are using '5' as tranmission medium to send the PO as e-mail and we call the Smart Form Interface with the Sender and Receipient information. Is there anything we can use as part of standard functionality to send e-mail text. I tried PO Title and Texts option when we define the output type, but the system doesn't seem to be picking it up.
    I also tried to setup '7' as transmission medium, but when i use '7' system accepts 'MA' partner type only, when defining the condition records. But for Vendors we cannot define MA partner type in partner schema, so i am not able to define a MA partner when defining the condition record.
    thanks
    Udai

    Hi Srini,
    Sorry SDN was not available at the time i wanted to write a reply yesterday.
    The way i did this was, we were using call to SMARTFORM function module in the custom print program.
    When we call the SMARTFORM function module, if you have to send an e-mail, then usually you would pass the recepient information to the function module. The RECPIENT is a business obect in SAP, which has a method called add note, which is what i used to add the e-mail text. One other thing i did was, i read the e--mail text from the Text object when you define the output. Usually the name of this text object is Application concatenated with Output type (eg.: EFNEU ).
    I am including the code, please go through it and let me know if you have any questions.
    swc_container container.
    RECIPIENT-Object
         swc_create_object recipient 'RECIPIENT' space.
    Container
        swc_clear_container container.
    *Address type (Internet)
        swc_set_element container 'TypeId' 'U'.
    Get Vendor Email address
        SELECT smtp_addr INTO lv_smtp_addr FROM adr6
                        UP TO 1 ROWS
                        WHERE addrnumber = lfa1-adrnr AND
                              flgdefault = 'X'.
        ENDSELECT.
        address_string = lv_smtp_addr.
        swc_set_element container 'AddressString' address_string.
    RECIPIENT.CreateAddress
        swc_call_method recipient 'CreateAddress' container.
    Update Log
        IF sy-subrc NE 0.
          ex_retco = '1'.
          CALL FUNCTION 'NAST_PROTOCOL_UPDATE'
            EXPORTING
              msg_arbgb              = sy-msgid
              msg_nr                 = sy-msgno
              msg_ty                 = 'W'
              msg_v1                 = sy-msgv1
              msg_v2                 = sy-msgv2
              msg_v3                 = sy-msgv3
              msg_v4                 = sy-msgv4
            EXCEPTIONS
              message_type_not_valid = 1
              no_sy_message          = 2
              OTHERS                 = 3.
          EXIT.
        ENDIF.
    Read textd defned in NACE
    Add E-mail Body from 'Mail Texts and Title', created when creating Output Types
    Text Name, usually 'EFNEU', Application and Output type concatenated
       CONCATENATE nast-kappl nast-kschl INTO obj_name.
       CALL FUNCTION 'READ_TEXT'
         EXPORTING
           id                            = c_txtid_stam
           language                      = SY-LANGU
           name                          = obj_name
           object                        = c_txtob_ocs
         IMPORTING
           header                        = header
         TABLES
           lines                         = lines_tab
        EXCEPTIONS
          ID                            = 1
          LANGUAGE                      = 2
          NAME                          = 3
          NOT_FOUND                     = 4
          OBJECT                        = 5
          REFERENCE_CHECK               = 6
          WRONG_ACCESS_TO_ARCHIVE       = 7
          OTHERS                        = 8.
       IF sy-subrc <> 0.
          CALL FUNCTION 'NAST_PROTOCOL_UPDATE'
            EXPORTING
              msg_arbgb              = sy-msgid
              msg_nr                 = sy-msgno
              msg_ty                 = 'W'
              msg_v1                 = sy-msgv1
              msg_v2                 = sy-msgv2
              msg_v3                 = sy-msgv3
              msg_v4                 = sy-msgv4
            EXCEPTIONS
              message_type_not_valid = 1
              no_sy_message          = 2
              OTHERS                 = 3.
       ENDIF.
    E-mail BODY
    Call 'AddNote' Method of RECIPIENT object
        swc_clear_container container.
        PERFORM replace_text_symbols USING header
                                           lines_tab.
        LOOP AT lines_tab INTO txtline.
          email_line = txtline-tdline.
          append email_line to email_body_tab.
        ENDLOOP.
        swc_set_element container 'NoteText' email_body_tab.
        swc_call_method recipient 'AddNote' container.
    If E-mail body creation failed
        IF sy-subrc NE 0.
          CALL FUNCTION 'NAST_PROTOCOL_UPDATE'
            EXPORTING
              msg_arbgb              = sy-msgid
              msg_nr                 = sy-msgno
              msg_ty                 = 'W'
              msg_v1                 = sy-msgv1
              msg_v2                 = sy-msgv2
              msg_v3                 = sy-msgv3
              msg_v4                 = sy-msgv4
            EXCEPTIONS
              message_type_not_valid = 1
              no_sy_message          = 2
              OTHERS                 = 3.
        ENDIF.
    Persistent RECIPIENT object
        swc_object_to_persistent recipient recipient_id.
    Call the Smartform function module name
        CALL FUNCTION lv_fm_name
             EXPORTING
                  control_parameters = ls_control_parameters
                  mail_appl_obj      = appl_object_id
                  mail_recipient     = recipient_id
                  mail_sender        = sender_id
                  output_options     = ls_output_options
                  user_settings      = space
                  ekko               = ekko
                  pekko              = pekko
                  t166u              = t166u
                  header             = ls_header
                  ls_komv            = ls_komv
                  ix_subtotal        = lv_subtotal
                  ix_surcharge       = lv_surcharge
                  ix_tax             = lv_tax
                  iv_print_tax       = lv_print_tax
                  iv_comp_name       = lv_comp_name
                  iv_invlp1_txt1     = lv_invlp1_txt1
                  iv_invlp1_txt2     = lv_invlp1_txt2
                  iv_invlp1_txt3     = lv_invlp1_txt3
             TABLES
                  ekpo               = doc-xekpo
                  it_text            = lt_text
                  it_line            = lt_line
                  it_eket            = it_eket
                  it_srvc            = gt_srvc
             EXCEPTIONS
                  formatting_error   = 1
                  internal_error     = 2
                  send_error         = 3
                  user_canceled      = 4
                  OTHERS             = 5.
        IF sy-subrc <> 0.
          ex_retco = '1'.
          CALL FUNCTION 'NAST_PROTOCOL_UPDATE'
            EXPORTING
              msg_arbgb              = sy-msgid
              msg_nr                 = sy-msgno
              msg_ty                 = 'W'
              msg_v1                 = sy-msgv1
              msg_v2                 = sy-msgv2
              msg_v3                 = sy-msgv3
              msg_v4                 = sy-msgv4
            EXCEPTIONS
              message_type_not_valid = 1
              no_sy_message          = 2
              OTHERS                 = 3.

Maybe you are looking for

  • Safari pop up a news webpage to App games every time I trying to read.I have a iPhone 6 iOS 8.1..3.  Thanks for your help.

    Safari pop up a news webpage to App games ( Oz, some Jelly Candy and a Panda. Those 3 only! Sorry I'm not a game person) every time I trying to read.I have a iPhone 6 iOS 8.1.3. Any help, Thanks!

  • Digital trigger for analog scan

    I need to synchronize the start of several measurements with a trigger. I am using a NI 4472 input card and PCI-6731 output card. I need to trigger an analog scan on the 4472, a voltage output from the 6731, and trigger a dmm to start scanning with a

  • Just want to install PS and Bridge on the laptop...

    I own a license for CS6 Production Premium. On my new Mac Book Air(256 GB Drive) I would like to just install Photoshop and Bridge. How do I custom install. When I start the download I get the entire CS6... Where is the custom install window? Do I in

  • Multiple POP accounts in Safari

    I want to switch to Safari as my mail program but I have multiple POP accounts. Each email has its own password. How can I get them all onto Safari? It keeps telling me a already have a POP account when I try to enter another email address. Thanks.

  • Indexing phase of context create

    During the indexing phase of a Context index create process, is there any way to determine how much more indexing/time is left?