Problems replacing email-subject with SAPConnect

Hi there,
I'm sending an order confirmation via SAPConnect as email.
The order confirmation attaches the email as a *.PDF file.
Now i'd like to replace the standard subject, that consists in the spool-number and some text from  the message i use.
So, i went to SPRO, and put 'Your Order: &VBAK-VBELN&' in the mai title. That worked almost properly, because the spool number stayed.
So, i don't want this spool number output any longer.
The second point is, that i've tried to replace the standard output of the mail text. I didn't succeed at all.
So, my question. do you have any ideas to solve my problems?
Thanks for reply, greetings and happy eastern
Stefan

msg.setText("<b>testeeeeeeeeeeeee</b>");R
eplace that
bymsg.setContent("<b>testeeeeeeeeeeeee</b>",
"text/html");
Thanks DrClap, but that's not exactly the solution I'm looking for, cuz I would have to hard-code that header.
I have an Email class that I use as a wrapper for the javax.mail API, and I wanna be able to have a setHeader() method that works to enable the users to set the content-type of the text (or HTML) portion of the email, even when there are attachments. How can I achieve this?

Similar Messages

  • How to Extract email subject with date from outlook?

    Hello,
    I am new to powershell and was wondering how i can extract the email subject with date for entire last month? i need to generate a report every month end and have to go through all the emails which can be very cumbersome at times. 
    Divyansh 
    Divyansh

     Ok i was able to find the commands but it only list email which are exactly 2 week old .. it does not list the recent items ..  
     Add-type -assembly "Microsoft.Office.Interop.Outlook" | out-null
     $olFolders = "Microsoft.Office.Interop.Outlook.olDefaultFolders" -as [type] 
     $outlook = new-object -comobject outlook.application
     $namespace = $outlook.GetNameSpace("MAPI")
     $folder = $namespace.getDefaultFolder($olFolders::olFolderSentMail)
     $folder.items  | where { $_.SentOn -gt [datetime]"3/1/2014" -AND $_.On -lt [datetime]"3/25/2014" }  | Select-Object -Property Subject, SentOn, Importance, SenderName
    Divyansh

  • Problem replacing an as5200 with an as5300 device

    I'm replacing an as5200 with an as5300 device.
    Copying and correcting to the new interface naming the configuration from the old device to the new one the inbound connections works fine but the outbound dial on demand connections does NOT works even the dialer and the aaa configuration are the same.
    Debugging the ppp events I can see the "DIALER-6-BIND: Interface Virtual-Access1 bound to profile DialerXX" is NOT received in the new device.
    Attached the new configuration with password replaced for security reason.
    can you help me ?
    Thanks in advance.

    check out the following link for information on Troubleshooting Dial Technology Connectivity :
    http://www.cisco.com/en/US/tech/tk801/tk133/technologies_tech_note09186a008009469d.shtml

  • Need special encoded characters in an Email subject with java 1.3.1_02

    I need to find a way to construct an Email through java with Subject lines built using characters from various Asian encodings. Such as Shift-JIS, Chinese Big5, etc.
    These encodings cannot be in UTF-8 format and must remain in the native character set.
    For testing I have an HTML file constructed using a single line of text with Shift-JIS characters. This file shows properly in web browsers under the Shift-JIS encoding view, and when used to create the body of an email it works perfectly through the DataHandler. However, I cannot get any java Reader to pull the same stream of characters into the Subject of the email. The Subject is always garbage no matter what I do.
    Here is a small code sample with the relevant lines:
    Session session = Session.getDefaultInstance(System.getProperties(), null);
    MimeMessage reSend = new MimeMessage(session);
    Transport ship = session.getTransport();
    BufferedReader s = new BufferedReader(new InputStreamReader(new FileInputStream("C:\\JavaPrograms\\Converted\\JISConv.html"), "SJIS"));
    String resub = s.readLine();
    s.close();
    reSend.setSubject(resub);
    DataHandler collect = new DataHandler(new FileDataSource("C:\\JavaPrograms\\Converted\\JISConv.html"));
    reSend.setDataHandler(collect);
    ship.send(reSend);If I use the "SJIS" encoding in the InputStreamReader above, all characters are shown as "?". If I delete it entirely and use the system default, I get half of the characters and the rest are garbage. I can generate either of those results using various other Japanese and Western encoding definitions.
    I have tried using the above code, also DataHandlers for the Subject, FileReader directly to a String, ByteArrayInputStreams, and StringBuffers. So far everything I try ends up at the same result.
    Can anyone help me out? I really need this to work. If I can get this one encoding to work, then I should be able to program case switches for the other encodings.
    Thanks kindly!
    Kurt Jackson

    First this is an issue with javamail and not with java.
    What makes you think that the mime standard allows what you want to do?
    Both of your 'tests' have been done using alternatives which do support alternative encodings.
    These encodings cannot be in UTF-8 format and must remain in the native character set.That seems rather unlikely to me. Email is transported using one encoding. Certainly SMTP uses only ascii. So what ever you put in there is going to be ASCII no matter what you do to it. I suppose something at the end might try to read it using an alternative encoding but then what happens when someone really wants to send those ASCII characters?
    Mime, I believe, is built on SMTP. And the subject line is still SMTP and thus ASCII.
    Here is one link that covers mime (you might want to check the backing references though.)
    http://www.mindspring.com/~mgrand/mime.html
    I believe there is some sort of official or unofficial standard for doing what you want. I would suggest that you start by getting that first. I would suspect JavaMail doesn't support it.
    Once you have a standard to follow you have the following choices..
    - Modify JavaMail directly to support this (this then becomes a non-distributable solution.)
    - Extend JavaMail do support this. This might or might not be possible.
    - Write your own implementation (don't use JavaMail.)
    - Find another solution from another source that already implements this.

  • Problems setting email headers with javax.mail.*

    I'm trying desperatly to send HTML emails with javax.mail but I simply can't. No matter what I do, no matter how and where I set the headers it always come out as text.
    Here's a sample code:
    try {
              Properties props = System.getProperties();
              props.put("mail.smtp.host", "smtp.ability.com.br");
              Session session = Session.getDefaultInstance(props, null);
              Message msg = new MimeMessage(session);
              msg.setHeader("Content-Type", "text/html");
              msg.setRecipient( MimeMessage.RecipientType.TO, new InternetAddress("[email protected]") );
              msg.setFrom( new InternetAddress("[email protected]") );
              msg.setSubject("teste");
              msg.setText("<b>testeeeeeeeeeeeee</b>");
              Transport.send( msg );
              } catch( Throwable t ) {
                   System.err.println(t);
              }and here's the resulting email:
    Return-Path: <[email protected]>
    Delivered-To: [email protected]
    Received: (qmail 5895 invoked by uid 510); 21 Dec 2004 16:41:49 -0000
    Received: from [email protected] by relay03.dominal.com
    Received: from unknown (HELO christian) (200.217.110.124)
      by 0 with SMTP; 21 Dec 2004 16:41:48 -0000
    Message-ID: <20590970.1103647309922.JavaMail.christian@christian>
    From: [email protected]
    To: [email protected]
    Subject: teste
    Mime-Version: 1.0
    Content-Type: text/plain; charset=us-ascii
    Content-Transfer-Encoding: 7bit
    <b>testeeeeeeeeeeeee</b>What am I missing here?
    Thanks in advance,
    Christian

    msg.setText("<b>testeeeeeeeeeeeee</b>");R
    eplace that
    bymsg.setContent("<b>testeeeeeeeeeeeee</b>",
    "text/html");
    Thanks DrClap, but that's not exactly the solution I'm looking for, cuz I would have to hard-code that header.
    I have an Email class that I use as a wrapper for the javax.mail API, and I wanna be able to have a setHeader() method that works to enable the users to set the content-type of the text (or HTML) portion of the email, even when there are attachments. How can I achieve this?

  • Matching email Subject with attachment content

    Hello All,
    Here is my requirement.  I receive and email from a third party.  The emai Subject field has the name of the file that is the attachment.  I need to pick up the email with PI and put the attachment to disk as a file where the name of the file is the "Subject" field of the email.
    I have been able to write the attachment to disk as a file using the PayloadSwapBean.  But how do I collect the name of the file from the "Subject" field so I can use it as the name of the file when I write?
    Thank you for your assistance.
    Rich

    Use Dynamic Configuration. The Technical name for this Subject field in mail adapter is SHeaderSUBJECT. You can use it and assign it to FileName parameter of File adapter.
    Regards,
    Prateek Raj Srivastava

  • Problem replacing Null nodes with real values in XML documents...

    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    Our friends in Java land are insisting on passing data between Java and PL/SQL using fairly small XML documents (don't ask). I then need to extract the input parameter values and pass them, on to the stored procedures that actually do the work. These return a result which needs to be returned to the java layer in the output XML document.
    Here is a cut down version of the input XML...
    <ParameterList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Parameter>
    <Id>1</Id>
    <Result xsi:nil="true"/>
    </Parameter>
    <Parameter>
    <Id>2</Id>
    <Result xsi:nil="true"/>
    </Parameter>
    </ParameterList>
    and this is an example of what I am expected to return...
    <ParameterList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Parameter>
    <Id>1</Id>
    *<Result>SUCCESS</Result>*
    </Parameter>
    <Parameter>
    <Id>2</Id>
    *<Result>WARNING</Result>*
    </Parameter>
    </ParameterList>
    i.e. I am expected to replace the value of the Result node with a string indicating the succes or otherwise of the underlying PL/SQL process.
    I am extracting the input values using the DBMS_XMLDOM functions and naively assumed that DBMS_XMLDOM.SETNODEVALUE could be used to update the value in the Result node - It didn't work so I resorted to reading the documentation which revealed that it will not work for a null node.
    Am I going to have to use XSLT to generate the output XML from the Input and incorprate the result? Or is there a simpler way?
    I have used XSLT in Oracle before and still have the nervous tick...

    Thanks A Non,
    With your suggestion and a bit of help from the w3schools.com xml dom tutorial I eventually managed to work out how to do this.
    Here is the code (with all my debug stuff in so it looks worse than it is...)
    create or replace
    PROCEDURE ExtractXMLValues (p_inXml IN CLOB ) IS
    l_string VARCHAR2(4000);
    l_value VARCHAR2(4000);
    l_DOM_doc dbms_xmldom.DOMDocument;
    l_DOM_node dbms_xmldom.DOMNode;
    l_new_DOM_node dbms_xmldom.DOMNode;
    l_new_element dbms_xmldom.DOMElement;
    l_new_DOM_nodevalue dbms_xmldom.DOMNode;
    l_value_Node dbms_xmldom.DOMNode;
    l_parameter_Node dbms_xmldom.DOMNode;
    --l_DOM_nodelist    dbms_xmldom.DOMNodeList;
    l_Result_DOM_node dbms_xmldom.DOMNode;
    BEGIN
    l_DOM_doc := dbms_xmldom.newDomDocument(p_inXml);
    l_DOM_node := dbms_xmldom.makeNode(l_DOM_doc);
    dbms_xmldom.writeToBuffer(l_DOM_node, l_string);
    dbms_output.put_line('1 ' || l_string);
    l_parameter_node := dbms_xslprocessor.selectSingleNode(l_DOM_node,'//Parameter');
    -- get the current values in the XML document for Id and Result
    l_Result_DOM_node := dbms_xslprocessor.selectSingleNode(l_DOM_node,'//Id');
    l_value_Node := dbms_xmldom.getFirstChild(l_Result_DOM_node);
    l_value := dbms_xmldom.getnodevalue(l_value_Node);
    dbms_xmldom.writeToBuffer(l_Result_DOM_node, l_string);
    dbms_output.put_line('2 ' || l_string || ' : ' || l_value);
    l_Result_DOM_node := dbms_xslprocessor.selectSingleNode(l_DOM_node,'//Result');
    l_value_Node := dbms_xmldom.getFirstChild(l_Result_DOM_node);
    l_value := dbms_xmldom.getnodevalue(l_value_Node);
    dbms_xmldom.writeToBuffer(l_Result_DOM_node, l_string);
    dbms_output.put_line('3 ' || l_string || ' : ' || l_value);
    -- create new Result node
    l_new_DOM_node      := dbms_xmldom.makenode(dbms_xmldom.createElement(l_DOM_doc, 'Result'));
    dbms_xmldom.writeToBuffer(l_new_DOM_node, l_string);
    dbms_output.put_line('4 New node : ' || l_string);
    -- create a value for it
    l_new_DOM_nodevalue := dbms_xmldom.makenode(dbms_xmldom.createtextnode(l_DOM_doc, 'SUCCESS'));
    dbms_xmldom.writeToBuffer(l_new_DOM_nodevalue, l_string);
    dbms_output.put_line('5 New node value : ' || l_string);
    -- add the value to the new Result node
    l_new_DOM_nodevalue := dbms_xmldom.appendchild(l_new_DOM_node,  l_new_DOM_nodevalue);
    dbms_xmldom.writeToBuffer(l_new_DOM_node, l_string);
    dbms_output.put_line('6 New node : ' || l_string);
    -- replace the old node with the new one
    l_Result_DOM_node := dbms_xmldom.replaceChild(l_parameter_node, l_new_DOM_node, l_Result_DOM_node);
    dbms_xmldom.writeToBuffer(l_parameter_node, l_string);
    dbms_output.put_line('6 parameter node : ' || l_string);
    dbms_xmldom.writeToBuffer(l_DOM_node, l_string);
    dbms_output.put_line('7 Updated document ' || l_string);
    dbms_xmldom.freeDocument(l_DOM_doc);
    END ExtractXMLValues;
    and the output...
    1 <ParameterList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Parameter>
    <Id>1</Id>
    <Result xsi:nil="true"/>
    </Parameter>
    </ParameterList>
    2 <Id>1</Id> : 1
    3 <Result xsi:nil="true"/> :
    4 New node : <Result/>
    5 New node value : SUCCESS
    6 New node : <Result>SUCCESS</Result>
    6 parameter node : <Parameter>
    <Id>1</Id>
    <Result>SUCCESS</Result>
    </Parameter>
    7 Updated document <ParameterList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Parameter>
    <Id>1</Id>
    *<Result>SUCCESS</Result>*
    </Parameter>
    </ParameterList>
    One question, why do the dbms_xmldom functions return the Old value? I was expecting the returned value to be the updated node.
    Edited by: Lone voice on May 14, 2009 11:24 AM

  • Link problems in emails sent with Pages

    Hello,
    I'm trying to email a Pages document consisting of one page. I've made a link within the document, but when it is emailed and you click on the link, the link goes to a PDF file and then if you click on the link in the PDF file it goes to the web site I'm trying to link to. If you click on the link directly in the email, it doesn't work, but just grays out the email. Is this possible to do within Pages or is there a better package to do this. It happens in other mailing programs too, like Direct Mail. Any thoughts and thanks for any help I can get.

    +-+-+-+-+-+-+-+-+
    +4. Discussions+
    +Apple Discussions, launched in August, 2000, have grown rapidly in usage and features. The main features include personalization, subscription capabilities and email capabilities. For information on how to use Discussions, please visit the Discussions Help Page. Cookies should be enabled and an Apple ID account is required if you would like to contribute to the discussions.+
    +Entering the Help and Terms of Use area you will read:+
    +*What is Apple Discussions and how can it help me?*+
    +
Apple Discussions is a user-to-user support forum where experts and other Apple product users get together to discuss Apple products. … You can participate in discussions about various products and topics, find solutions to help you resolve issues, ask questions, get tips and advice, and more.+
    +_If you have a technical question about an Apple product, be sure to check out Apple's support resources first by consulting the application Help menu on your computer and visiting our Support site to view articles and more on our product support pages._+
    +*I have a question or issue*—+
    +how do I search for answers? _
It's possible that your question or issue has already been answered by other members so do a search before posting a question._ On most Apple Discussions pages, you'll find a Search Discussions box in the upper right corner. Enter a search term (or terms) in the field and press Return. Your results will appear as a list of links to posts below the Search Discussions Content pane.+
    +Search tips are available here:+
    +search/tips.html">http://www.apple.com/search/tips.html+
    +-+-+-+-+-+-+-+-+
    Given that, it was responded many times that before attaching any iWork's document to a mail we must pack it as an arcive (zip one for instance).
    Most of mail tools are unable to treat correctly the package structure which is the one used by iWork.
    Yvan KOENIG (from FRANCE mercredi 30 juillet 2008 10:52:06)

  • I am having problems viewing email attachments with adobe reader? Help?

    Hi there. Can anyone help me please?

    This is your second post.  Does it occur to you that we have no way of knowing what you are doing, or what system, OS, mail client, Reader version, or anything else you have in front of you?  There may be psychics, but they are usually in a different line of work.

  • Setting windows mail as default "Mail To" doesn't work as usual. Opens entire windows mail vs. email new email message with subject and URL inserted

    I have a problem never had B 4. Have installed new Win7 OS many times and imported windows mail. Always when choosing windows mail in FF it worked. Now when doing I get windows mail program opening or if open coming to forefront or screen. Supposed to get a new email message with subject and URL inserted. I have searched many answers fro FF & MS. I have set WinMail as default, add ed same in reg, etc. etc. Still NADA. Any ideas? thanks

    You should post here:
    Microsoft Office forums >
    Word IT Pro Discussions
    S.Sengupta, Windows Entertainment and Connected Home MVP

  • Why are emails downloaded with the subject and from address different from what is actually in the email?

    The subject and from address listed in the message pane are totally different from what is in the actual email, viewed either in the preview pane or when the email is opened. The emails are correct when viewed online. For example:
    Email subject A from Sender A - email A
    Email subject B from Sender B - email B
    Email subject C from Sender C - email C
    After downloading to Thunderbird:
    Email subject A from Sender A - email A
    Email subject B from Sender B - email B
    Email subject C from Sender C - email A *** Subject and Sender for C but is actually email A
    This started happening within the past month and appears to be random. Sometimes everything is correct. But more often there are a few that exhibit the above behavior. I have multiple email address downloading from the same domain but this problem seems to occur ostly with my main email account.

    Try to rebuild the index file of the troubled folder.
    Right-click the folder - Properties - Repair Folder

  • How to replace one char with two chars in email address policy?

    I very much like to replace the 'ß' char in the surname with 'sz'. However, applying filter '%rßsz%[email protected]' on 'Preußig' leaves me with '[email protected]'.
    So, how do I replace one char with two chars in email address policy?

    As far as I know, your only solution is to manually create such addresses instead of using e-mail address policy.
    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

  • Send images in email with sapconnect

    hello friends, do you know how include images with sapconnect in a email??, but not as a atachment file, but inside of email´s body.
    thank you at all.

    I thought I might add some more detail for anyone who might be interested.<br>
    I can get the below url and any for that matter to work within the framework of APEX. <br>
    I had to strip the HTML tags so you can see it below. <br>
    I place the below code inside HTML tags, inside the Source Code for the PL/SQL anonymous block of the Send Email notification and it all works great. <br>
    The problem is I need the image to open back into the application on a certain page and I have been struggling with the exact code to make that work.<br>
    <br>
    Any help or comments are greatly appreciated.
    <br>
    <br>
    Here is the block of code without the proper right and left angle brackets:<br>
    <br>
    div align="center"<br>
    center<br>
    table border="0" cellpadding="0" cellspacing="0" width="450"<br>
    tr<br>
    td width="100%"<br>
    a href="http://nl.internet.com/c.html?rtr=on&s=1,33pt,1,c946,chaf,fxb0,cybi"<br>
    img border="0" src="http://www.jupitergreetings.com/images/jg_news/2007/con_head.jpg"
    width="535" height="230"<br>
    tr<br>
    table<br>
    center<br>

  • Email subject line problem

    I upgraded to Mavericks when it first came out. I have 5 email accounts setup in Mail. One of my Google accounts behaves oddly. When I create a new email, the subject line allows tyoing in a few (3-5) characters and then clears out and any new cahracters - up to 3-5 - are added, and then they are cleared out!
    I have to either switch accounts, type the subject line and then switch back or type the subject in the body then cut and paste it in the subject. Both of these work but are annoying. Currently on 10.9.1 and finding this to be more painful as I send 50+ emails from this account daily.
    regards,
    Michael

    the problem has been resolved with the help of user exist

  • Problems sending emails with iPhone 3G and outlook exchange

    I have a problem sending email with exchange. Receiving and answering mail works fine and calender updates work fine. However when I initiate an email from the phone it syncs and ends up in the sent folder in the computer but never reaches the recipient. I have tried this many times with different recipients and phones. It only happens from my iphone and ipad. Any suggestions?
    Any help much appreciated

    The iPhone you returned is still syncing against your server and locking out your account. Someone possibly has access to your mail data. I'd recommend having your Exchange Administrator install the Microsoft Exchange Server ActiveSync Web Administration Tool (http://www.microsoft.com/downloads/details.aspx?FamilyID=E6851D23-D145-4DBF-A2CC -E0B4C6301453&displaylang=en) and attempt to wipe/delete/block that other iPhone.
    Message was edited by: ethanm

Maybe you are looking for