Need to send an email via workflow if a field changes

Hi,
so I have this field called temination date in an infopath 2010 form. When (if) a user changes that field, I need to send an email out to other users, but I can't figure out how to do it, I have tried making another field called temination date before, but
the problem I am having with it is getting it to populate. I should say that the field temination date before was just a regular list field, not an infopath field, not sure if that matters.
any help at all would be greatly appreciated
Best regards, Mike

Mike,
From your description, here is what I understand.
Your InfoPath form saves to a form library having 2 columns Termination Date [Date and Time data type, promoted from InfoPath Form] and Termination Date Before [Date data type, created on Form library].
On save[submit] of the form, a workflow [created using SharePoint Designer] triggers, with the below logic.
If CurrentItem.Termination Date Before  is blank Then assign the Termination Date to Termination Date Before
else send an email Termination Date changed from Termination Date Before to Termination Date, set Termination Date Before to Termination Date 
Is the difficulty you are facing is when you assign Termination Date to Termination Date Before?
As Ram suggested, can you try modifying your workflow logic with just as : log to history list CurrentItem.Termination Date, change the termination date and save the form, verify the workflow triggered, verify the correct value logged to the
workflow history list by opening the workflow instance from items workflows?
-- Shan

Similar Messages

  • Need to send HTML email from Workflow : problem with sender

    Hi all,
    i need to send HTML email from my Workflow. I did it but i have a problem with the sender. The sender of email is always the agent responsible of workitem, and i don't want the receiver can answer to sender. So i need to put a false email address like nosender.at.mycustomer.com.
    Possible to do that ?
    Thanks for your help.
    Cheers

    Hi rick
    How to change the wf-batch to some other name  as you mention in previous reply. Can you give some details of that. If i use the function module SO_NEW_DOCUMENT_ATT_SEND_API1 how to change the wf-batch name and if i use send mail step in my workflow how to change wf-batch name.
    Regards
    vijay

  • Need to send Smart form via email through Driver program

    Hi All,
    We need to send smart form via email through a new driver program (z program). Can you please guide me on this.
    I have used the following code to achieve this. We are getting message saying 'Mail request has created' when executed, but the mail is not sent.
    lvs_comm_type = 'INT'.
    lvs_comm_values-adsmtp-SMTP_ADDR = e_mail.
    lvs_comm_values-adsmtp-R3_USER = 'X'.
    lvs_comm_values-adsmtp-ENCODE = '0'.
    call function 'CONVERT_COMM_TYPE_DATA'
    exporting
    pi_comm_type = lvs_comm_type
    pi_comm_values = lvs_comm_values
    pi_screen = ' '
    pi_newid = 'X'
    importing
    pe_itcpo = lvs_itcpo
    pe_device = lvf_device
    pe_mail_recipient = p_mail_recipient
    pe_mail_sender = p_mail_sender
    exceptions
    comm_type_not_supported = 1
    recipient_creation_failed = 2
    sender_creation_failed = 3
    others = 4.
    if sy-subrc ne 0.
    raise COMMUNICATION_ERROR.
    endif.
    control_parameters-device = 'MAIL'.
    output_options-TDIMMED = 'X'.
    output_options-TDDELETE = 'X'.
    CALL FUNCTION fm_name
    exporting
    CONTROL_PARAMETERS = control_parameters
    MAIL_RECIPIENT = mail_recipient
    MAIL_SENDER = mail_sender
    OUTPUT_OPTIONS = output_options
    USER_SETTINGS = space
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5.
    Thank you

    Hi,
    For sending smartform output into mail you first have to generate spool request and convert it into PDF and then
    only it can be sended into mail, please find the sample code in the mail below:
    http://wiki.sdn.sap.com/wiki/display/sandbox/ConversionofSpoolRequestDataintoPDFandExcelFormatandSenditintoMail
    Mansi
    Edited by: Matt on Jan 29, 2010 8:25 AM - removed code, instead point to wiki that Mansi authored.

  • TS3276 I need to send a photo via email as an attachment and not it shown in the body of the email?

    I need to send a photo via email as an attachment and NOT have it shown in the body of the email?  Please help.

    To make attachments not appear in the body of the e-mail as a default, try using the Applications/Utilities/Terminal command below. I suggest copy and paste.
    defaults write com.apple.mail DisableInlineAttachmentViewing -bool YES

  • Need to send external email with attachment for workflow 20000075

    Hello Everyone,
    I am new to W/F, I Need to send external email with attachment for PO Release W/F 20000075. Currently Work item is being sent to SAP inbox of required user based on PO Release strategy configuration in SPRO. I tried to create Send mail step after PO release event but I am not sure how to arrive at Recipient type in send mail step(the mail should be sent to person in the release strategy). Everything looks fine all I need to do is to send external email with attachment instead of sending work item into SAP inbox.
    Your help will be highly appreciated.
    Thanks.

    You can use extended notifications to send an e-mail message with a link to the workitem. Search for extended notifications in SDN.
    Regards,
    Martin

  • Sending an email via AppleScript and Dialogue Boxes

    I am trying to write a script to send an email via Mail of which the body of the message is from a dialogue box. I decided upon using Automator and AppleScript. I have, so far, the following workflow:
    1. Run Apple Script:
    set mypass to text returned of (display dialog "What are you doing?" with icon 1 buttons {"Tweet", "Cancel"} default button "Tweet" default answer "")
    2. New Mail Message.
    3. Send Outgoing Messages.
    4. Run Apple Script:
    on run {input, parameters}
    tell application "System Events" to set visible of process "Mail" to false
    return input
    end run
    I wand this workflow to allow the user to input an answer and this answer to be in the message field of the email. I can use the "Ask for Text" action in Automator but it does not allow for any control over the appearance of the dialogue box. The first script returns the result "<whatever is typed>" (ie. "Test") in the Results field below the script box, as does the "Ask for Text" action but it does not insert it into the message. Does anyone know what is going wrong here?
    I am relatively new to AppleScript which is why I am using Automator but would like any information on how this could be done entirely in AppleScript. My previous attempts at sending email using script was unsuccessful.
    My aim is to save this as an Application with a proper icon.

    see my reply to your post in the snow leopard forum.
    http://discussions.apple.com/thread.jspa?messageID=10318297&#10318297

  • I need to send this email now!

    My story starts wih me trying to scan a picture from the printer to my computer. The printer scans: Photo to email. After ten minutes a new message window pops up with the scanned picture in it. I tried to copy it and paste it into my other email so that I could send it from there and thats when I started having problems. The computer started freezing up with the rainbow swirl. I tried to just send it from the origanal pop up email window, although it kept buffering and wouldn't let me send it. After at least 9 hours now I still can't send it! My computer is not buffering as much after I restarted it, but it still won't send the email with the picture! The email is in is in my outbox and each time I try to send it it just ends up in my outbox again! I've tried this multiple times already! I tried to just send an email to my iPod that just says: "Hi." ,but that won't work either! I need to send the email by the end of today because the contest ends today! It is for an art contest! Please help! I am only thirteen so if you try to explain and help me please don't try to use complicated words!
    Thank you so much!

    Welcome to Apple Support Communities.
    This will take a while to read.
    A very VERY long while.
    That's good, because in the meantime, your computer MIGHT fix itself and the email MIGHT send successfully.
    I know, I know you have this contest deadline...
    I. First things first.
    If there is an adult (parent, grandparent, teacher, nanny, caregiver, or college student) nearby, ask them for help.
    Now.
    Even if they CLAIM to know nothing about computers.
    They probably know a little SOMETHING about computers.
    That might even be helpful.
    Ask them.
    Now.
    II. Second, IF POSSIBLE print this whole message thread before continuing.
    Now.
    WHY?
    At some point you're probably going to turn your computer off, or at least quit the Safari browser app, (the one you're using right now to read this information), and then you won't be able to read these instructions to know what to do next until you turn the computer back on and re-open the Safari browser and return to Apple Support Communities and find this message again.
    If it doesn't print, don't panic.
    If there is another computer or iPad or iPod touch or iPhone or other smartphone nearby, locate this message thread Apple Support Communities in the browser: https://discussions.apple.com/thread/4165033?tstart=0
    If not, don't panic. You will probably be able to print later.
    III. So what is the problem?
    A. The 'rainbow swirl' as you call it (I call it a 'beachball'), most often happens when the computer gets really REALLY low on free RAM memory. RAM is the electronic memory chips located inside your computer. Those computer chips lose all their information when the computer power is turned off, IF the information isn't saved onto the hard disk first.
    To make more RAM memory available the first thing is to quit any other running apps that you don't need right now in your system Dock at the bottom of the screen.
    For example, if you have iChat or iMessage running, and Mail, and iTunes, and Safari, and iPhoto and your printer/scanner app, all you really need in order to scan and send your picture is your printer/scanner app, and Mail. So you can 'quit' all the other apps running.
    Command+click-ing (also known as 'right-clicking' if that option is enabled on your mouse or trackpad) on the running App icon in the dock will bring up the option to Quit.
    If the app is open on your screen, Command+Q will 'Quit' any app. If the app asks if you want to save unsaved information, choose 'Yes' to be certain that you're not deleting important information.
    If an app is 'stuck' (spinning rainbow swirly thing), the option MIGHT be available to 'Force Quit'.
    Quit all the other apps you don't need first.
    Do NOT Force Quit any apps just yet.
    B. It's possible that you are (also) very VERY short of hard disk space. That's the mechanical drive inside your computer that stores your Apps and your music and your pictures and emails and lots of other 'computer stuff' important to how your computer runs, magnetically, so you can bring it back later. It is where your apps are stored and your 'stuff' is saved.
    You think you MIGHT be able to erase some files to make more space available, but that's very VERY risky if you don't know what you're doing, so I don't recommend THAT.
    First, see how much free hard disk space you DO have available. Open Finder (the 'face' icon probably located in the system Dock at the lower left corner of your screen, and click on your hard disk drive name in the upper left column. (It's probably called 'Macintosh HD')
    At the very bottom of the Finder window there should be two numbers, one showing some number of items (not important) and another number showing how much hard disk space is available (important!):
    If you have less that 15.00 GB available, you are very short of hard disk space.
    That makes your system run slow or very slow, and can cause 'rainbow swirls' even if everything else is working correctly. We cannot do much about that right now if you're almost out of hard disk space.
    You will need some adult help to decide what could be erased to make more space available.
    If you share the computer with a parent or sibling, it's very risky to start deleting stuff.
    So don't delete anything now.
    C. It's possible that the file size of your scan exceeds the allowable maximum file size your email account can handle and has things all jammed up. On Hotmail.com, for example, the upper limit is 2.0MB (megabytes). Apple Mail (iCloud, .me or .mac) seem not to have that limitation.
    You said it took '10 minutes' to scan your picture. That sounds like your picture is scanned at a very VERY high resolution: 1200 or 2400 or 4800 or even 9600 dpi (dots per inch).
    That's great for working at home and for retouching photographs and for professional artists, but most likely, it is much MUCH too large to email to your contest.
    300dpi is probably a good maximum number for email. Check the contest instructions. They might want some other smaller number like 72dpi (internet web images) or 96dpi (Windows on-screen displays)
    A high dpi number means the scanned image takes up a LOT of space in RAM memory and when stored on your hard disk.
    That also means that it would take a very VERY long time to send that scanned file in email, although 9 hours is probably way WAY longer than it should take.
    D. READ THIS ONLY IF YOU ARE USING A "DIAL-UP TELEPHONE MODEM" to connect to the Internet.
    (Your adult should be able to help you determine this):
    A dial-up connection typically sends and receives information at up to 56Kbits per second. 
    Most people have something faster today.
    On my DSL internet account (pardon a bit of technical jargon, it's 3.0Mbit downloading (me downloading a music file from iTunes) and 512Kbit uploading (me sending a picture via email), sending one 2.0MB file can take 5 to 15 minutes. Sending the same 2.0GB file on a 56Kbps dial-up modem could easily take almost 10 times longer, or 50 minutes, up to maybe 2.5 hours. But that's still nowhere close to 9 hours.
    IV. OK. Got it. But my computer is still sitting there with spinning rainbow swirlies, and I have this contest deadline quickly approaching...
    What do I do to SOLVE this problem and get my picture emailed today???
    A. You've 'Quit' every unnecessary application?
    The only ones left should be the printer/scanner app, and Mail.
    Sometimes, that frees enough memory for things to begin working 'normally' again.
    So,while reading all of this, has your spinning rainbow swirly stopped and the computer returned to somewhat 'normal' function?
    YES - Check your Mail, Sent folder to see that your message finally got sent.
    Is your message with the picture in there?
    YES - Great. Problem solved. Have a great day. And next time, don't wait until the last minute to submit contest entries!
    NO? Check Mail, Outbox folder (Outbox is only visible and has a number showing IF there is something in the process of being sent, but not completed yet.)
    Is it in the Outbox?
    YES - It could be 'stuck'. You'll probably have to Force Quit the Mail program. That still MIGHT NOT clear your 'stuck' email with the email provider program though.
    B. Were you able to Force Quit all remaining programs?
    YES - Great. Now it's time to click , Restart.
    That will clear memory and reset things to get ready to try again.
    NO - If Force Quit doesn't work, then it's time for more drastic action:
    C. It's time turn the computer OFF.
    Why?
    Because there's likely other no way available to you to 'fix' what's still 'stuck'.
    WARNING: Turning the computer OFF shuts down EVERYTHING, and throws away ALL unsaved information in all apps that are still running but 'stuck'.
    THAT DOES SOUND DRASTIC!!!
    It is. But you have this contest deadline...
    D. If the adult you have nearby is NOT comfortable with you doing this, then STOP!!!
    You're going to miss your contest deadline.
    It isn't the end of the world.
    You're thirteen.
    There will be other contests and other opportunities.
    You're done until someone who IS comfortable helping you is there with you.
    Sorry.
    E. With your Adult's permission to turn off the computer, and with them standing or sitting next to you, hold down the computer power button for up to 10 seconds, until the computer screen goes black and the computer shuts off completely.
    WHEW!
    Take a deep breath.
    Tell your adult to start breathing again, too.
    (Blue adults passed out on the floor from a lack of oxygen aren't nearly as helpful as breathing ones.)
    V. OK. Now what? I still have this contest deadline and now I have XX minutes less because I've been following your long drawn-out instructions.
    HELP!
    A. Turn the computer back on.
    B. Wait for everything to come back up, and then log back in as you usually do.
    C. If you have a lot of programs set to start automatically, like iMessage or FaceTime or iChat or Safari or Mail...
    Use Command+Q to 'Quit' all of them NOW.
    Why?
    They all take available memory from the two programs you probably REALLY need at this point:
    1. Your printer/scanner and
    2. Mail, and
    3. maybe Safari, if you need to refer to these instructions again. Now you should be able to PRINT them, if you couldn't do that before
    If Safari normally opens with a WHOLE BUNCH (3 or more) of Tabs opening things like Twitter and Facebook and Instagram and Google and...
    Close EVERY open Safari tab except 1.
    D. Next, check to see if your printer/scanner app has saved your previous scan.
    I can't tell you how to do this, because I don't know what software you're running. Sorry.
    E. If you KNOW the filename**, locate your saved scanned image and open it using Preview and refer to the ADDENDUM below
    F. If you DON'T KNOW the filename, try re-opening the printer/scanner app.
    G. If you CAN'T FIND the file in three minutes or less, it's probably quicker to re-scan your picture than to spend more minutes looking for the last scan.
    H. Use your printer/scanner software to scan the file AT 300 dpi
    AND
    I. SAVE THE FILE TO YOUR DESKTOP, because it's MUCH easier and MUCH FASTER to find a new scan at the right resolution saved to your desktop than to 'fix' some huge image saved at the wrong resolution* in some file directory called My Computer/My Documents/My Printer/My Scanner/My Scanner App/2012/Aug/1/jpg/miscellaneous/Image_2952.png
    J. Don't let the scanner program TRY to automatically send it via email again.
    Do it yourself:
    K. Open Mail (assuming it's all set up). If not, open Safari, and navigate to your email site like Yahoo, Hotmail, GMail...)
    L. Select New Message or equivalent
    M. Enter the email address you're sending your contest entry to.
    N. Enter the Subject name the contest rules tell you to use.
    O. Enter all the information you're required to submit for the contest.
    P. NOW, attach the scanned image you just saved
    Q. You saved the scan to the Desktop.
    W. You might need to click Desktop icon in the left column to get the list.
    X. Click on your image filename and click the blue Choose File button to attach it.
    Y. Double-check everything to be certain you've included all the needed information AND your scanned picture.
    Z. Click 'Send'
    Check to be sure the message goes. On my MacBook, I hear the 'jet flyover' sound when mail goes out successfully.
    You can start breathing again.
    (And nearby your Adult helper can too.)
    You're welcome!
    ADDENDUM:
    ** THE "YES, I DO KNOW THE FILENAME AND DID FIND THE FILE AND OPENED IT WITH Preview..." instructions
    THIS is how to 'FIX' your huge picture file scan so it will be smaller, and send faster, and not get 'stuck' because your email account cannot handle a huge file, so 'OK, I'M REALLY DESPERATE HERE', BUT LIKELY TO CAUSE A LOWER-QUALITY IMAGE:
    A. Find the scanned filename in Finder.
    B. Double click on the filename.
    C. That should automatically open the file in Preview.
    D. Select Tools, Adjust Size.
    E. Scroll down to the bottom of the menu and select the Fit Into to largest size image available.
    On my computer it is 1920 x 1280 pixels.
    F. Now set the Resolution to 300 dpi.
    You'll have to type in the numbers.
    G. At the bottom left of the Resulting Size box, you should see two numbers, the 'was   MB' (original scan file size to the right), and the new   KB to the left, in both pixels and KB/MB.
    H. Your goal is to adjust the size to make the new resulting file size listed at the bottom left about 1.0MB or LESS. In my example, I reduced a 5.7MB photograph to 615KB (nearly a 90% reduction in file size, but with some loss of image quality).
    I. Then, click the OK button to make the change.
    J. Now in the top menubar, click File, Save As. That saves your changes, but still keeps the original file unchanged, so you can go back to it and try resizing it again without scanning it again, if you don't like the results.
    K. Now another screen pops up, asking you the name of the file
    L. Add 'resized' to the name of your file, so you know which one is the original and which has been changed.
    M. Notice that there is a slider labeled Quality.  Right now, it is probably about 3/4 of the way to the right.
    Sliding it all the way to the right will increase quality AND increase the file size.
    N. Try moving the slider to the right, and release it to see the change in file size.
    O. Remember, our ultimate goal is a modified scan file SMALLER THAN 2.0MB.
    P. When you're satisifed with the file size and the quality slider, click the blue Save button.
    Q. Now, try emailing the 'filename'-resized image you just saved.

  • Unable to send out emails via outlook express since 06/29/2010

    Task '[email protected]" - Sending' reported error (0x80042109) : 'Outlook is unable to connect to your outgoing (SMTP) e-mail server. If you continue to receive this message, contact your server administrator or Internet service provider (ISP).'        This is a copy/paste of error message from Office Outlook  2003
    Our household has been unable to "send" outgoing emails since 06/29/2010.  This includes a wireless laptop and a PC. We both lost the ability to send emails same day.  We changed NOTHING and did not share emails with each other that would have corrupted our system. During this time I have had 2 Verizon techs dance around in the PC doing all the same things I did as well as what  the automated assistant did.  The last tech said the Outlook Express 6.0 was corrupted, and to unistall it and then reinstall;  this time 2 hours later, I think he just gave up).  That did not work either.  I tried using the Outlook Office and still got an error message for outging. Everything is set up as it was when it was working until 06/29/2010.  I was told that there was a new server being installed and that things wold be working by 07/02/2010... I have tried taking down the firewall, turning off virus protection (McAfee), changing from outgoing.yahoo.verizon.net to just outgoing.verizon.net, checking boxes, unchecked boxes. SMPT is set to 587.  We get incoming fine.  I hate using the "Verizon email site" as too much monkey motion to get to mail, but that's what we have been doing.  I even tried setting up a GMail account, again got mail still could not send.  Any ideas?

    Thank you for your response!  I even tried sending an email via dos prompt  with Telnet, got past "HELO", but when trying to get a  "RCPT TO"  (using outgoing.yahoo.verizon.net)  I got an "authorization required" response and then was dropped.  I have been passed around without a solution. I am about ready to change ISP, but really hate to as most of the time (years now) this has been a decent ISP. If Verizon is having a problem just say so, I can handle it, honesty would be nice, refreshing and not wasting so much of my time as well as the techs!

  • Need to send an email (after the FTP adapter does the transfer)

    I have a simple ESB project. It uses FTP adapter to pick a file and encrypt it (by using a webservice) and then transfers that
    file to a different server. As mentioned FTP (SFTP) adapter is used to do this.
    After the file is transfered ( by using the PUT mode of the FTP adapter) , i
    need to send an email to a given address telling about the succes of the file
    transfer. But the problem is I can not link or attach a router to FTP adapter
    in PUT Mode. A FTP adapter in Get mode comes with a Router but a FTP adapter
    with PUT mode does not come with a router. How can I attach a router (or a web
    service to a FTP adapter which is in PUT mode)
    Prakash

    I'm fairly certain you'll have to use BPEL to accomplish this. I'd put the FTP Adapter inside a BPEL process then you can drop the email activity in after the ftp operation.

  • I need to send a message via socket from a C program to a Java program

    Hi,
    I need to send a message via socket from a C program to a Java program. The message has three data: a long, an integer and a string.
    How can I put those three fields in a array of bytes in C? How can I extract those same three fields from an array of bytes in java?
    Thanks a lot!

    A few options:
    JNI
    Corba
    Using sockets directly
    take your pick.

  • I need to send group email and forward group email?

    I need to send group emails and forward group emails and dont find that capability with ipad or iphone

    There are quite a few group emailing apps available, but most will not allow you to forward an email, as they can only send new emails written within their own app.
    MailShot Pro, uniquely, adds group email to your device so you can send to your groups directly from the standard Mail app. This allows you to forward an email, with any attachments intact, right from Mail.
    Find out why quarter of a milllion users are now using our MailShot apps at jo.my/mailshot (iTunes link). A free version is also available to try, limited to a few small groups of contacts.
    Peter
    Soluble
    Disclosure: I am the developer of MailShot, and may receive benefit from any sales.

  • Sending external email via SAPCONNECT

    Hi all,
    I want to know how to send external email through sap.
    Thanks in advance,
    Manosh.

    HI,
    Try this  code:
    *& Report  ZSENDEMAIL                                                  *
    *& Example of sending external email via SAPCONNECT                    *
    REPORT  zsendemail                    .
    PARAMETERS: psubject(40) type c default  'Hello',
                p_email(40)   type c default '[email protected]' .
    data:   it_packing_list like sopcklsti1 occurs 0 with header line,
            it_contents like solisti1 occurs 0 with header line,
            it_receivers like somlreci1 occurs 0 with header line,
            it_attachment like solisti1 occurs 0 with header line,
            gd_cnt type i,
            gd_sent_all(1) type c,
            gd_doc_data like sodocchgi1,
            gd_error type sy-subrc.
    data:   it_message type standard table of SOLISTI1 initial size 0
                    with header line.
    *START-OF-SELECTION.
    START-OF-SELECTION.
    Perform populate_message_table.
    *Send email message, although is not sent from SAP until mail send
    *program has been executed(rsconn01)
    PERFORM send_email_message.
    *Instructs mail send program for SAPCONNECT to send email(rsconn01)
    perform initiate_mail_execute_program.
    *&      Form  POPULATE_MESSAGE_TABLE
          Adds text to email text table
    form populate_message_table.
      Append 'Email line 1' to it_message.
      Append 'Email line 2' to it_message.
      Append 'Email line 3' to it_message.
      Append 'Email line 4' to it_message.
    endform.                    " POPULATE_MESSAGE_TABLE
    *&      Form  SEND_EMAIL_MESSAGE
          Send email message
    form send_email_message.
    Fill the document data.
      gd_doc_data-doc_size = 1.
    Populate the subject/generic message attributes
      gd_doc_data-obj_langu = sy-langu.
      gd_doc_data-obj_name  = 'SAPRPT'.
      gd_doc_data-obj_descr = psubject.
      gd_doc_data-sensitivty = 'F'.
    Describe the body of the message
      clear it_packing_list.
      refresh it_packing_list.
      it_packing_list-transf_bin = space.
      it_packing_list-head_start = 1.
      it_packing_list-head_num = 0.
      it_packing_list-body_start = 1.
      describe table it_message lines it_packing_list-body_num.
      it_packing_list-doc_type = 'RAW'.
      append it_packing_list.
    Add the recipients email address
      clear it_receivers.
      refresh it_receivers.
      it_receivers-receiver = p_email.
      it_receivers-rec_type = 'U'.
      it_receivers-com_type = 'INT'.
      it_receivers-notif_del = 'X'.
      it_receivers-notif_ndel = 'X'.
      append it_receivers.
    Call the FM to post the message to SAPMAIL
      call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
           exporting
                document_data              = gd_doc_data
                put_in_outbox              = 'X'
           importing
                sent_to_all                = gd_sent_all
           tables
                packing_list               = it_packing_list
                contents_txt               = it_message
                receivers                  = it_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
      gd_error = sy-subrc.
    Get it_receivers return code
      loop at it_receivers.
      endloop.
    endform.                    " SEND_EMAIL_MESSAGE
    *&      Form  INITIATE_MAIL_EXECUTE_PROGRAM
          Instructs mail send program for SAPCONNECT to send email.
    form initiate_mail_execute_program.
      wait up to 2 seconds.
      if gd_error eq 0.
          submit rsconn01 with mode = 'INT'
                        with output = 'X'
                        and return.
      endif.
    endform.                    " INITIATE_MAIL_EXECUTE_PROGRAM
    Reward points if found helpful....
    Cheers,
    Chandra Sekhar.

  • I cant send an email via UTL_MAIL : ERROR NO 530

    hi .. i want to send an email via UTL_MAIL package. I am using ORACLE XE 10g.
    I am trying this code :
    declare
    i INTEGER;
    BEGIN
    UTL_MAIL.send('[email protected]','[email protected]',NULL,NULL,'DENEMEKONU','DENEMEMESAJ',NULL,NULL);
    END;
    then, i encounter this error:
    ORA-29279: SMTP permanent error: 530 5.7.0 Must issue a STARTTLS command first.....
    I made settings of smtp mail with:
    ALTER SYSTEM SET SMTP_OUT_SERVER='smtp.gmail.com';
    But i am getting this error consistently.
    How can i solve this problem, thanx.

    Hello Kadir,
    any errors, NDRs, logs that you could provide? How do you know the messages are not getting trough to that address?
    Regards,
    Andreas

  • Need to send HTML table via email

    Hi Experts,
    I am using the FM EFG_GEN_SEND_EMAIL to send email but unable to send html content through this. I know I could use SO_SEND_OBJECT FM too which automatically sends the email in HTML format but it doesn't have from option(FROM EMAIL ID)
    I tired manually chaning the format from RAW to HTM via debugging and then found that its sending the html format email.
    Request you to please let me know if we could achieve the same.
    Thanks,
    Rajwin

    Hi,
    rcently we idd this requirment .
    But every thing we did it from ABAP side   not from WDJ Side
    Generation of PDF after enterring the data will be send via email along with PDF Data so try to use  Smart Forms
    Regards,
    Govindu

  • Critical parts goes below Re-order pt - to trigger email via Workflow

    Hi Experts,
    I am new to workflow and here is my requirement.
    When Material goes below Re-order pt in MM , MRP runs and creates PR/Sch Line. I want to trigger email to some Group when few Critical parts goes below Re-order point via Workflow
    A workflow should trigger and get email to Group I saw one standard workflow (WS03100020) but I dont know how to active and how it will work.
    I can copy this to custom workflow using PFTC and do, but when the material document creates - Means Critical parts are consumed and Stock level goes below re-order point. how my copied custom workflow triggers?
    Critical Parts A , C , F, X  and Z
    If Material  A ,C and F goes below re-order pt then email to trigger to GROUP1.
    If Material X and Z goes below re-order pt then email to trigger to GROUP2.
    Need to know :
    1) steps to copy and modify
    2) How to Execute manually
    3) How to execute automatically when Material stock falls below re-order point. ( Lets say in MM03 Re-order pt is 5 ) and IN MMBE current stock is 20, when there is consumption ( Material DOcument to Cost center - Mvtype 201 ) for 16 QTY.. then my Custom or Standard Workflow should Trigger and should get a email to Group.
    How to achieve this. Please explain me with Step. Highly apprieciate your help and will reward points
    Thanks in advance.
    Bala M

    o.k. lets first handle the check function module
    you need to start from the key and run the check is it higher or lower then the reorder point,
    if it's higher, raise an exception (use message... raising), else do noting.
    test the function module directly and see if it works, then look at the event trace(SWEL) and see what happens when your event is raised, if it's higher then the reorder point you should see an error (specific linkage is red and the message you entered in the function module in the details) else the event linkage should be o.k (green).
    now for the function itself: if you use the cl_bcs to send the mail, you do not need to link SWW_WI_CREATE_VIA_EVENT_IBF as the receiver function module, but the function module you create to send the mail. again test the function module directly first and only then link it to the event.
    if you want to send the mail by workflow see the link in my earlier reply.

Maybe you are looking for