"Send an E-Mail in Background with Attachment (Optional)" can't  be called

hi
i tried notice from gp's mail template via other object.
it's successed.
but when i tried CO "Send an E-Mail in Background with Attachment (Optional)", and code like follows:
          IGPStructure params = GPStructureFactory.getStructure(process.getInputParameters());
          params.setAttributeValue("email_address", receiverMailAddress);
          params.setAttributeValue("customer_Name", receiverName);
          params.setAttributeValue("context", context);
          if (document != null) {
               IGPStructure attachment = params.addStructure("ATTACHMENT_1", "com.sap.caf.eu.gp.types.File");
               attachment.setAttributeValue("Name", "com.sap.caf.eu.gp.types.File", documentName);
               attachment.setAttributeValue("ContentType", "com.sap.caf.eu.gp.types.File", documentContentType);
               attachment.setAttributeValue("Size", "com.sap.caf.eu.gp.types.File", document.length);
               attachment.setAttributeValue("Content", "com.sap.caf.eu.gp.types.File", document);
it ain't work.
also, did not throw any exception.
i found some exception message from log viewer
null
com.sap.caf.eu.gp.base.exception.EngineException
at com.sap.caf.eu.gp.model.fnd.mail.MailSendingUtility.sendMailThrowsExc(MailSendingUtility.java:889)
at com.sap.caf.eu.gp.model.fnd.mail.MailSendingUtility.sendMailThrowsExc(MailSendingUtility.java:837)
at com.sap.caf.eu.gp.callobj.mail.NotificationCOwithAttachment.onExecute(NotificationCOwithAttachment.java:394)
at com.sap.caf.eu.gp.callobj.bckgd.base.AbstractBackgroundCallableObject.execute(AbstractBackgroundCallableObject.java:102)
at com.sap.caf.eu.gp.callobj.container.BackgroundCallableObjectsContainer.execute(BackgroundCallableObjectsContainer.java:82)
i work with netweaver 7.11 ehp1 sp3.
please help if you can, thank you very much.

Hi, Dipankar:
Thanks for your reply. But I have no idea about how to group parameter from all uploaded file to "Send an E-Mail in Background with Attachment" CO?
For the situation, I write a background CO program to get all uploaded file (from first three block) and grouping this customized CO parameter with "Send an E-Mail in Background with Attachment" CO.

Similar Messages

  • Add many attachment to CO "Send an E-Mail in Background with Attachment"

    Hi, experts:
    I create a guided procedure which contain 4 sequential block.
    in first 3 block, every user will upload their own file.
    In the last block, I want collect all uploaded file, and pass to CO "Send an E-Mail in Background with Attachment" to mail to the user who assign to the fourth block.
    Any idea about what block type I should use in fourth block?
    Thanks in advance.

    Hi, Dipankar:
    Thanks for your reply. But I have no idea about how to group parameter from all uploaded file to "Send an E-Mail in Background with Attachment" CO?
    For the situation, I write a background CO program to get all uploaded file (from first three block) and grouping this customized CO parameter with "Send an E-Mail in Background with Attachment" CO.

  • Hi there, i can't send letter using Mail on Mac with AOL mail.

    Hey there, i can't send letter using Mail on Mac with AOL mail. But i can receive all letters.
    Also using iCloud in Mail. What to do? Or maybe i can send letters only from iCloud/Me mail if i am using more than one mailbox in Mail?
    Thanks

    Troubleshooting sending and receiving email messages
    Troubleshooting sending email messages

  • HT5312 I follow the steps to the manage my account page, then I get to my security questions and it doesn't give the option to send an e-mail to my rescue address. Can anyone help?

    I follow the steps to the manage my account page, then I get to my security questions and it doesn't give the option to send an e-mail to my rescue address. Can anyone help?

    You need to ask Apple to reset your security questions; ways of contacting them include phoning AppleCare and asking for the Account Security team, clicking here and picking a method for your country, and filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (103693)

  • Sending mail from plsql with attachement

    Hi Friends,
    i wanted to prepare an excel report and send that by email useing PLSQL .
    i know the inbuild packages UTL_FILE and UTL_SMTP can do this job . But my DBA not allowing me to do this . My DBA adviced me to do this work with in database by inplementing BLOB.
    I have never come accross to this task with in database , ( preparing the excel file and attaching that with mail and send it to users ) ??.
    can some one share tips & sample codes if any ???
    Thank You,
    Raj.

    First thing is Excel is Microsoft Specific and cant be created using UTL_FILE. May be as Excel supports CSV you can create CSV file using UTL_FILE.
    Next BLOB is a datatype like CHAR or VARCHAR2. You can store data in it. Thats all nothing much. With BLOB you can store an excel file. BLOB can't create or send it via EMail.
    So it would be better you talk to your DBA asking him to give more details.
    Thanks,
    Karthick.

  • Problem in sending mail from database with attachment

    Hi All,
    I amd using forms10g,oracle10g
    I am facing a error while running a procedure to send mail from db
    procedure is:
    declare
    ErrorMessage VARCHAR2(4000);
    ErrorStatus NUMBER;
    -- enable SQL*PLUS output;
    --SET SERVEROUTPUT ON
    -- redirect java output into SQL*PLUS buffer;
    --exec dbms_java.set_output(5000);
    BEGIN
    ErrorStatus := SendMailJPkg.SendMail(
    SMTPServerName => '192.168.4.2',
    Sender => '[email protected]',
    Recipient => '[email protected]',
    CcRecipient => '',
    BccRecipient => '',
    Subject => 'hth106: Test JavaMail',
    Body => 'This is the body: Hello, this is a test that spans 2 lines',
    AuthReqdYNNum => 1,
    UserID => 'jagan',
    Password => 'songbirds',
    ErrorMessage => ErrorMessage,
    Attachments => SendMailJPkg.ATTACHMENTS_LIST('C:\oramail\MHTHSO_GEN45.html')
    END;
    while running this procedure i am receiving following error
    "ORA-29532: Java call terminated by uncaught Java exception:
    java.lang.IncompatibleClassChangeError"
    but the same procedure sending mail from all other user in the same database
    I am very myuch confused.i have given the all rights
    below mentioned rights are given .it is working in all other user on the same db except this user "hth106". And all the othere things are compared between working user and this hth106 user every things are same.But i am receiving error when i sending mail with attachment if the mail is sending without attachement it is working fine
    below rights are given to this user
    1.exec dbms_java.grant_permission('HTH106','java.util.PropertyPermission','*','read');
    2.exec dbms_java.grant_permission('HTH106','java.util.PropertyPermission','*','write');
    3.exec dbms_java.grant_permission('HTH106','java.net.SocketPermission','*','connect');
    4.exec dbms_java.grant_permission('HTH106','java.net.SocketPermission','*','resolve');
    5.exec dbms_java.grant_permission('HTH106','java.io.FilePermission','C:\oramail\*','read');
    exec dbms_java.grant_permission('HTH106','java.io.FilePermission','C:\oramail\*','write');
    6.call dbms_java.grant_permission('HTH106','java.net.SocketPermission','HTHDS01','resolve');
    7.call dbms_java.grant_permission('HTH106','java.util.PropertyPermission','*','read,write');
    7.call dbms_java.grant_permission('HTH106', 'java.io.FilePermission','C:\oramail\*','read');
    please advise me to proceed further
    Thanks in advance
    Thanks ,
    Antony

    With respects to the following:
    The bit you'll have most diffulty with is the attachment, because you can't be sure that
    the directory path specified is one that the database can read from. You can probably
    resolve this by using some java to move the file to a directory which utl_file can see.Another alternative is to specify a location on then database server where all file attachments MUST be copied to and the define and Oracle DIRECTORY (CREATE OR REPLACE DIRECTORY [dir_name] AS '/dir/name/on/files/system';) that references this location. When you attach a file to an email, then you only have to refer to the DIRECTORY for the file location.
    Just my 2 cents on the topic. :-)
    Craig...

  • I send an e-mail every week with an attachment to 4 people since I got Firefox they don't arrive at their destination. Any ideas?

    I used Internet explorer but was having difficulties reading "sky's" e-mails, I was recommended by Sky to use Firefox. I can now read the e-mails but when I send an e-mail and an attachment, to 4 addressees (which I have done every week for about 5 years, using internet explorer) they don't arrive at any of the intended destination, can anyone give me a solution to my problem. Thanks

    Hi thanks for the response,
    I haven't tried to send an attachment to myself, not sure exactly how to do that but I'll have a look Friday/Saturday when I get home.
    As to the mail system, I use Sky's e-mail, as I said it use to work perfect on Internet explorer until Sky changed the format of their e-mail page, then I was unable to scroll up or down the page. So I was advised by Sky to use Firefox

  • The Java plugin has created a time unfriendly issue with my e-mail account, I can not open or send any e-mail without using this plugin, how can I eliminate this problem without dropping m. firefox?

    A few days ago I tried to e-mail a friend, when I started A box came up and it required me to add a plugin..Java. I contacted my e-mail courier and microsoft, they told me that is was a plugin from Mozilla Firefox. Since then I must go through Java to send or open an e-mail... this is NOT to my satisfaction, it takes too long for all of this to open and if it is not cleared , I am dropping Mozilla and going elsewhere. Why has this occurred? Is this a result of the last update? If so can I delete the last update and continue on the other version?
    == This happened ==
    Every time Firefox opened
    == last week

    Sorry, I have no idea what you mean by '''"The Java plugin has created a time unfriendly issue with my e-mail account, I can not open or send any e-mail without using this plugin,"'''.
    If you think your problem is caused by the Java plugin, you should visit the Java support forum for assistance.
    http://forum.java.sun.com/index.jspa
    If you could explain what you mean by '''"time unfriendly''' issue with my e-mail account", maybe we'll be able to help you solve that issue.
    It might be helpful for us if we knew exactly which web-mail provider you are using. It seems strange to me that viewing or sending web-mail would actually "need" Java for operation, its more likely that some other item on the web page needs Java to run some advertising or other garbage that isn't a necessary part of the web-mail functionality you want to use.

  • New Mail with Attachment option

    Hi all--
    When right-clicking on an image or pdf in the Finder, I get a popup menu with an option to compose a new email with an attachment that is listed below the choices to label the document. Mail wants to launch but it's not setup to run and no accounts are enabled. MS Outlook is the mail software that is in use.
    How did that option get there, and what settings do I need to change so that Outlook comes up with a new compose window and the image/pdf attached?
    The Mac is running OS X 10.7.5
    Thanks
    --Mitch

    Here is the error
    ++++++++++++
    Process:         Automator [44579]
    Path:            /Applications/Automator.app/Contents/MacOS/Automator
    Identifier:      com.apple.Automator
    Version:         2.3 (346)
    Build Info:      Automator-346004000000000~4
    Code Type:       X86-64 (Native)
    Parent Process:  launchd [158]
    User ID:         505
    Date/Time:       2013-10-09 19:38:14.844 -0700
    OS Version:      Mac OS X 10.8.5 (12F45)
    Report Version:  10
    Interval Since Last Report:          108865 sec
    Crashes Since Last Report:           808
    Per-App Interval Since Last Report:  556 sec
    Per-App Crashes Since Last Report:   8
    Anonymous UUID:                      463E45B8-D2A2-6B72-571C-536147412BAC
    Crashed Thread:  0  Dispatch queue: com.apple.main-thread
    Exception Type:  EXC_CRASH (SIGABRT)
    Exception Codes: 0x0000000000000000, 0x0000000000000000
    Application Specific Information:
    objc[44579]: garbage collection is ON
    *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: cacheDictionary'
    terminate called throwing an exception
    abort() called

  • How to send a e-mail from folio with subj and text

    Hello!
    I need send an e-mail from folion. I knew how to make hypperlink but a need not only subj and address. I need a text there. Can somebody explain how it's should be?
    Best regards

    You can make an object have a mailto: hyperlink that has subject and body variables included.
    It would look like this:
    mailto:[email protected]?subject=Subject-text-goes-here&body=Body-text-goes-here
    Fill in the variables with your own text, and make sure to replace spaces in your subject and body text with figure dashes.

  • Excel in background with formating option

    Hi,
      Is it possible to add logo, column width to excel in background. My requirement is to send excel as a attachment.This program run in background where i need to send excel as attachement via mail with logo and column width and demicals formatting etc.
      Is it possible to do this in background with excel. some links r code will help more.
    Regards,
    Karthik

    I read somewhere that simple excel creation and formatting is possible if you use open dataset and create an xml file
    it is a very complex approach and yet you will still not be able to put things such as the logo an column width
    the main reason for not being able to do this is the fact that excel creation is normally done by using Object Linking and Embedding (OLE)
    This works only by having the document open in the foreground and cannot work in the background

  • I have problem with concoction i can not make call or sms

    I have problem with my i phone 5 i can not make call and sms do please help me

    I think you don't understand the purpose of this forum. This is a user-to-user support forum. You're not talking to Apple. You're not talking to your cellular carrier.
    One last time and then I'm done:
    You need to call your cellular carrier and get this sorted out. No one here can help you.

  • Sender Mail adapter configuration with attachment

    Hi,
    I read the below blog regarding the mail adapter
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    I have the same requirement but the attachment file is not an XML, it is CSV file so in the module tab if I change like below is it enough?
    TRANSFORM    swap.keyValue  attachment; filename=u201DMailAttachment-1.csvu201D     (I think MailAttachment-1 is the file name, am I correct?)
    If I change like above is it ok? or any other thing is required, Could you please give me the inputs
    Thanks
    Ramesh

    I have the same requirement but the attachment file is not an XML, it is CSV file so in the module tab if I change like below is
    it enough?
    PayloadSwapBean will ensure that the input to the mapping is from the attachment.....in the blog the attachment is in XML format and hence there was no need for any conversion.....yours is however a CSV file so you need to convert it to XML first and then do the further processing.....you can either use the MessageTransformationBean as shown in this blog:
    /people/gabrielsagayaselvam.panneerselvam/blog/2009/08/31/solve-key-field-problem-using-structplain2xml-in-messagetransformationbean
    Or write your own module code for the conversion.
    Regards,
    Abhishek.

  • Lost mail, forwarded doc with attachment.  No record and not received

    Using a message and attachment from an email in my files, created new message with updated info to send to CEO. Hit 'send' and heard normal rush sound. Later checked my sent file and no record. Called CEO exec asst not received. Tried again with a shorter message same result. Sent another message with an attachment to another exec, no problems. iPad problem or system?

    Not recipient.
    I have both a Me and a Yahoo account.
    When I forward a mail with an attachment using Yahoo account, it shows the sending bar, makes the sound that a mail was sent and even put the arrow icon on the left side of the original mail. But no mail is sent (recipient doesn't receive it and I don't get my blind copy).
    This also happens when I send a mail from an app (notes, noterize, numbers, pages, etc.).
    If in both cases I use my Me account, it works fine.
    Using Yahoo account, forward without attachments, and reply works fine.
    Don't know what to do.
    iPad   iPhone OS 3.1.3    

  • Mail - Email recieved with Attachment always MIME

    Hello,
    I sent an email with an attachment; it was a .html file, to my iMac Mail program. I am receiving it as a MIME attachment. In fact it does this with other files I have sent with different extensions. I am expecting the attachement to be simply whatever it is I am sending. What am I encountering and how can I fix this.
    Thanks
    iMac OS X 10.5.8
    Mail 3.6
    Sent using Outloook on an XP PC

    Nearly all attachments are a MIME type file, but that is not mentioned when Mail can determine what type of file it is, most often identified by the extension. Calling it simply a MIME attachment means there may be some confusion as to what file format it is actually in.
    With the message open, click on View and place the cursor on Message and choose Raw Source. Is there a header for the attachment that states what type file it is?
    Ernie

Maybe you are looking for

  • Error message when posting invoice : Day-end closing not defined

    Hi, In our training environment we migrated from FAGLFLEXT to FMGLFLEXT and activated fund management. Now when posting an invoice the system provides an error message: "FQ252 Day end closing not defined". There is no configuration related to F845 bu

  • BPM FLOW

    Dear friends, I have following confusinon in BPM. When i design for eg in BPM like the following: async     RECIEVE----->SEND I like to understand the flow here.My Undersanding is- When message comes from source (file) flow is ( Source-->File adapter

  • Bridge CC crashed then windows7 applied compatibility settings to program

    Hi, I couldn't find any info on this, so I'm wondering if any body can comment.  I just opened CC Bridge, and I had a Data Disc in the computer and Bridge was trying to read or load alot of larger media files ( it was a Digital Juice 'Silhouettes' Di

  • What is so special about the "Hot Towel" project template?

    I think one could already have build single page applications back in 2003 with classic ASP.NET.

  • MS SQL RecordQuery

    Hi, I've noticed that with current recordset query in DW CS4 when you query an MS SQL DB you have to use the query in a particular order (I read that this is to do with the cursor used), how can you change the curosr from 'forward only' to a  static,