Sending HTML content in body for emailnotification in OSB

hi,
i have done an emailnotification service in OSB..
currently HTML content in body is not supported in OSB..
how to send the html content as body for an email..
please provide a solution at the earlist..
thanks

how to send the html content as body for an emailSimply as you send a XML. Post OSB related queries in SOA suite forum -
SOA Suite
Regards,
Anuj

Similar Messages

  • Send html content in notification body

    Hi, I am trying to make the body of my mail as html. But an empty mail is getting sent. The code is,
    <copy>
    <from expression="ora:processXSLT('Transformation_1.xsl',bpws:getVariableData('inputVariable','payload','/ns2:ORDER'))"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns3:Content/ns3:ContentBody"/>
    </copy>
    <copy>
    <from expression="string('text/html; charset=UTF-8')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns3:Content/ns3:MimeType"/>
    </copy>
    The xsl has the code:
    <xsl:template match="/">
    <ns0:ORDER>
    <xsl:attribute name="ErrState">
    <xsl:value-of select="/ns0:ORDER/@ErrState"/>
    </xsl:attribute>
    </ns0:ORDER>
    </xsl:template>
    I can see the ContentBody variable in the AuditTrail with the processed value. but in mail I am not getting anything.
    Please help me on this

    What happens if the user isn't reading the message in a HTML enabled mail client?
    Besides, even if you don't want to send an equivelant message in plain text, at least say something like 'Please open the message in an HTML enabled mail client'.
    It is a required field, so requires some value (not null).
    From the docs:
    Plain text and HTML email content. Passing a value to p_body, but not p_body_html results in a plain text message. Passing a value to p_body and p_body_html yields a multi-part message that includes both plain text and HTML content. The settings and capabilities of the recipient's email client determine what displays. Although most modern email clients can read an HTML formatted email, remember that some users disable this functionality to address security issues.

  • How to send HTML as message body using SMTP

    I need to send HTML formatted emails. I used the Report Generation Toolkit to build my HTML document and make sure I had all of the formatting right. Then I modified the Save Report To File.vi to also give me the HTML text string on an output connector and I wire this string to the message input on the SMTP Email Send Message.vi.
    I receive the email OK, but all I see is the HTML code in the message body. What can I do to make sure that the email displays the message correctly.
    I use Outlook and I know it will receive and display HTML emails, I get them all the time.
    I would appreciate any help.

    Hi Dgw,
    it is similar. You must change message MINE content-type to "text/html" type. Because everyone document in email protocol have set MINE content-type. It is inforamtion for email servers and for email cients (Thunderbird, Outlook and etc.)
    For sendning mail with attachments you must use and modified "SMTP Send Multiple Attachments.vi" - if you can do backup of this VI and subVIs. Open Diagram of "SMTP Send Multiple Attachments.vi" after "SMTP Send Multiple
    Attachments Message.vi" and ther is VI "MIME Send Data Attachment.vi" - have control "MIME content-type" but code from NI don't use it.
    And like as my previous message, create new string control "MINE content-type" and take out this control to "main" Email VI.
    And embedd
    ed file you set up in control-cluster "attachments". I don't test it, but I mind thet must working :-)
    Have nice day
    JCC
    Attachments:
    email.jpg ‏70 KB

  • Not able to Send HTML Content in Apex Mail

    Hi,
    I am using Oracle Apex 4.2 and Oracle 11g XE
    I am trying to add HTML content in the apex_send mail procedure. But it give me the below error.
    >>•ORA-06502: PL/SQL: numeric or value error: invalid LOB locator specified: ORA-22275
    Below is the code i am trying to add in the apex_send mail
    DECLARE
    l_from varchar2(1000);
    l_body CLOB;
    l_body_html CLOB;
    BEGIN
    l_body := null;
    l_body_html := '
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta property="og:title" content="Seasons Greetings from sudhir Networks" />
    <title>Seasons Greetings from sudhir Networks</title>
    <style type="text/css">
    /* Client-specific Styles */
    #outlook a{padding:0;} /* Force Outlook to provide a "view in browser" button. */
    body{width:100% !important;} .ReadMsgBody{width:100%;} .ExternalClass{width:100%;} /* Force Hotmail to display emails at full width */
    body{-webkit-text-size-adjust:none;} /* Prevent Webkit platforms from changing default text sizes. */
    /* Reset Styles */
    body{margin:0; padding:0;}
    img{border:0; height:auto; line-height:100%; outline:none; text-decoration:none;}
    table td{border-collapse:collapse;}
    #backgroundTable{height:100% !important; margin:0; padding:0; width:100% !important;}
    body, #backgroundTable{
    /*@editable*/ background-color:#FAFAFA;
    #templateContainer{
    /*@editable*/ border: 1px solid #DDDDDD;
    h1, .h1{
    /*@editable*/ color:#202020;
    display:block;
    /*@editable*/ font-family:Arial;
    /*@editable*/ font-size:34px;
    /*@editable*/ font-weight:bold;
    /*@editable*/ line-height:100%;
    margin-top:0;
    margin-right:0;
    margin-bottom:10px;
    margin-left:0;
    /*@editable*/ text-align:left;
    h2, .h2{
    /*@editable*/ color:#202020;
    display:block;
    /*@editable*/ font-family:Arial;
    /*@editable*/ font-size:30px;
    /*@editable*/ font-weight:bold;
    /*@editable*/ line-height:100%;
    margin-top:0;
    margin-right:0;
    margin-bottom:10px;
    margin-left:0;
    /*@editable*/ text-align:left;
    h3, .h3{
    /*@editable*/ color:#202020;
    display:block;
    /*@editable*/ font-family:Arial;
    /*@editable*/ font-size:26px;
    /*@editable*/ font-weight:bold;
    /*@editable*/ line-height:100%;
    margin-top:0;
    margin-right:0;
    margin-bottom:10px;
    margin-left:0;
    /*@editable*/ text-align:left;
    h4, .h4{
    /*@editable*/ color:#202020;
    display:block;
    /*@editable*/ font-family:Arial;
    /*@editable*/ font-size:22px;
    /*@editable*/ font-weight:bold;
    /*@editable*/ line-height:100%;
    margin-top:0;
    margin-right:0;
    margin-bottom:10px;
    margin-left:0;
    /*@editable*/ text-align:left;
    #templatePreheader{
    /*@editable*/ background-color:#FAFAFA;
    .preheaderContent div{
    /*@editable*/ color:#505050;
    /*@editable*/ font-family:Arial;
    /*@editable*/ font-size:10px;
    /*@editable*/ line-height:100%;
    /*@editable*/ text-align:left;
    .preheaderContent div a:link, .preheaderContent div a:visited, /* Yahoo! Mail Override */ .preheaderContent div a .yshortcuts /* Yahoo! Mail Override */{
    /*@editable*/ color:#336699;
    /*@editable*/ font-weight:normal;
    /*@editable*/ text-decoration:underline;
    #templateHeader{
    /*@editable*/ background-color:#FFFFFF;
    /*@editable*/ border-bottom:0;
    .headerContent{
    /*@editable*/ color:#202020;
    /*@editable*/ font-family:Arial;
    /*@editable*/ font-size:34px;
    /*@editable*/ font-weight:bold;
    /*@editable*/ line-height:100%;
    /*@editable*/ padding:0;
    /*@editable*/ text-align:center;
    /*@editable*/ vertical-align:middle;
    .headerContent a:link, .headerContent a:visited, /* Yahoo! Mail Override */ .headerContent a .yshortcuts /* Yahoo! Mail Override */{
    /*@editable*/ color:#336699;
    /*@editable*/ font-weight:normal;
    /*@editable*/ text-decoration:underline;
    #headerImage{
    height:auto;
    max-width:600px;
    #templateContainer, .bodyContent{
    /*@editable*/ background-color:#FFFFFF;
    .bodyContent div{
    /*@editable*/ color:#505050;
    /*@editable*/ font-family:Arial;
    /*@editable*/ font-size:14px;
    /*@editable*/ line-height:150%;
    /*@editable*/ text-align:left;
    .bodyContent div a:link, .bodyContent div a:visited, /* Yahoo! Mail Override */ .bodyContent div a .yshortcuts /* Yahoo! Mail Override */{
    /*@editable*/ color:#336699;
    /*@editable*/ font-weight:normal;
    /*@editable*/ text-decoration:underline;
    .bodyContent img{
    display:inline;
    height:auto;
    #templateFooter{
    /*@editable*/ background-color:#FFFFFF;
    /*@editable*/ border-top:0;
    .footerContent div{
    /*@editable*/ color:#707070;
    /*@editable*/ font-family:Arial;
    /*@editable*/ font-size:12px;
    /*@editable*/ line-height:125%;
    /*@editable*/ text-align:left;
    .footerContent div a:link, .footerContent div a:visited, /* Yahoo! Mail Override */ .footerContent div a .yshortcuts /* Yahoo! Mail Override */{
    /*@editable*/ color:#336699;
    /*@editable*/ font-weight:normal;
    /*@editable*/ text-decoration:underline;
    .footerContent img{
    display:inline;
    #social{
    /*@editable*/ background-color:#FAFAFA;
    /*@editable*/ border:0;
    #social div{
    /*@editable*/ text-align:center;
    #utility{
    /*@editable*/ background-color:#FFFFFF;
    /*@editable*/ border:0;
    #utility div{
    /*@editable*/ text-align:center;
    #monkeyRewards img{
    max-width:190px;
    </style>
    </head>
    <body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0">
    <center>
    <table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="backgroundTable">
    <tr>
    <td align="center" valign="top">
    <table border="0" cellpadding="0" cellspacing="0" width="600" id="templateContainer">
    <tr>
    <td align="center" valign="top">
    <!-- // Begin Template Header \\ -->
    <table border="0" cellpadding="0" cellspacing="0" width="600" id="templateHeader">
    <tr>
    <td class="headerContent">
    <img src="http://www.sudhirnetworks.com/i/logo/sudhir-logo.png" style="max-width:600px; padding-top: 20px;" id="headerImage campaign-icon" mc:label="header_image" mc:edit="header_image" mc:allowdesigner mc:allowtext />
    </td>
    </tr>
    </table>
    <!-- // End Template Header \\ -->
    </td>
    </tr>
    <tr>
    <td align="center" valign="top">
    <!-- // Begin Template Body \\ -->
    <table border="0" cellpadding="0" cellspacing="0" width="600" id="templateBody">
    <tr>
    <td valign="top" class="bodyContent">
    <!-- // Begin Module: Standard Postcard Content \\ -->
    <table border="0" cellpadding="20" cellspacing="0" width="100%">
    <tr mc:repeatable>
    <td valign="top">
    <img src="http://www1.sudhirnetworks.com/ecard/sudhir_holidaycard_clickhere.jpg" style="width:560px;" mc:label="postcard_image" mc:edit="postcard_image" mc:allowtext />
    <div mc:edit="std_content00">
    <strong>Custom Message</strong> goes here.
    </div>
    </td>
    </tr>
    </table>
    <!-- // End Module: Standard Postcard Content \\ -->
    </td>
    </tr>
    </table>
    <!-- // End Template Body \\ -->
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </center>
    </body>
    </html>
    l_from := lower(:app_user) || lower('@sudhirnetworks.com');
    apex_mail.send(
    p_to => :P1_TO,
    p_from => l_from,
    p_body => l_body,
    p_body_html => L_BODY_HTML,
    p_subj => :P1_SUBJECT);
    APEX_MAIL.PUSH_QUEUE;
    END;
    Please suggest me how to fix this issue.
    Thanks
    Sudhir

    What happens if the user isn't reading the message in a HTML enabled mail client?
    Besides, even if you don't want to send an equivelant message in plain text, at least say something like 'Please open the message in an HTML enabled mail client'.
    It is a required field, so requires some value (not null).
    From the docs:
    Plain text and HTML email content. Passing a value to p_body, but not p_body_html results in a plain text message. Passing a value to p_body and p_body_html yields a multi-part message that includes both plain text and HTML content. The settings and capabilities of the recipient's email client determine what displays. Although most modern email clients can read an HTML formatted email, remember that some users disable this functionality to address security issues.

  • Sending HTML file as body of email message

    Hello everybody,
    I am trying to send a HTML file as body of an email message using JAVA mail API. If anybody has more insides pls let me know......
    Waiting for your reply!!!!!!!!!

    Here's what our app does:message.setDataHandler(new DataHandler(new ByteArrayDataSource(bodyHTML, "text/html")));where message is a MimeMessage and bodyHTML is a String containing the HTML.

  • Trying to add html content with Dw for Rf page (Dw is not displaying page correctly also)

    This is how the page looks in Reflow:
    This is how the page looks in Dw CC (2014)
    Here are the ways we have tried so far to get our html quizmaker file to load and run in Rf page:
    The commented out items were previous attempts to get the content to load and run. Tested the Quizmaker content as standalone page and worked great.  The best we have gotten so far is to have a scrollbar show up on the right side and bottom and we could not move them.  The div has been defined in the Rf page using a Rf box.
    Any ideas on other ways to load the quiz?

    It looks like Dreamweaver is rendering the page without the CSS file.
    I can't read the code in your screenshot - is the CSS file referenced in the html? Is the CSS file present on disk?
    Also you tried looking at your page in a browser? It be good to try both viewing the exported code that you're trying to edit in Dreamweaver, as well as doing "Preview in Chrome" from Reflow.
    - Vic

  • Html page in body

    I can send mail with simple text in the body.
    But when i am sending html contents in the body i got blank content in the email body.
    This is my code.
    MimeMessage m = new MimeMessage(session);
    if(From != null | To != null)
    Address from = new InternetAddress(From);
    m.setFrom(from);
    Address [] to = InternetAddress.parse(To);
    m.setRecipients(Message.RecipientType.TO,to);
    if(Cc != null)
    Address [] cc = InternetAddress.parse(Cc);
    m.setRecipients(Message.RecipientType.CC, cc);
    m.setSubject(Subject);
    m.setSentDate(new java.util.Date());
    mbp1.setText(Contents);
    Multipart mp = new MimeMultipart();
    mp.addBodyPart(mbp1);
    m.setContent(mp);
    Transport transport = session.getTransport("smtp");
    transport.connect(getSmtpHost(), "xxxxxxxxxxxxxxxxxxx", "xxxxxxxt");
    m.saveChanges();
    transport.sendMessage(m, m.getAllRecipients());
    transport.close();
    else
    throw new NullPointerException("IST Send Mail Exception : From or To can not be null..");
    }

    I have solved it my self.

  • B1if Sending HTML Email

    Is it possible to send HTML emails through a sndEmail atom?  If so, how do we configure the atom?

    Hello All,
    Regarding to the mail adapter, here are some updates:
    1. B1i will support sending HTML attachemnt via "Send Email" atom in B1 882 PL09. An example here:
    <attachment doc="test.htm" pltype="htm">
    <![CDATA[<html>
      <head>
        <title>Enter the title of your HTML document here</title>
      </head>
      <body>
        <p>Enter the body text of your HTML document here</p>
      </body>
    </html>]]>
    </attachment>
    2. In addition, B1i will support sending binary attachment and sending html content in Q1,2013.
    Thanks & Best Regards,
    Qiaoli

  • 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

  • Sending HTML + related images + attachments

    Hello,
    I want to send an HTML file + related images + attachments.
    I actually succeeds in sending HTML content + related images.
    I also know how to attach files in a mail.
    But when I want to have both of those functionnalities in the same mail, I miserably fail... ;)
    Does anyone have a simple example that sends an HTML file + related images + attachments??
    HELP!!!!
    Denis.

    USe this as a **guide**.
    Its sends images + altText(similar to attachment, except that its embedded + html)
    public static void sendC()throws Exception{
              String host = "xx";
              String from = "xxx";
              String to = "xxx";
              String file = "logo.gif";
              Properties props = System.getProperties();
              props.put("mail.smtp.host", host);
              Session session = Session.getDefaultInstance(props, null);
              Message message = new MimeMessage(session);
              message.setSubject("Embedded Image");
              message.setFrom(new InternetAddress(from));
              message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));
              MimeMultipart multipart1 =new MimeMultipart("related");
              //multipart1.setSubType("alternative");
              MimeMultipart multipartBody = new MimeMultipart("alternative");
              MimeBodyPart part=new MimeBodyPart();
              part.setContent("textMessage","text/plain");
              multipartBody.addBodyPart(part);
              part=new MimeBodyPart();
              String htmlText = "<H1>Hello</H1>" +"<img src=\"cid:memememe\">";
              part.setContent(htmlText,"text/html");
              multipartBody.addBodyPart(part);
              MimeBodyPart mbpBody = new MimeBodyPart();
              mbpBody.setContent(multipartBody);
              multipart1.addBodyPart(mbpBody);
              MimeBodyPart imagePart = new MimeBodyPart();
              DataSource fds = new FileDataSource(file);
              imagePart.setDataHandler(new DataHandler(fds));
              imagePart.setHeader("Content-ID","<"+"memememe"+">");
              imagePart.setDisposition("inline");
              multipart1.addBodyPart(imagePart);
              message.setContent(multipart1);
              Transport.send(message);
    You will have to make modifications so that the attchmetns are not embedded.

  • HTML Content Layout Tables

    I need to set up a new HTML Content Table Layout. I can get the table set up, but I can't get the header to not repeat. Does anyone know how to set up a table layout with a non repeating header?

    HTML Content layout repeats for each item in the region. You should set the header above the content region seperately.
    thanks
    Suresh

  • Mailto with html body for UIApplication sharedApplication

    Hi There,
    I would like to have my iPhone application be able to email out in html format some local data. After looking at it I have two questions:
    1) What is the best way to construct large strings i.e html content. Appending hundreds on lines to an NSString seems cumbersome. In Java I would use a StringBuffer but I cant't find the C counterpart.
    2) Once I have this html content can I simply pass it as the '?body'var in the mailto url of the UIApplication sharedApplication? It's a lot of data and may not have the correct %20 UTF coding.
    Any ideas or examples on the best way to do this if it is at all possible? Ideally I would like to send an email with an attachment but the iPhone SDK prohibits that currently.
    Many Thanks All

    Hi,
    Experience does help, of course, but I do look up things on the web. For example, for this issue I double-checked http://download.oracle.com/docs/cd/E17556_01/doc/apirefs.40/e15519/toc.htm as I actually use VARCHAR2s for the email body texts, so didn't even know you could use a clob! download.oracle.com usually has the information I need, so use inurl:download.oracle.com in a google search
    Andy

  • SSRS 2008 R2 report does not print the page header for a html content displaying on multiple pages

    Hi
    I need to display the html content from the database. The html content are quite long and can have content of 3-5 pages. Issue I  am facing is f the record has html content of 3-5 pages, then it does not print the page header (which is a separate tablix) on
    second page onwards.
    Nikesh Shah
    Nikesh Shah

    Hi Nikesh,
    According to your description, I’m not sure the meaning of Page header in your scenario. In Reporting Services, a page header that run along the top of each page, respectively. Headers can contain static text, images, lines, rectangles, borders, background
    color, background images, and expressions. But we couldn’t add tablix in the page header.
    If you are saying report header, a report header consists of the report items that are placed at the top of the report body on the report design surface. They appear only once as the first content in the report. So it cannot repeat in other pages.
    If you are saying tablix header, freezing column headers are different in table and matrix. For more details, please refer to the following thread:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/c8ddc1af-1bdf-4e72-8aab-0353c7cc848a/ssrs-report-freezing-row-and-column-while-scrolling-issue?forum=sqlreportingservices
    If there are any misunderstanding, please elaborate the issue for further investigation.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • SSRS 2008 R2 report prints empty spaces for html content till end of page

    Hi
    I need to display records containing long html content say each record of different size ranging from 5 lines to 3-5 pages.
    Issue observed is:
    When a record complete is printing say half the page and subsequent record is bigger then half a page, the subsequent record is printed on the next page rather than continue immediately after the previous record is completed.
    Is their any property or any other solution to resolve the issue. Print on next page is not set.
    Nikesh Shah

    Hi Nikesh,
    As per my understanding, I think the issue is caused by the blank space in the report body. In order to get rid of the blank space when print the report, please refer to the following steps:
    Click on Report > Report Properties > Layout tab
    Make a note of the values for Page width, Left margin, Right margin
    Close and go back to the design surface
    In the Properties window, select Body
    Click the + symbol to expand the Size node
    Make a note of the value for Width
    Please check the Page Break settings on all your report items and make sure the Body Width + Left margin + Right margin less than or equal to Page width, just like the equalities below:
    (Body Width + Left margin + Right margin) <= (Page width)
    If there are any other questions, please feel free to ask.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How to send Html Mail through navigateToUrl() with contentType "text/html" for Android ?

    Isn't it possible to send Html Mail through navigateToUrl() with contentType "text/html" for Android ? please suggest any workaround
    Thanks

    AHHHH
    What you can do to make HTML for Apple Mail is to make it in an HTML editor, open it with Safari use CMD+i - a new mail message will appear in a moment with the web page in the email body.
    You can't do any major editing in Mail, you'll have to go back to the HTML file. But it works.
    You can also use Copy (from a web page) and then (Edit) Paste as HTML (that what Paste as HTML is for, not for creating HTML email). You can also user Paste as HTML to copy/paste a HTML email you receive or part of a HTML email.

Maybe you are looking for

  • How to configure Free of charge posting to cost account and not to balance?

    Hi, If we post GI for a free of charge delivery (sample) the following will be posted: Cost of Sales 100 Finished goods 100 But we do not want to post to Cost of Sales but to a cost account. What do I need to change? Regards, Eric.

  • JNDI replication within a cluster

    Hi to all of you, we successfully enabled HTTP Session replication and tested the failover. We would also like to setup a JNDI replication, so that we can use it as a storage for some shared data -- as stated in http://download.oracle.com/docs/cd/B10

  • Compressor Droplet WON'T Work

    I made a droplet in Compressor to easily convert avi files for Apple TV. I selected the Apple TV setting in Compressor, saved it as a droplet on my desktop, but when I drag and drop the video file onto the droplet, nothing happens. The video file jus

  • Regarding communication between JSF and applet.

    Hi all, I have to send a array of int value from JSF to the applet method and vice versa, so how can I do that? Is there any straight forward way is there? Or I need to use javascript in between applet and JSF for communicating. If this is case can g

  • Archiving billing invoices

    Hi, I am working on Billing documents( T Code VF02). I am working on two programs the first one uses SCRIPTS. and the second is SMARTFORM. The reqquirement is for the o/p type i have assigned the ARCHIVE ONLY mode. Here I am suppose to get the archiv