JavaMail: fetching html email body.

Hi there,
I'm having a problem fetching an email html body using JavaMail. When I get the content, the html tags are stripped away, only the data of the html page comes back. I need the content with the html tags. The protocol that I use is imap.
Any solutions out there ?
Thanks
Francois

OK - probably the message is a multipart:
Message (MULTIPART/*)
+ Part (TEXT/PLAIN)
+ Part (TEXT/HTML)
Check this. Try this:
   Part HTML = getHtmlPartOutOf(m);
public Part getHtmlPartOutOf(Part p){
   // PURPOSE: Return the first found text/html part in this part (if it has subparts) or null if no text/html
   // is found
   if(p.isMimeType("text/html")){
      return p; // It already is HTML
   else if(p.isMimeType("multipart/*")){
      // go into the multipart, but recursively...
      Multipart mp = (Multipart)p.getContent();
      for(int i = 0; i < mp.getCount(); i++){
         Part subpart = mp.getBodyPart(i);
         Part p = getHtmlPartOutOf(subpart);
         if(p != null){
             return p;
   // Nothing found if it gets there
   return null;
}But beware: this code will only work for pure MIME messages. Messages encoded with TNEF (What Microsoft does, I refer to the thread "Worth Reading: I hate Microsoft") will not be browsed recursively.
Mike

Similar Messages

  • Conditional formatting an html email body

    Hi,
    I'm pulling some data out of a database and creating an email with an html body.  I'd like to highlight some of the rows in a colour if for example a particular column is flagged with a zero, I can call the column "expired".  I need it
    highlighted in html because the users who will be receiving the emails need it as easy as possible....
     I don't know a lot of HTML but do know a little SQL and Powershell.  Here is my code
      #Send email Function    
    function sendMail($messagebody) {
         Write-Host "Sending Email"
         #SMTP server name
         $smtpServer = "xxxxx"
         #Creating a Mail object
         $msg = new-object Net.Mail.MailMessage
         #Creating SMTP server object
         $smtp = new-object Net.Mail.SmtpClient($smtpServer)
         #Email structure
         $msg.From = "sdfsdfs@sdfsdfs"
         $msg.ReplyTo = "dfgfdgdf@dfgdfgd"
         $msg.To.Add("dfgdfg@dfgdfgdf")
         $msg.subject = "**:-)**"
         $msg.IsBodyHtml = $true
         $msg.body = $messagebody
         #Sending email
         $smtp.Send($msg)
    $TableHeader = "e Services"          ##The title of the HTML page
    $OutputFile = "C:\MyReport.htm"         ##The file location
    ##set HTML formatting
    $a = @"
    <style>
    BODY{background-color:white;}
    TABLE{border-width: 1px;
      border-style: solid;
      border-color: black;
      border-collapse: collapse;
    TH{border-width: 1px;
      padding: 0px;
      border-style: solid;
      border-color: black;
      background-color:#C0C0C0
    TD{border-width: 1px;
      padding: 0px;
      border-style: solid;
      border-color: black;
      background-color:white
    </style>
    $body = @"
    <p style="font-size:25px;family:calibri;color:#ff9100">
    $TableHeader
    </p>
    $connString = "Data Source=Localhost\SQLEXPRESS,1433;Initial Catalog=Logons;User Id=Matrix; Password=Q@v652500;"
    $QueryText = "exec dbo.LancasterWayBuildingRelated"
    $SqlConnection = new-object System.Data.SqlClient.SqlConnection
    $SqlConnection.ConnectionString = $connString
    $SqlCommand = $SqlConnection.CreateCommand()
    $SqlCommand.CommandText = "EXEC dbo.LancasterWayBuildingRelated"
    $DataAdapter = new-object System.Data.SqlClient.SqlDataAdapter $SqlCommand
    $dataset = new-object System.Data.Dataset
    $dataAdapter.Fill($dataSet)
    $connection.Close()
    ##Return all of the rows and pipe it into the ConvertTo-HTML cmdlet, and then pipe that into our output file
    $messagebody = $dataSet.Tables | Select-Object -Expand Rows |
    ConvertTo-HTML -head $a –body $body 
    $messagebody | Out-File $OutputFile
    #Write-Host $DataAdapter.Fill($dataset) ' records have been exported.'
    #[string]$all = $dataset.tables[ 0 ] | Out-String
    #Calling email function
    if (!$messagebody) {} else
    {sendMail $messagebody}
    Alter De Ruine

    Hi Sir,
    I would like to check if you need further assistance .
    Best Regards,
    Elton JI
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] .

  • Potential bug in javamail + qmail when email body starts with dots

    I may have discovered a potential issue with using JavaMail + QMail server. It appears that if there is a message in my mailbox which starts with either one dot ('.') or a series of dots ('...hello there'), when I attempt to do a :
    inbox.fetch(messages, profile);
    I get the following JavaMail error:
    javax.mail.MessagingException: error getting size;
    nested exception is:
    java.io.IOException: Unexpected response: .
    at com.sun.mail.pop3.POP3Message.getSize(POP3Message.java:100)
    at com.sun.mail.pop3.POP3Folder.fetch(POP3Folder.java:369)
    This issue seems to only occur on qmail. When I try to read the same email starting with one or multiple leading dots, I can retreive it without any issues.
    Has anyone else experienced anything of the sort?

    Almost certainly it's a QMail bug. Turn on session
    debugging and
    examine the protocol trace to see what the server is
    really saying.
    If you need help interpreting it, send it to us at
    [email protected]
    or post it here.you might be right. here's the output from the javax.mail debug mode. note that it appears that qmail potentially returns the headers as well as an extraneous dot ('.') and that is what causes the whole issue:
    DEBUG: getProvider() returning javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]
    DEBUG POP3: connecting to host "mail.dynamomail.com", port 110, isSSL false
    S: +OK <[email protected]>
    C: USER [email protected]
    S: +OK
    C: PASS somepassword
    S: +OK
    C: STAT
    S: +OK 4 11729
    C: NOOP
    S: +OK
    C: TOP 1 0
    S: +OK 2917 octets
    Received: (qmail 17849 invoked from network); 6 May 2006 04:21:03 -0000
    Received: from unknown (HELO pre-smtp15-01.prod.mesa1.secureserver.net) ([64.202.166.67])
    (envelope-sender <[email protected]>)
    by smtp15-01.prod.mesa1.secureserver.net (qmail-ldap-1.03) with SMTP
    for <[email protected]>; 6 May 2006 04:21:03 -0000
    Received: (qmail 10294 invoked from network); 6 May 2006 04:21:03 -0000
    Received: from unknown (HELO s.somewhere.org) ([1.2.3.4])
    (envelope-sender <[email protected]>)
    by pre-smtp15-01.prod.mesa1.secureserver.net (qmail-ldap-1.03) with SMTP
    for <[email protected]>; 6 May 2006 04:21:03 -0000
    Received: from localhost.localdomain (localhost [127.0.0.1])
         by someserver (Postfix) with ESMTP id E57DA4394E
         for <[email protected]>; Fri, 5 May 2006 21:21:02 -0700 (PDT)
    Received-SPF: pass (s.somewhere.org: domain of [email protected] designates 1.2.3.4 as permitted sender)
    Received: from wx-out-0102.google.com (wx-out-0102.google.com [1.2.3.4])
         by (Postfix) with ESMTP id B340910E25
         for <[email protected]>; Fri, 5 May 2006 21:21:02 -0700 (PDT)
    Received: by wx-out-0102.google.com with SMTP id s10so699939wxc
    for <[email protected]>; Fri, 05 May 2006 21:21:02 -0700 (PDT)
    DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
    s=beta; d=gmail.com;
    h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition;
    b=pnrSN/WBJArwYZxG9jk6jkw2VmTIntJnKSIlTFWb1gslSjmavE1Ng+4oAIEooihq8foHxkclsQREVGSlEamC56yMYlYujGSudbbNQDrjcBR0VeNpLXRJ7iJac/8pwqz0vHtD2SaeR1p/8Pfx/PRG9kYPlfvnPYAWTh9xn4X3XCs=
    Received: by 10.70.40.5 with SMTP id n5mr3267300wxn;
    Fri, 05 May 2006 21:21:02 -0700 (PDT)
    Received: by 10.70.49.9 with HTTP; Fri, 5 May 2006 21:21:02 -0700 (PDT)
    Message-ID: <[email protected]>
    Date: Sat, 6 May 2006 00:21:02 -0400
    From: "Sender" <[email protected]>
    To: [email protected]
    Subject: just a test
    MIME-Version: 1.0
    Content-Type: text/plain; charset=ISO-8859-1; format=flowed
    Content-Transfer-Encoding: quoted-printable
    Content-Disposition: inline
    X-Nonspam: None
    C: LIST 1
    S: .
    C: QUIT
    S: +OK 1 2917
    javax.mail.MessagingException: error getting size;
    nested exception is:
         java.io.IOException: Unexpected response: .
         at com.sun.mail.pop3.POP3Message.getSize(POP3Message.java:100)
         at com.sun.mail.pop3.POP3Folder.fetch(POP3Folder.java:369)
         at org.ProcessMailViaPOP.getItems(ProcessMailViaPOP.java:585)
         at java.lang.Thread.run(Unknown Source)
    java.lang.IllegalStateException: Folder is not Open
         at com.sun.mail.pop3.POP3Folder.checkOpen(POP3Folder.java:422)
         at com.sun.mail.pop3.POP3Folder.close(POP3Folder.java:193)
         at org.ProcessMailViaPOP.getItems(ProcessMailViaPOP.java:813)
         at java.lang.Thread.run(Unknown Source)

  • Display logo from mime repository in the html email

    Hi Experts,
    I have created a report which will generate an email using SO_NEW_DOCUMENT_ATT_SEND_API1 in html format. Everything works fine except for the logo which I have saved in the  MIME repository.
    I am calling these two functions to get the mime object in URL
    'WWW_GET_MIME_OBJECT'
    'DP_CREATE_URL'
    From the second function I am getting the link of the logo in the variable gv_url .
    And I am writing the code to include that URL in the html email body
    However when the email is received, in place of picture it is just showing a box with an 'x' mark in it.
    Please help me with this, thanks
    Thanks
    Ajith
    Edited by: ajithfin_c on Jan 23, 2012 6:06 AM
    Edited by: ajithfin_c on Jan 23, 2012 6:08 AM

    Check out the help.sap.com for this. you get ->
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/3c/a670692dbc494fb5416fdaa93ee1a9/content.htm">Insert graphics</a>
    - anto

  • Fetching Dynamic email address from the HTML content sent in the email body

    Hi All,
    I have a scenario where in i have to send an html content via an email body . while doing so , i need to fetch the email address from the html content and send a mail to the specified email adrress in the html content .
    How to fetch the email address from the html content.
    Regards
    Vinay P.

    Hi ,
    Dynamic configuration means ...do i need to come up with a mapping which contains the  To,From,Subject fields & all...so that when i click on the mail package in mail adapter ...this  "To" email id will be fetched dynamically
    Regards
    Vinay P

  • Send email including the data field into the html message body

    Hi all,
    I would like to send an email to each recipient once only, and including a data field into the html body message. I am not sure how to achive that with my current stored procedure.
    USE [CallManager]
    GO
    /****** Object: StoredProcedure [dbo].[PersonalCallsReminder] Script Date: 08/27/2014 10:26:55 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    -- =============================================
    -- Author: <Author,,Name>
    -- Create date: <Create Date,,>
    -- Description: <Description,,>
    -- =============================================
    ALTER PROCEDURE [dbo].[PersonalCallsReminder]
    AS
    BEGIN
    -- SET NOCOUNT ON added to prevent extra result sets from
    -- interfering with SELECT statements.
    SET NOCOUNT ON;
    -- Email Users
    declare @email varchar(max)
    declare mycursor cursor FAST_FORWARD for
    SELECT dbo.HumersStaffExtension.email
    FROM dbo.Calls_Mobile_Header INNER JOIN
    dbo.HumersStaffExtension ON
    dbo.Calls_Mobile_Header.TelNumber = dbo.HumersStaffExtension.telnr_prv COLLATE SQL_Latin1_General_CP1_CI_AS
    GROUP BY dbo.Calls_Mobile_Header.RecordStatus, dbo.HumersStaffExtension.usr_id, dbo.HumersStaffExtension.email,
    dbo.HumersStaffExtension.res_id
    HAVING (dbo.Calls_Mobile_Header.RecordStatus = N'0') AND (NOT (dbo.HumersStaffExtension.email IS NULL))
    OPEN mycursor;
    FETCH NEXT FROM mycursor
    INTO @email
    WHILE @@FETCH_STATUS = 0
    BEGIN
    EXEC msdb.dbo.sp_send_dbmail
    @profile_name = 'CallsManagement',
    @recipients = @email ,
    @body_format = 'HTML',
    @subject = 'Personal Calls Reminder',
    @body = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <title>Personal Calls Reminder</title>
    <style type="text/css">
    body {
    font-family: "Times New Roman", Times, serif;
    font-size: 11pt;
    .auto-style1 {
    background-color: #FFFF00;
    </style>
    </head>
    <body>
    <div>
    <table style="width: 800px">
    <tr>
    <td>Dear,<br />
    <br />
    Please review your phone bills and submit your personal calls using the following link:<br />
    <a href="http://companyxyz/personalcalls/">Personal Calls</a></td>
    </tr>
    </table>
    <br/>
    <table style="width: 800px">
    <tr>
    <td><strong>Kindly be informed that the deadline to process new bills is on the
    <span class="auto-style1">15th of each month</span>.</strong></td>
    </tr>
    </table>
    <br/>
    <table style="width: 800px">
    <tr>
    <td>For assistance, please contact <a href="mailto:[email protected]">[email protected]</a></td>
    </tr>
    </table>
    <br/>
    <table style="width: 800px">
    <tr>
    <td><strong>*** This is an automatically generated email, please do not reply ***</strong></td>
    </tr>
    </table>
    </div>
    </body>
    </html>
    FETCH NEXT FROM mycursor
    INTO @email
    END
    CLOSE mycursor;
    DEALLOCATE mycursor;
    END
    Changing the query to the following:
    SELECT TOP (100) PERCENT dbo.HumersStaffExtension.email, dbo.Calls_Mobile_Header.ExtractDate
    FROM dbo.Calls_Mobile_Header INNER JOIN
    dbo.HumersStaffExtension ON
    dbo.Calls_Mobile_Header.TelNumber = dbo.HumersStaffExtension.telnr_prv COLLATE SQL_Latin1_General_CP1_CI_AS
    GROUP BY dbo.Calls_Mobile_Header.RecordStatus, dbo.HumersStaffExtension.usr_id, dbo.HumersStaffExtension.email, dbo.HumersStaffExtension.res_id,
    dbo.Calls_Mobile_Header.ExtractDate
    HAVING (dbo.Calls_Mobile_Header.RecordStatus = N'0') AND (NOT (dbo.HumersStaffExtension.email IS NULL))
    ORDER BY dbo.HumersStaffExtension.email
    Will provide me with the following results:
    email ExtractDate
    [email protected]
    July-2014
    [email protected]
    August-2014
    [email protected]
    July-2014
    [email protected]
    August-2014
    Is it possible to send email to [email protected] once only including in the html message body the ExtractDate field results for July-2014 and August-2014? 
    I appreciate any assist on the issue.
    Thank you in advance.

    Refer the below code highlighted in bold.
    USE [CallManager]
    GO
    /****** Object:  StoredProcedure [dbo].[PersonalCallsReminder]    Script Date: 08/27/2014 10:26:55 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    -- =============================================
    -- Author:  <Author,,Name>
    -- Create date: <Create Date,,>
    -- Description: <Description,,>
    -- =============================================
    ALTER PROCEDURE [dbo].[PersonalCallsReminder]
    AS
    BEGIN
     -- SET NOCOUNT ON added to prevent extra result sets from
     -- interfering with SELECT statements.
     SET NOCOUNT ON;
     -- Email Users
    declare @email varchar(max),@date datetime
    declare @temp table (email varchar(50), extractDate datetime)
    insert into @temp
      SELECT     TOP (100) PERCENT dbo.HumersStaffExtension.email, dbo.Calls_Mobile_Header.ExtractDate
      FROM         dbo.Calls_Mobile_Header INNER JOIN
             dbo.HumersStaffExtension ON
             dbo.Calls_Mobile_Header.TelNumber = dbo.HumersStaffExtension.telnr_prv COLLATE SQL_Latin1_General_CP1_CI_AS
      GROUP BY dbo.Calls_Mobile_Header.RecordStatus, dbo.HumersStaffExtension.usr_id, dbo.HumersStaffExtension.email, dbo.HumersStaffExtension.res_id,
             dbo.Calls_Mobile_Header.ExtractDate
      HAVING      (dbo.Calls_Mobile_Header.RecordStatus = N'0') AND (NOT (dbo.HumersStaffExtension.email IS NULL))
      ORDER BY dbo.HumersStaffExtension.email
    declare mycursor cursor FAST_FORWARD for SELECT DISTINCT email from @temp
    OPEN mycursor;
    FETCH NEXT FROM mycursor
    INTO @email
    WHILE @@FETCH_STATUS = 0
    BEGIN
        DECLARE @date nvarchar(200)
        SELECT @date=Stuff((SELECT ',' + [extractDate]
                  FROM   @temp  where email = @email
                  FOR xml path('')), 1, 1, '')
           EXEC msdb.dbo.sp_send_dbmail
                @profile_name = 'CallsManagement',
                @recipients = @email ,
                @body_format = 'HTML',
                @subject = 'Personal Calls Reminder',
                @body = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <title>Personal Calls Reminder</title>
    <style type="text/css">
     body {
     font-family: "Times New Roman", Times, serif;
     font-size: 11pt;
    .auto-style1 {
     background-color: #FFFF00;
    </style>
    </head>
    <body>
    <div>Extract Date : ' + @date + '</div>
    <div>
     <table style="width: 800px">
      <tr>
       <td>Dear,<br />
       <br />
       Please review your phone bills and submit your personal calls using the following link:<br />
       <a href="Personal">http://companyxyz/personalcalls/">Personal Calls</a></td>
      </tr>
     </table> 
     <br/>
     <table style="width: 800px">
      <tr>
       <td><strong>Kindly be informed that the deadline to process new bills is on the
       <span class="auto-style1">15th of each month</span>.</strong></td>
      </tr>
     </table>
     <br/>
     <table style="width: 800px">
      <tr>
       <td>For assistance, please contact <a href="[email protected]:[email protected]">[email protected]</a></td>
      </tr>
     </table>
     <br/>
     <table style="width: 800px">
     <tr>
     <td><strong>*** This is an automatically generated email, please do not reply ***</strong></td>
     </tr>
     </table>
    </div>
    </body>
    </html>
          FETCH NEXT FROM mycursor
          INTO @email
    END
    CLOSE mycursor;
    DEALLOCATE mycursor;
    END
    Regards, RSingh

  • Email with HTML in body

    Hi.
    I'm look for a way to send an Email with an HTML not as an attachment (this I know how to do) but in the email body.
    The reason is that sometimes we want to allow the user to see the data without having to open their HTML browser.
    I've searched this forum and other and couldn't find anything relevant.
    By the way I'm on 4.6c.
    thanx in advance.
    ayal.

    Dear Vijay.
    I've tried it before I posted this message and also now I copied Rich's code to make sure I haven't left anything.
    I get the Email allright, but instead of seing an HTML I see the HTML code itself in the body.
    Do I need to do some system configuration like the conversion we do for CSV attachments?
    thanx
    ayal.

  • Email bursting send report as HTML in email body

    Hello,
    I have Oracle BI Publisher 10.1.3.4.1 (build# 1101) version installed as part of Oracle Business Inteligence.
    I have question about email bursting. I created simple report and I am bursting it via email. But I would like to send report in HTML as part of email body and not as attachment. I read that it is possible in other versions of BIP (as part of EBS) with using of bursting configuration file. But I can not use this file with my version of BIP, I can configure bursting only vie SQL query.
    Is there any solution?
    Thank you

    My bursting SQL query:
    SELECT DISTINCT
    ip.APPL_ID KEY,
    '11F_Search_Prospect_Email' TEMPLATE,
    'RTF' template_format,
    'en-US' locale,
    'HTML' output_format,
    'EMAIL' DEL_CHANNEL,
    ip.email PARAMETER1,
    '[email protected]' PARAMETER3,
    'Welcome' PARAMETER4,
    'true' PARAMETER6
    FROM ugrad.inquiry_prospect ip,
    ugrad.correspondence f,
    ugrad.address e,
    ugrad.f_lookup fl
    WHERE ip.appl_id = f.appl_id
    AND ip.APPL_ID = e.APPL_ID
    AND fl.TYPE_CODE='C'
    AND ip.record_stage = 'Prospect'
    AND e.COUNTRY_CODE=fl.code
    AND e.table_name = 'INQUIRY_PROSPECT'
    AND e.address_type =
    NVL ((SELECT gg.address_type
    FROM ugradadm.address gg
    WHERE gg.address_type =
    DECODE (f.mailpref,
    'Home', 'HOME',
    'Best', 'LOCAL',
    'HOME'
    AND gg.table_name = 'INQUIRY_PROSPECT'
    AND gg.APPL_ID = ip.appl_id
    AND((gg.address_type='LOCAL' AND NVL(gg.address_expir_date,sysdate)>sysdate)
    OR gg.address_type='HOME')),
    'HOME'
    AND f.batchid = :Batch_ID
    This report when bursted sends an email with the layout template as html body.
    The EMAIL configuration is set with a server Port number and its host address.

  • From:, To: and Subject: end up in email body - html email using sendmail

    To the experts and the experienced:
    I am trying to send email in html format from a Korn shell script on Solaris 10. The
    email does get delivered and is displayed html-formatted, except that the From:, To: and
    Subject: lines are displayed in the email body, rather than in the email header. I
    would appreciate it very much if experts and the experienced could shed some light.
    I use this command line to send the email:
    sendmail -t [email protected] < testmail
    The content of the testmail file is as follows:
    MIME-Version: 1.0
    Content-Type: multipart/alternative; boundary="frontier"
    --frontier
    Content-Type: text/plain
    From: [email protected]
    To: [email protected]
    Subject: test html email
    This is a plain-text email.
    Newman
    --frontier
    Content-Type: text/html
    From: [email protected]&lt;br/&gt;
    To: [email protected]&lt;br/&gt;
    Subject: test html email&lt;br/&gt;
    &lt;h3 align="center"&gt;This is a html email&lt;/h3&gt;
    &lt;p&gt;This is the paragraph.&lt;/p&gt;
    &lt;p&gt;Newman&lt;/p&gt;
    frontier\
    The email received in Microsoft Outlook (html-formatted), looks like this:
    From:         [email protected]
    To:
    Subject:
    From: [email protected]
    To: [email protected]
    Subject: test html email
    <h3 align="center">This is a html email</h3>
    <p>This is the paragraph.</p>
    Newman
    Two things in the email need fixing:
    1. All the From:, To: and Subject: lines are treated as part of the email body and are
    displayed in the email body, rather than in the header as I wanted them to.
    2. The From: line in the email header is the actual sender, not the Bursar.Office as I
    put in the testmail file. This can be easily done when using SMTP (telnet to port 25)
    or mailx.
    How do I tell sendmail/the email client to display in the intended places the From:,
    To: and Subject: information that I specified in the testmail file?
    Many thanks!
    Newman

    I searched in google and found a solution:
    mailx -r [email protected] -s "test html email
    content-type: text/html" john.doe < testmail
    The testmail file is a pure html file with one <html></html> element. The content embedded in this element is the body of the email, with all the usual tags you would like to use: <head>, <style>, &lt;h3&gt;, &lt;p&gt;, &lt;ul&gt;, etc.
    The trick is piggy-backing a content-type with the subject. It seems to me this it to get the content-type into the email header rather than into the body. And that was exactly the problem I had.
    The command lines was executed on Solaris 10. It works.
    Hope this could be useful to someone who would encounter the same problem.
    Newman

  • HTML in email body

    Hi,
        Can someone please let me know how can I send a email with formatted body. I am planning to use HTML for formatting.
        I am using the method
    cl_document_bcs=>create_document(
    i_type = 'HTM'
    i_text = html
    i_length = conlengths
    i_subject = subject ).
    This is not working. However I am able to attach HTML file to the mail .
    Thanks and regards,
    Vamsi

    Hi Mohana,
    Please use the below FM first to convert raw text to HTML and then append the html data to final FM.
    Please check the below piece of code which we have used and its working.
    Header record for converting to HTML
      ls_header-tdname   = zemailtxt.
      ls_header-tdspras  =  'E'.
      ls_header-tdid     =  'ST'.
      ls_header-tdobject =  'TEXT'.
      ls_header-tdstyle  =  'system'.
    FM to convert SAP script to HTML
      CALL FUNCTION 'CONVERT_ITF_TO_HTML'
        EXPORTING
          i_header       = ls_header
        TABLES
          t_itf_text     = lt_lines
          t_html_text    = lt_html
        EXCEPTIONS
          syntax_check   = 1
          replace        = 2
          illegal_header = 3
          OTHERS         = 4.
      REFRESH gt_content.
    Populate email body to an internal table
      LOOP AT lt_html INTO ls_html.
        lwa_content = ls_html-tdline.
        APPEND lwa_content TO gt_content.
        CLEAR lwa_content.
      ENDLOOP.
    Populate the packing details of Mail body
      CLEAR : gv_lines.
      DESCRIBE TABLE gt_content LINES gv_lines.
      lwa_objpack-head_start = 1.
      lwa_objpack-head_num   = 0.
      lwa_objpack-body_start = 1.
      lwa_objpack-body_num   = gv_lines.
      lwa_objpack-doc_type   = 'HTM'.
      APPEND lwa_objpack TO lit_objpack.
    -- Some code for header and doc size ..
    *-- FM for sending email to NERC Team,
        CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
          EXPORTING
            document_data              = gs_doc_chng
            put_in_outbox              =  'X'
            sender_address             = lv_sender_mail
            sender_address_type        = lv_add_type
            commit_work                = gc_x
          TABLES
            packing_list               = lit_objpack
            contents_txt               = gt_content
            receivers                  = gt_reclist
          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.
        IF sy-subrc <> 0.                                    
        ENDIF.

  • HTML email - download image prompt

    Greetings,
    Do you know how to code an html file so that
    when you send it in the body of an email,
    the user has to click on a missing image in order to
    get the real image to download and replace it.
    I imagine that it is related to the NOSEND feature,
    but when I used NOSEND=1, the page sent completely intact
    rather than all except for the images.
    ToeCutter.

    Hi Alan,
    That's actually how my test worked. I think it works well,
    but my boss wants the email to look half disabled I guess.
    An email that he received was an html email, but the images
    didn't port with the email, so the place that should have an
    image
    has a 'system-like' prompt over the image area that basically
    says
    click to download image.
    I thought that this occured because of the nosend="1"
    attribute
    I found attached to the images in it. So now I'm trying to
    recreate
    this situation. I'm about to try a test by sending out an
    HTML
    via stationary rather than copy paste.
    Toe Cutter
    "Alan" <[email protected]> wrote in
    message
    news:C257BB82.2CAE76%[email protected]..
    > what are you sending the mail out in?
    >
    > normally, you would use absolute full urls to the
    images, like
    > <img src="
    http://www.example.com/image/4632.jpg">
    >
    > then the email client the user is viewing the email on
    would fetch and
    > display the images without any prompting.
    >
    > --
    > Alan
    > Adobe Community Expert, dreamweaver
    >
    >
    http://www.adobe.com/communities/experts/
    >
    >
    >
    >

  • Why is my HTML email showing up wrong in different email account?

    I've seen this before and I think it has to do with CSS (which I realize isn't supposed to be in emails), but I'm super new to this and have scoured the internet to find out exactly what I'm doing wrong and how to fix it. It shows up properly in my Yahoo acccount, but not in my Gmail accounts (which initially threw it in Spam, if that has anything to do with it). I only know the very basics of HTML and CSS, but still have get this work done and I'm assuming someone will be able to view the code and see what my issue is pretty quick - I hope! It previews in browsers just fine, it's only when I'm click "Forward to a Friend" to send it to myself to test.
    See the HTML and screencaps of the difference in view below...
    My HTML:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <meta name="Description" content="LandOf.org is a land use information salon for Minnesota developers, planners and the public to learn about growing smarter. LandOf.org covers everything along the transect from central cities to rural areas with topics such as mixed land use to stakeholder collaboration with experts, downloadable plans, case studies and images for each. LandOf.org is a mingling of voices that asks, &ldquo;how can we do what&rsquo;s best for Minnesota?&rdquo;
    " />
    <title>Summer Reading List: Best of Smarting Off Blog</title>
    <style type="text/css">
    .rulebottom {
              border-bottom-width: 1px;
              border-bottom-style: dotted;
              border-bottom-color: #483225;
    .ruleleft {
              border-left-width: 1px;
              border-left-style: dotted;
              border-left-color: #483225;
    .texta {
              font-family: arial, helvetica, sans-serif;
              font-size: 11px;
              color: #483225;
    .texta a {
              font-family: arial, helvetica, sans-serif;
              font-size: 11px;
              color: #483225;
    .titlea {
              font-family: Arial, Helvetica, sans-serif;
              font-size: 19px;
              text-decoration: none;
              color: #80CCA9;
    .titleb {
              font-family: Arial, Helvetica, sans-serif;
              font-size: 19px;
              text-decoration: none;
              color: #154051;
    .textblue {
              font-family: Arial, Helvetica, sans-serif;
              font-size: 11px;
              text-decoration: none;
              color: #154051;
    .bottominfo {
              font-family: Arial, Helvetica, sans-serif;
              font-size: 11px;
              line-height: 16px;
              color: #FFFFFF;
    .border {
              border: thin solid #7C5A45;
    .text {
              font-family: Arial, Helvetica, sans-serif;
              font-size: 12px;
              color: #977347;
              line-height: 16px;
    .intro {
              font-family: Georgia, "Times New Roman", Times, serif;
              font-size: 12px;
              line-height: 16px;
              color: #977347;
              font-style: italic;
    .publisher {
              font-family: Arial, Helvetica, sans-serif;
              font-size: 14px;
              color: #3D1B01;
    .text a {
              font-family: Arial, Helvetica, sans-serif;
              font-size: 12px;
              color: #87C1A9;
              line-height: 16px;
    body {
              background-color: #EAF5AE;
    .text1 {
              font-family: Arial, Helvetica, sans-serif;
              font-size: 12px;
              color: #171800;
              line-height: 18px;
    </style>
    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    try {
    var pageTracker = _gat._getTracker("UA-2283394-35");
    pageTracker._trackPageview();
    } catch(err) {}</script>
    </head>
    <body>
    <table width="750" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#EAF5AE">
      <tr>
        <td><p align="center"> </p>
          <p align="center"><span class="text">Summer reading list from LandOf.org. Having trouble viewing this email? <a href="http://www.landof.org/email/7-13.html" target="_blank" style="color:#6CA233">View it online.</a></span></p>
          <table width="650" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
            <tr>
              <td colspan="6"><div align="right"><a href="http://www.landof.org" target="_blank"><img src="http://www.landof.org/email/images/head.jpg" width="650" height="129" border="0" /></a></div></td>
            </tr>
            <tr>
              <td width="26" rowspan="6" valign="top"><img src="http://www.landof.org/images/spacer.gif" width="25" height="1" /></td>
              <td width="425" valign="top"></td>
              <td width="14" rowspan="6" valign="top"><img src="http://www.landof.org/images/spacer.gif" width="14" height="1" /></td>
              <td width="16" rowspan="6" valign="top"><img src="http://www.landof.org/images/spacer.gif" width="15" height="1" /></td>
              <td width="150" rowspan="6" valign="top"><table width="150" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td><table width="150" height="3" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                          <td></td>
                        </tr>
                        <tr>
                          <td bgcolor="#FFFFFF"><table width="150" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td><table width="150" height="3" border="0" cellpadding="0" cellspacing="0" bgcolor="#154051">
                                    <tr>
                                      <td></td>
                                    </tr>
                                  </table></td>
                              </tr>
                              <tr>
                                <td><p align="left"><br />
                                    <img src="http://www.landof.org/email/images/blog-bubble.jpg" width="87" height="69" /><br />
                                  </p>
                                  <font style="color:#154051;font-family:Arial;font-size:8pt;font-weight:bold;line-height:10pt;"> THE LATEST FROM THE SMARTING OFF BLOG </font><br />
                                  <br />
                                  <font style="color:#154051;font-family:Arial;font-size:8pt;font-weight:normal;line-height:11pt; "><strong>Recommendations: Who to Check out on Facebook</strong><br />
                                  <br />
                                  The following are a few of our favorites to keep in touch with on Facebook. Like them too for resources, news and more.</font><br />
                                  <br />
                                  <font style="color:#154051;font-family:Arial;font-size:8pt;font-weight:normal;line-height:11pt; "><a href="http://blog.landof.org/2012/09/recommendations-who-to-like-on-facebook.html" target="_blank" style="color:#6CA233">Read more. &raquo;</a> </font> <br/>
                                  <br />
                                <br/></td>
                              </tr>
                            </table></td>
                        </tr>
                      </table></td>
                  </tr>
                  <tr>
                    <td height="3px" bgcolor="#154051" ></td>
                  </tr>
                  <tr>
                    <td><div align="center"> <a href="http://www.landof.org/email/12-12.html"><img src="http://www.landof.org/email/images/last-issue.jpg" alt="Read the last issue" width="150" height="208" border="0" /></a> </div></td>
                  </tr>
                </table>
                <a href="http://blog.landof.org/2011/02/celebrate-life-in-twin-cities-watch.html" target="_blank"></a></td>
              <td width="20" rowspan="6" valign="top"><img src="../images/spacer.gif" width="20" height="1" /></td>
            </tr>
            <td valign="top"><img src="http://www.landof.org/email/images/recommended.jpg" alt="Recommended" width="425" height="75" /><br />
                <table width="421" border="0" cellspacing="0" cellpadding="0">
                </table></td>
            </tr>
            <tr>
              <td valign="top"><p><strong><a href="http://blog.landof.org/2013/05/16-rules-for-growing-smarter-city.html" target="_blank" style="color:#977347;font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:20px">16 Rules for Growing a Smarter City</a></strong>
                <p><font style="font-family: Arial, Helvetica, sans-serif;font-size: 12px;color: #977347;line-height: 16px;">Kaid Benfield&mdash;professor, nonprofit founder and author specializing in the topics of smart growth and sprawl&mdash;discusses the need for moving past simply advocating for smart growth to putting quality plans into action.<br />
                  <br />
                <a href="http://blog.landof.org/2013/05/16-rules-for-growing-smarter-city.html" target="_blank" style="color:#6CA233">Read more.</a></font>           
                <hr noshade="noshade" size="1" />
                <p><strong><a href="http://blog.landof.org/2013/05/northfield-named-as-having-complete.html" target="_blank" style="color:#977347;font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:20px">Northfield Named as Having a &quot;Complete Street Policy&quot;</a></strong></p>
                <p><font style="font-family: Arial, Helvetica, sans-serif;font-size: 12px;color: #977347;line-height: 16px;">There are 488 cities, states and regions with Complete Street policies in the US. In 2012, 130 new policies were passed. Northfield, MN has made the cut.<br />
                  <br />
                  <a href="http://blog.landof.org/2013/05/northfield-named-as-having-complete.html" target="_blank" style="color:#6CA233">Read more. &raquo;</a></font></p>
                <hr noshade="noshade" size="1" />
                <p><strong><a href="http://blog.landof.org/2013/05/walk-score-ranks-most-walk-and-bike.html" target="_blank" style="color:#977347;font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:20px">Walk Score Ranks Most Walk- and Bike-Friendly US Cities</a></strong><br />
                  <br />
                  <font style="font-family: Arial, Helvetica, sans-serif;font-size: 12px;color: #977347;line-height: 16px;">Where do the Twin Cities rank regarding their walking and biking scores? What cities are doing better? How can we improve?<br />
                  <br />
                  <a href="http://blog.landof.org/2013/05/walk-score-ranks-most-walk-and-bike.html" target="_blank" style="color:#6CA233">Read more. &raquo;</a></font></p>
                <hr noshade="noshade" size="1" />
                <p><strong><a href="http://blog.landof.org/2013/05/generation-y-prefers-walkable-downtown.html" target="_blank" style="color:#977347;font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:20px">Generation Y Prefers Walkable Downtown Living&mdash;For Now</a></strong><br />
                </p>
                <table width="425" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="267"><font style="font-family: Arial, Helvetica, sans-serif;font-size: 12px;color: #977347;line-height: 16px;">People in the 18-to-34 age bracket currently prefer to rent in downtown areasover the suburbs and a sprawling yard. But what happens when they decide to raise families in larger homes?<br />
                      <br />
                      <a href="http://blog.landof.org/2013/05/generation-y-prefers-walkable-downtown.html" target="_blank" style="color:#6CA233">Read more. &raquo;</a></font></td>
                    <td width="18"> </td>
                    <td width="140" valign="top"><img src="http://www.landof.org/email/images/7-13-walkabledowntown2.jpg" width="140" height="105" alt="Downtown Mpls" /></td>
                  </tr>
                </table>
                <hr noshade="noshade" size="1" />
                <p><strong><a href="http://blog.landof.org/2013/06/barcelona-fold-out-apartment-is-just.html" target="_blank" style="color:#977347;font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:20px">Barcelona Fold-Out Apartment Is Just 250 Square Feet</a></strong><br /></p>
                <p><font style="font-family: Arial, Helvetica, sans-serif;font-size: 12px;color: #977347;line-height: 16px;">This ingenious tiny studio apartment has everything a larger home does&mdash;a dining room, a kitchen, a bedroom, a lounge and more. How does it all fit into 250 square feet?<br />
                  <br />
                <a href="http://blog.landof.org/2013/06/barcelona-fold-out-apartment-is-just.html" target="_blank" style="color:#6CA233">Read more. &raquo;</a></font></p>
                <p> </p></td>
            </tr>
          </table>
          <div align="center">
            <p align="center"><a href="http://www.landof.org/email/forward/forwardplease.html" target="_blank"><img src="http://www.landof.org/email/images/forward.png" width="200" height="50" border="0" /></a></p>
            <p align="center" class="texta"><a href="http://www.landof.org/privacy.html" target="_blank" style="color:#483225">Privacy Policy</a></p>
            <font style="font-family:arial,helvetica,sans-serif;font-size: 11px;color:#483225;">To ensure you continue to receive this email, please add <a href="mailto:[email protected]" target="_blank" style="color:#483225">[email protected]</a> to your address book.<br />
            Did someone forward this email to you? <a href="http://www.landof.org/contact.aspx" target="_blank" style="color:#483225">Sign up</a> to receive your own notifications from LandOf.org.<br />
            <br />
            <u><a href="mailto: [email protected]" target="_blank" style="color:#483225">Request more information or contact LandOf.org</a></u>.<br />
            <br />
            <a href="http://www.landof.org" target="_blank" style="color:#483225">www.LandOf.org</a> | &copy;2012 LandOf.org<br />
            26 E. Exchange Street, Suite 206, St. Paul, MN 55101</font>
            <p align="center" class="texta">
              <!-- AddThis Button BEGIN -->
              <a href="http://api.addthis.com/oexchange/0.8/forward/facebook/offer?pco=tbxnj-1.0&url=landof.org%2 Femail%2F10-12.html&pubid=xa-4feb7dd23fdf0efa" target="_blank" ><img src="http://cache.addthiscdn.com/icons/v1/thumbs/facebook.gif" border="0" alt="Facebook" /></a> <a href="http://api.addthis.com/oexchange/0.8/forward/twitter/offer?pco=tbxnj-1.0&url=landof.org%2F email%2F10-12.html&pubid=xa-4feb7dd23fdf0efa" target="_blank" ><img src="http://cache.addthiscdn.com/icons/v1/thumbs/twitter.gif" border="0" alt="Twitter" /></a> <a href="http://www.addthis.com/bookmark.php?source=tbxnj-1.0&=250&amp;pubid=xa-4feb7dd23fdf0efa&ur l=landof.org%2Femail%2F10-12.html " target="_blank"  ><img src="http://cache.addthiscdn.com/icons/v1/thumbs/more.gif" border="0" alt="More..." /></a>
              <!-- AddThis Button END -->
            </p>
            <p align="center" class="texta"><a href="http://www.adsoka.com/w2e.html" target="_blank" style="color:#483225">Email by Adsoka</a></p>
          </div></td>
      </tr>
    </table>
    </body>
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-2283394-35']);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    </script>
    </html>
    How it's supposed to show up:
    How it's showing up in Gmail (Incorrectly! All the copy should be within the white box.):
    Screencap from DW:
    So, is it CSS causing this? Are the Tables setup incorrectly? Something not Inline? Not enough info for you? Gmail HATES ME?!
    I'm just not seeing it and need to put the question out there while I continue to search for an anwer. Please respond!
    Thanks!

    Many mail clients reject images, JavaScript and embedded CSS styles.  For best results use plain text near the top to communicate your message and give a link to the actual web page on your server.
    For mail clients that do have limited support for HTML, use uncomplicated tables and inline CSS rules (inside the body tag).  
    All that meta data description is a red flag to spam filters.  You shouldn't be using meta description or keywords in e-mails.
    The article below has some good tips & resources for reliable e-mail templates you could use:
    http://alt-web.com/Articles/HTML-Emails.shtml
    Nancy O.

  • Help needed with creating HTML email in Dreamweaver

    Hi everyone, would really appreciate some help with a dilemma or two that I have.
    I have created the following newsletter in Dreamweaver and uploaded it to our website:
    http://www.nova-design.co.uk/sales/000030.html
    Now, when I go into my email mass mailing client (Handymailer) and send a test out, I encounter a couple of problems.
    Firstly, in Outlook when I receive the email, the grey table on the right of the eshot, is crushed and a lot of the single line text is forced to go over two lines...
    Secondly, in Hotmail, the table displays fine, but it does say that "This message is too wide to fit your screen.  Show full message."
    Once I click "Show full message" it displays in full, but I then need to scroll across to the middle of the browser to view the email.
    If I left align the newsletter will this problem be solved?  Or is there a way in Dreamweaver that I can edit the entire page size so that it's not too wide?
    The table is 600px wide so I assumed that any email sent out would shrink to this size.
    Any help would be greatly appreciated!  This is the first full HTML email I have sent out so it's going to be far from perfect!

    mozza34 wrote:
    I need to look into using inline css styles, I have no idea how to so need to read up on those.
    I created a transparent GIF and placed it, but that moves my text down because the image is in the way?  Am I doing that right?
    Make the transparent gif 1px high.
    Is it the links in the right column that go onto two lines? If so that could be because the links are wider than the actual column itself..so you will have to make column wider.
    If you can't sort it, have  a look at the code below, copy and paste into a new Dreamweaver document and test out. Inline css styling is used in the code below. I've masked your email so no spam bots get hold of it.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    </head>
    <body style="background-color: #CCC;">
    <table width="600" border="0" cellspacing="0" cellpadding="0" style="margin: 0 auto;">
    <tr>
    <td width="412" style="font-family: arial, helvetica, sans-serif; font-size: 12px; padding: 10px 10px; background-color: #fff; vertical-align: top;">
    <table width="392" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td style="text-align: center;"><img src="http://www.nova-design.co.uk/images/novalogo.jpg" alt="Nova Design" width="208" height="155" align="top" /></td>
    </tr>
    </table>
    <p style="font-size: 16px; font-weight: bold;">September 2011 Update</p>
    <p>Welcome to our September 2011 Newsletter!  Keeping you up to date with all things Nova Design.</p>
    <p><strong>New Addition</strong></p>
    <p>We would like to welcome to our team Kieran Duggal.  Kieran joins us from Schneider Electric and will be placed into a newly created recruitment role within the company.</p>
    <p>With the contracting side of our business growing, Kieran will be looking after all things recruitment.</p>
    <p>If you are currently looking for work in the field of engineering design, or if you are looking to take on contract or permanent design engineers, feel free to contact Kieran for a chat about current possibilities.</p>
    <p> Kieran Duggal - Recruitment Executive<br />
          <a href="mailto:[email protected]" style="color: #000;">
          [email protected]</a><br />
        01384 405 977</p>
        <p><strong>Social Media</strong></p>
        <p>Further expanding our Social Media horizons, we have decided to create a group on LinkedIn.  Here we will be listing current vacancies and allowing people from the engineering world to take part in various discussions.  Please make sure to join our group, as we will be looking to develop it over the coming months.</p>
        <p><strong>Revamped Design Team</strong></p>
        <p>We have recently taken on several enthusiastic, highly skilled graduates.  We feel our current team of design engineers is stronger than ever, with a healthy mix of vast experience and youth.  We are constantly searching for the best engineering talent in order to consistently provide our clients with high quality levels of work.</p>
        <p><strong>Summary</strong></p>
        <p>2011 has been a busy, exciting year so far and long may it continue.  Our clients are what make us, and we would like to thank those of you who have placed business with us in the past.</p></td>
    <td width="158" style="font-family: arial, helvetica, sans-serif; font-size: 12px; padding: 0 10px; background-color: #333; vertical-align: top;"><img src="../images/novalogo.jpg" alt="Nova Design" width="168" height="1" align="top" />
    <p style="color: #fff;">
    <strong>Nova Design Ltd</strong><br />
    Watt House<br />
    Innovation Centre<br />
    Pensnett Trading Estate<br />
    Kingswinford<br />
    West Midlands<br />
    DY6 7YD</p>
    <p style="color: #fff;">T: +44 (0)1384 400 044<br />
    F: +44 (0)1384 400 090</p>
    <p style="color: #fff;">W: <a href="http://www.nova-design.co.uk" style="color: #fff;" target="_blank">www.nova-design.co.uk</a><br />
    E: <a href="mailto:[email protected]" style="color: #fff;">[email protected]</a></p>
    <table width="168" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td style="vertical-align: middle; padding: 7px 0; font-size: 12px;"><a href="http://www.facebook.com/novadesignuk" target="_blank"><img src="http://www.nova-design.co.uk/images/facebook.gif" alt="Facebook" width="25" height="25" align="absmiddle" style="border: none;" /></a> <a href="http://www.facebook.com/novadesignuk" style="color:#fff;" target="_blank">Facebook</a></td>
    </tr>
    <tr>
    <td style="vertical-align: middle; padding: 7px 0; font-size: 12px;"><a href="http://twitter.com/novadesignuk" target="_blank"><img src="http://www.nova-design.co.uk/images/twitter.gif" alt="Twitter" width="25" height="25" align="absmiddle" style="border: none;"/></a> <a href="http://twitter.com/novadesignuk" style="color:#fff;" target="_blank">Twitter</a></td>
    </tr>
    <tr>
    <td style="vertical-align: middle; padding: 7px 0; font-size: 12px;"><a href="http://www.linkedin.com/groups?about=&gid=4002529&trk=anet_ug_grppro" target="_blank"><img src="http://www.nova-design.co.uk/images/linkedin.gif" alt="LinkedIn" width="25" height="25" align="absmiddle" style="border: none;"/></a> <a href="http://www.linkedin.com/groups?about=&gid=4002529&trk=anet_ug_grppro" style="color:#fff;" target="_blank">LinkedIn</a></td>
    </tr>
    <tr>
    <td style="vertical-align: middle; padding: 7px 0; font-size: 12px;"><a href="http://www.nova-design.co.uk/blog/?feed=rss2" target="_blank"><img src="http://www.nova-design.co.uk/images/rss.gif" alt="RSS" width="25" height="25" align="absmiddle" style="border: none;" /></a> <a href="http://www.nova-design.co.uk/blog/?feed=rss2" style="color:#fff;" target="_blank">RSS Feeds</a></td>
    </tr>
    </table></td>
    </tr>
    </table>
    </body>
    </html>

  • XML Publisher Email Body Attached Bursting Control File 11i EBS HRMS

    Hi there
    I have a problem with the Brusting , when I received an email through the bursting, I get the Email Body as an Attached File.
    XML Publsiher
    5.6 Build 45
    EBS 11.5.10.2
    <xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi" type="bursting">
    <xapi:request select="/XXPER/LIST_G_COMPANY_CODE">
    <xapi:delivery>
    <xapi:email id= "XXPER" server="is050.atco.com" port="25" from="${FROM_EMAIL_ADDRESS}" reply-to ="${FROM_EMAIL_ADDRESS}">
    <xapi:message id="XXPER" to="${TO_EMAIL_ADDRESS}" attachment="true" subject="XXPER Employees List Company: ${COMPANY_CODE}">
    Status: Normal, Successful Completion.
    Regards
    </xapi:message>
    </xapi:email>
    </xapi:delivery>
    <xapi:document output="XXPEREmployees List" output-type="pdf" delivery="XXPER">
    <xapi:template type="xsl-fo" location= "xdo://XX.XXPER.en.00/?getSource = true">
    </xapi:template>
    </xapi:document>
    </xapi:request>
    </xapi:requestset>
    Regards
    ASIM

    I HAVE ADDED THE FOLLOWING statement BEFORE subject, and it resolved the issue.
    content-type="text/html"
    For Example:
    <xapi:message id="XXPER" to="${TO_EMAIL_ADDRESS}" attachment="true" content-type="text/html" subject="Employees List Company: ${COMPANY_CODE}">
    Regards
    ASIM

  • Background Job result output should be displayed in Email body

    Hi Friends,
    One of our user is scheduling background job, He need the output to his external Email ID.
    user required that Job result output should be displayed in Email body, Not in attachment.
    We have tried but job result received in email as HTML (or) PDF file attachment, But he wants output  in Email body itself.
    Please help.
    Regards,
    Karthickbabu G.G

    Hi,
    Displaying report output in email body is not available as a standard feature. Also doing a custom development would be very cumbersome .
    Regards,
    Deepak Kori

Maybe you are looking for

  • Need advice on External Hard Drive

    I have an old iMac (6+ years old) with 500GB which is essentially full and an old Time Capsule (5+ years old) with 1TB. (I also have 2 MBPs but I don't back these up). Now I am finally ready to do a "technology refresh" and am looking at the newest i

  • Searching external hard drive attached to Time Capsule

    I have a 1 TB Time Capsule which I use for backing up my 2011 MacBook Pro and for providing my WiFi. I also have a 1 TB external hard drive plugged into my Time Capsule which I can access via WiFi. I can go to Finder on my laptop and browse the folde

  • Passing parameters from a Java class to Jsp page

    Hi everybody. I'm newbie in using Java class in conjunction with JSP pages. Infact I have a problem. How can I pass the parameters used in a Java class (as UserName, Password, and so on..) to a JSP page? What methods (and classes) I have to use? Than

  • Cpu amd athlon II 450 x3

    pls can someone help me i hawe amd athlon II 450 x3 on motherboard NF520T-c35 and i dont hawe 3-rd core the procesor is new the old one vas 2core amd bios 1.0 i instaled bios 1.5 and i stil hawe 2 core on amd x3 also i try 1.7 bios and still nothing

  • IPod Touch 4g  not detected by itunes half the time

    Since this is my first post I will start by saying greetings to all! I've been having issues with my ipod and I was hoping someone could shed some light on the issue. A week after I got my iPod Touch this issue came up and it's beginning to get on my