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!")

Similar Messages

  • 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...

  • 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)

  • 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")?

  • Iphone 4 automatically sending nuisance/ viral e-mail messages from my yahoo account to members of my phone/ e-mail/ facebook contact list. What can I do to stop this?

    This has occurred on 2 different occassions. In both cases, I can not identify a viral email that I would have opened that could have started this as we are very cautious about opening unknown emails, and definately NEVER double click on links that come through in nuisance/ spam type e-mails.
    This morning was the second time that it appears my iphone was somehow involved in automatically sending out a mass nuisance message to all my contacts (phone contacts/ facebook contacts/ yahoo contacts).  The email contained no message - except for a single link to an unknown destination of course since I refuse to dbl click on it to see what I have sent out to my friends.
    This is the second time it has happened. I have posted on facebook to all my friends to not open the message. I have deleted ALL my contacts from both my phone and from yahoo contact list. I even deleted facebook and all it's info. from my phone to remove their contact lists. I don't want this to keep happening to my friends. The only thing I haven't deleted is my phone contacts (phone numbers) but I am assuming it may very well happen again since the automatic message was also sent to my phone contacts. (Not sure how that even happens - an auto email to a phone number?)
    I have been reading on this site that it is nearly impossible to get a virus on your iphone - however, what other explanation is there? I don't have a PC - I don't have any Windows products in my home. We own 1 ipad and 2 iphones at the moment. I never access my yahoo account from anywhere but my MAC products.  What is happening and how can it be resolved?
    Thanx!

    if it's a message coming from your yahoo account, it means that your account has been compromised, not your phone itself. i would suggest changing the password for your email account

  • Automatic Send mail when sales order is change

    Hi friends,
    I have a requirement that  when ever sales order is created or change i.e in va01 or va02 automatically mail to send to customer. So please can u sujjest me in doing this ?
    with regards,
    prasad.

    Write the codes in sales order exit program so that as soon as you save the sales order the email can be triggered.
    Abap Program: MV45AFZZ
    USEREXIT_SAVE_DOCUMENT
    Sending e-mails using ABAP
    Thanks
    Ganesh
    you can also use work flow to trigger the email from sales order.
    Edited by: Ganesh Modhave on Oct 6, 2008 10:54 AM

  • How to send a mail automatically based on a date from ORACLE database

    Hi,
    I want to send a mail automatically based on a date from ORACLE database.
    Please help me.
    thanks
    --Sara                                                                                                                                                                                                                                   

    programs are available on net to send mail directly from oracle ie procedure s in oracle sending mails

  • How to send e-mail notification automatically when a record is inserted?

    Dear All,
    Could anyone kindly tell me how to send e-mail notification automatically when a record is inserted through a form in Oracle Portal Release 2?
    Regards,
    Ridwan.

    Hi,
    If you are writing a form on a table then you can call the mail API from a database trigger on the table. If it is a form on a procedure, you can make the email call from the procedure. To know more about sending mails from plsql go to
    http://www.quest-pipelines.com/newsletter-v2/smtp.htm
    Thanks,
    Sharmila

  • TS3276 Hey. I have problems to send e-mail with Mail. The problems is I need to un active ssl ,... but when I do this,... automatically,. its active again????. Whta can i do

    Hey. I have problems to send e-mail with Mail. The problems is I need to un active ssl ,... but when I do this,... automatically,. its active again????. Whta can i do

    Try posting this in the 10.7 Mail forum. You'll get more help there.
    DALE

  • 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

Maybe you are looking for

  • Problem to open folders

    I have a Mac OS X intel (10.6.8) and always ran on the desktop a folder with several subfolders. Suddenly this folder, although that appear on the desktop, I can not open it, what could have happened and what I can do to recover the files in those fo

  • A few tips about using the Text Panel

    A recent question about the text panel set me to working with it and I thought I'd share some tips I discovered, since the help files don't explain the text panel at all. At one time I called the text panel "useless", but I've changed my mind -- it's

  • Production Order missing Part list error  date 1,857 is not convertable

    *Dear Experts* When i m  trying to check missing part list at production Order then system is showing the error The date 1,857 is not convertible (please correct) in Production order Missing part list. Rgds Pankaj Agarwal

  • Configuring OKG8

    When configuring OKG8, the results analysis key is not available for entry in the view.  However, results analysis key field (ABGSL) does exist in the underlining table TKKAB.  This is limiting when one wants to direct postings to different GL accoun

  • Can't reinstall my elements 11 after a reinstall of hard drive

    I have the latest version of OSX.  Spent 2 hours with adobe and they referred me to the forum.