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] .
Similar Messages
-
How to maintain format in html email using the send email....
Does anyone know how to maintain the format in a HTML email using the Send E-mail To Recipients From Recordset behavior?
When text only is selected instead of HTML text on the Options tab the format of the input is maintained, but when HTML text is selected the email has no format. I have tried to use a replace \n with
as I have done when hand coding PHP, BUT I am trying to learn to use ADDT. I also tried to use a Custom trigger without success.
Help!Hi Dave,
in my snippets folder I have this thing which I found on the old MX Kollection forums and which was suggested by the Interakt staff:
//trigger SendEmail (write content)
function Trigger_SendEmail(&$tNG) {
ob_start();
include("myDynamicContentFile.php");
$mailcontent = ob_get_contents();
ob_end_clean();
$emailObj = new tNG_Email($tNG);
$emailObj->setTo("[email protected]");
$emailObj->setFrom("[email protected]");
$emailObj->setSubject("A new User was added");
$emailObj->setContent($mailcontent);
$emailObj->setEncoding("UTF-8");
$emailObj->setFormat("text");
$emailObj->setImportance("Low");
return $emailObj->Execute();
//trigger SendEmail (write content)
The only modification is the possibility to include a dynamic PHP file rather than some static text or a HTML file which will also render textarea contents on one line:
ob_start();
include("myDynamicContentFile.php");
$mailcontent = ob_get_contents();
ob_end_clean();
That said, it should be possible to define all the "rendering" options in the external PHP file, what would mean to apply the nl2br function there, e.g.: nl2br($row_queryname['columnname'])
What I´m not sue about is, if you will have to strip the external file´s head and body tags before it´s getting included -- however, please give this a try and tell us how it worked.
Cheers,
Günter Schenk
Adobe Community Expert, Dreamweaver -
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
FrancoisOK - 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 -
Formating string inside email body
Hi All
How can I format the text that it will be placed in lines at the same level regardless of their length
I have several lines with several length ,that will be sent per mail.
for example
cost per shirt 100
cost per trousers 200
Total 300
I have tried with several string functions but the without luck.
Thanks.
Edited by: Malu Mader on Dec 6, 2011 10:14 AMHi Soumyaprakash
This could be the solution , but when I am sending the mail I have already my text in a string table
I am looping into it and appending the string I have in the table into the mail body
so I did in this way but the whole string is comming out including the <td> and so on
lt_mailtxt = '<table border="0">' .
APPEND lt_mailtxt.
CLEAR lt_mailtxt.
LOOP AT it_string.
lt_mailtxt = '<tr>'.
APPEND lt_mailtxt.
clear lt_mailtxt .
lt_mailtxt = '<td>' .
APPEND lt_mailtxt.
CLEAR lt_mailtxt.
lt_mailtxt = it_string.
APPEND lt_mailtxt.
CLEAR lt_mailtxt.
lt_mailtxt = '</td>' .
APPEND lt_mailtxt.
lt_mailtxt = '</tr>' .
APPEND lt_mailtxt.
ENDLOOP.
lt_mailtxt = '</table>' .
APPEND lt_mailtxt.
CLEAR lt_mailtxt.
What am I missing... ?
BR -
Format of email body in bursting control file
Hi,
I am hoping this is a simple question for someone that is not as new as I am to bursting...
What is the new line character I should be using to format the outgoing email body within the bursting control file.
At present, the entire email body appears as one paragraph regardless of whether I have included new lines or not. I am no doubt missing something simple given that it is 5.20pm on a Friday.
Any help is appreciated.
Kind regards,
WesVersion 11.5.10.2
XML/BI Publisher Version : 5.6.3
i have put the log file here for your reference
XML/BI Publisher Version : 5.6.3
Request ID: 1691733
All Parameters: ReportRequestID=1691732:DebugFlag=Y
Report Req ID: 1691732
Debug Flag: Y
Updating request description
Updated description
Retrieving XML request information
Node Name:COLFARMT
Preparing parameters
null output =/u3010/app/oracle/UAT/common/admin/out/UAT1_colfarmt/o1691733.out
inputfilename =/u3010/app/oracle/UAT/common/admin/out/UAT1_colfarmt/o1691732.out
Data XML File:/u3010/app/oracle/UAT/common/admin/out/UAT1_colfarmt/o1691732.out
Set Bursting parameters..
Temp. Directory:/u0350/app/apps/UAT/xx/1.0/log
[033108_044049404][][STATEMENT] Oracle XML Parser version ::: Oracle XDK Java 9.0.4.0.0 Production
Start bursting process..
[033108_044049410][][STATEMENT] /u0350/app/apps/UAT/xx/1.0/log
[033108_044049474][][STATEMENT] BurstingProcessor ::: Property Key ---> burstng-source
[033108_044049475][][STATEMENT] Inside burstingConfigParser
[033108_044049482][oracle.apps.xdo.batch.BurstingProcessorEngine][STATEMENT] ========================> startElement() ::: startDocument is entered <========================
[033108_044049688][oracle.apps.xdo.batch.BurstingProcessorEngine][STATEMENT] ========================> startElement() ::: startDocument is entered <========================
[033108_044050177][][STATEMENT] template File/u0350/app/apps/UAT/xx/1.0/data/PurchaseOrder.rtf
[033108_044050245][][STATEMENT] Logger.init(): *** DEBUG MODE IS OFF. ***
[033108_044050731][][STATEMENT] [ PDF GENERATOR ]---------------------------------------------
[033108_044050732][][STATEMENT] XDO version = Oracle XML Publisher 5.6.3
[033108_044050732][][STATEMENT] java.home = /usr/j2sdk1.4.2_08/jre
[033108_044050732][][STATEMENT] XDO_TOP = null
[033108_044050732][][STATEMENT] Config Path = null
[033108_044050732][][STATEMENT] Debug Cfg Path= null
[033108_044050733][][STATEMENT] Font dir = /usr/j2sdk1.4.2_08/jre/lib/fonts/
[033108_044050733][][STATEMENT] Locale = en
[033108_044050733][][STATEMENT] Fallback font = type1.Helvetica
[033108_044050733][][STATEMENT] [ PDF GENERATOR PROPERTIES ]----------------------------------
[033108_044050736][][STATEMENT] digit-substitution=null(not set)
[033108_044050736][][STATEMENT] font.ALBANY WT J.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ALBANWTJ.ttf
[033108_044050736][][STATEMENT] font.ALBANY WT K.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ALBANWTK.ttf
[033108_044050737][][STATEMENT] font.ALBANY WT SC.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ALBANWTS.ttf
[033108_044050737][][STATEMENT] font.ALBANY WT TC.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ALBANWTT.ttf
[033108_044050737][][STATEMENT] font.ALBANY WT.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ALBANYWT.ttf
[033108_044050737][][STATEMENT] font.ANDALE DUOSPACE WT J.normal.bold=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUOJB.ttf
[033108_044050737][][STATEMENT] font.ANDALE DUOSPACE WT J.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUOJ.ttf
[033108_044050738][][STATEMENT] font.ANDALE DUOSPACE WT K.normal.bold=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUOKB.ttf
[033108_044050738][][STATEMENT] font.ANDALE DUOSPACE WT K.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUOK.ttf
[033108_044050738][][STATEMENT] font.ANDALE DUOSPACE WT SC.normal.bold=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUOSCB.ttf
[033108_044050738][][STATEMENT] font.ANDALE DUOSPACE WT SC.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUOSC.ttf
[033108_044050739][][STATEMENT] font.ANDALE DUOSPACE WT TC.normal.bold=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUOTCB.ttf
[033108_044050739][][STATEMENT] font.ANDALE DUOSPACE WT TC.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUOTC.ttf
[033108_044050739][][STATEMENT] font.ANDALE DUOSPACE WT.normal.bold=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUOB.ttf
[033108_044050739][][STATEMENT] font.ANDALE DUOSPACE WT.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUO.ttf
[033108_044050739][][STATEMENT] font.CG TIMES.italic.bold=type1.Times-BoldItalic
[033108_044050739][][STATEMENT] font.CG TIMES.italic.normal=type1.Times-Italic
[033108_044050740][][STATEMENT] font.CG TIMES.normal.bold=type1.Times-Bold
[033108_044050741][][STATEMENT] font.CG TIMES.normal.normal=type1.Times-Roman
[033108_044050741][][STATEMENT] font.COURIER NEW.italic.bold=type1.Courier-BoldOblique
[033108_044050741][][STATEMENT] font.COURIER NEW.italic.normal=type1.Courier-Oblique
[033108_044050741][][STATEMENT] font.COURIER NEW.normal.bold=type1.Courier-Bold
[033108_044050741][][STATEMENT] font.COURIER NEW.normal.normal=type1.Courier
[033108_044050742][][STATEMENT] font.COURIER.italic.bold=type1.Courier-BoldOblique
[033108_044050742][][STATEMENT] font.COURIER.italic.normal=type1.Courier-Oblique
[033108_044050742][][STATEMENT] font.COURIER.normal.bold=type1.Courier-Bold
[033108_044050742][][STATEMENT] font.COURIER.normal.normal=type1.Courier
[033108_044050742][][STATEMENT] font.DEFAULT.italic.bold=type1.Helvetica-BoldOblique
[033108_044050742][][STATEMENT] font.DEFAULT.italic.normal=type1.Helvetica-Oblique
[033108_044050743][][STATEMENT] font.DEFAULT.normal.bold=type1.Helvetica-Bold
[033108_044050743][][STATEMENT] font.DEFAULT.normal.normal=type1.Helvetica
[033108_044050743][][STATEMENT] font.HELVETICA.italic.bold=type1.Helvetica-BoldOblique
[033108_044050743][][STATEMENT] font.HELVETICA.italic.normal=type1.Helvetica-Oblique
[033108_044050743][][STATEMENT] font.HELVETICA.normal.bold=type1.Helvetica-Bold
[033108_044050743][][STATEMENT] font.HELVETICA.normal.normal=type1.Helvetica
[033108_044050743][][STATEMENT] font.MONOSPACE.italic.bold=type1.Courier-BoldOblique
[033108_044050744][][STATEMENT] font.MONOSPACE.italic.normal=type1.Courier-Oblique
[033108_044050744][][STATEMENT] font.MONOSPACE.normal.bold=type1.Courier-Bold
[033108_044050744][][STATEMENT] font.MONOSPACE.normal.normal=type1.Courier
[033108_044050744][][STATEMENT] font.SANS-SERIF.italic.bold=type1.Helvetica-BoldOblique
[033108_044050744][][STATEMENT] font.SANS-SERIF.italic.normal=type1.Helvetica-Oblique
[033108_044050744][][STATEMENT] font.SANS-SERIF.normal.bold=type1.Helvetica-Bold
[033108_044050745][][STATEMENT] font.SANS-SERIF.normal.normal=type1.Helvetica
[033108_044050745][][STATEMENT] font.SERIF.italic.bold=type1.Times-BoldItalic
[033108_044050745][][STATEMENT] font.SERIF.italic.normal=type1.Times-Italic
[033108_044050745][][STATEMENT] font.SERIF.normal.bold=type1.Times-Bold
[033108_044050745][][STATEMENT] font.SERIF.normal.normal=type1.Times-Roman
[033108_044050745][][STATEMENT] font.SYMBOL.normal.normal=type1.Symbol
[033108_044050746][][STATEMENT] font.TIMES NEW ROMAN.italic.bold=type1.Times-BoldItalic
[033108_044050746][][STATEMENT] font.TIMES NEW ROMAN.italic.normal=type1.Times-Italic
[033108_044050746][][STATEMENT] font.TIMES NEW ROMAN.normal.bold=type1.Times-Bold
[033108_044050746][][STATEMENT] font.TIMES NEW ROMAN.normal.normal=type1.Times-Roman
[033108_044050746][][STATEMENT] font.TIMES.italic.bold=type1.Times-BoldItalic
[033108_044050746][][STATEMENT] font.TIMES.italic.normal=type1.Times-Italic
[033108_044050747][][STATEMENT] font.TIMES.normal.bold=type1.Times-Bold
[033108_044050747][][STATEMENT] font.TIMES.normal.normal=type1.Times-Roman
[033108_044050747][][STATEMENT] font.ZAPFDINGBATS.normal.normal=type1.ZapfDingbats
[033108_044050747][][STATEMENT] pdf-changes-allowed=0
[033108_044050749][][STATEMENT] pdf-compression=true
[033108_044050749][][STATEMENT] pdf-enable-accessibility=true
[033108_044050749][][STATEMENT] pdf-enable-copying=false
[033108_044050749][][STATEMENT] pdf-encryption-level=0
[033108_044050749][][STATEMENT] pdf-font-embedding=true
[033108_044050749][][STATEMENT] pdf-hide-menubar=false
[033108_044050750][][STATEMENT] pdf-hide-toolbar=false
[033108_044050750][][STATEMENT] pdf-no-accff=false
[033108_044050750][][STATEMENT] pdf-no-cceda=false
[033108_044050750][][STATEMENT] pdf-no-changing-the-document=true
[033108_044050750][][STATEMENT] pdf-no-printing=false
[033108_044050750][][STATEMENT] pdf-open-password=
[033108_044050751][][STATEMENT] pdf-permissions=0
[033108_044050751][][STATEMENT] pdf-permissions-password=
[033108_044050751][][STATEMENT] pdf-printing-allowed=0
[033108_044050751][][STATEMENT] pdf-replace-smartquotes=true
[033108_044050751][][STATEMENT] pdf-security=false
[033108_044050751][][STATEMENT] ------------------------------------------------------
[033108_044051077][oracle.apps.xdo.common.font.FontFactory$FontDef][STATEMENT] Type1 font created: Helvetica
[033108_044051091][oracle.apps.xdo.common.font.FontFactory$FontDef][STATEMENT] Type1 font created: Times-Roman
[033108_044051237][][STATEMENT] WARNING: Old RTF version detected, nested table disabled
[033108_044052301][][STATEMENT] WARNING: Old RTF version detected, nested table disabled
[033108_044052383][oracle.apps.xdo.template.rtf.RTF2XSLParser][STATEMENT] Time spent: 1665
[033108_044052394][oracle.apps.xdo.common.font.FontFactory][STATEMENT] type1.Helvetica closed.
[033108_044052394][oracle.apps.xdo.common.font.FontFactory][STATEMENT] type1.Times-Roman closed.
[033108_044052649][][STATEMENT] Logger.init(): *** DEBUG MODE IS OFF. ***
[033108_044052649][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor constructor is called.
[033108_044052901][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor has been initialized without default config.
[033108_044052901][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor.setTemplate(String) is called with '/u0350/app/apps/UAT/xx/1.0/log/033108_044049420/xdo2.tmp'.
[033108_044052916][][STATEMENT] Logger.init(): *** DEBUG MODE IS OFF. ***
[033108_044052916][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor.setData(String) is called with '/u0350/app/apps/UAT/xx/1.0/log/033108_044049420/xdo0.tmp'.
[033108_044052920][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor.setOutput(String)is called with '/u0350/app/apps/UAT/xx/1.0/log/033108_044049420/PurchaseOrder 6023571.pdf'.
[033108_044052948][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor.setOutputFormat(byte)is called with ID=1.
[033108_044052950][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor.generate() called.
[033108_044052950][oracle.apps.xdo.template.FOProcessor][STATEMENT] createFO(Object, Object) is called.
[033108_044053858][oracle.apps.xdo.common.xml.XSLT10gR1][STATEMENT] oracle.xdo Developers Kit 10.1.0.3.0 - Production
[033108_044053859][oracle.apps.xdo.common.xml.XSLT10gR1][STATEMENT] Scalable Feature Disabled
[033108_044055032][oracle.apps.xdo.template.fo.FOProcessingEngine][STATEMENT] Using proxy for PDF Generator
[033108_044055064][oracle.apps.xdo.template.FOProcessor][STATEMENT] Calling FOProcessingEngine.process()
[033108_044055065][][STATEMENT] Using optimized xslt
[033108_044055100][oracle.apps.xdo.template.fo.datatype.AttrKey][STATEMENT] WARNING: Found undetermined AttrKey: xmlns:xlink
[033108_044055108][][STATEMENT] [ PDF GENERATOR ]---------------------------------------------
[033108_044055108][][STATEMENT] XDO version = Oracle XML Publisher 5.6.3
[033108_044055108][][STATEMENT] java.home = /usr/j2sdk1.4.2_08/jre
[033108_044055109][][STATEMENT] XDO_TOP = null
[033108_044055112][][STATEMENT] Config Path = null
[033108_044055112][][STATEMENT] Debug Cfg Path= null
[033108_044055112][][STATEMENT] Font dir = /usr/j2sdk1.4.2_08/jre/lib/fonts/
[033108_044055112][][STATEMENT] Locale = en
[033108_044055112][][STATEMENT] Fallback font = type1.Helvetica
[033108_044055112][][STATEMENT] [ PDF GENERATOR PROPERTIES ]----------------------------------
[033108_044055115][][STATEMENT] digit-substitution=null(not set)
[033108_044055115][][STATEMENT] font.ALBANY WT J.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ALBANWTJ.ttf
[033108_044055116][][STATEMENT] font.ALBANY WT K.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ALBANWTK.ttf
[033108_044055116][][STATEMENT] font.ALBANY WT SC.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ALBANWTS.ttf
[033108_044055116][][STATEMENT] font.ALBANY WT TC.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ALBANWTT.ttf
[033108_044055116][][STATEMENT] font.ALBANY WT.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ALBANYWT.ttf
[033108_044055116][][STATEMENT] font.ANDALE DUOSPACE WT J.normal.bold=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUOJB.ttf
[033108_044055116][][STATEMENT] font.ANDALE DUOSPACE WT J.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUOJ.ttf
[033108_044055116][][STATEMENT] font.ANDALE DUOSPACE WT K.normal.bold=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUOKB.ttf
[033108_044055130][][STATEMENT] font.ANDALE DUOSPACE WT K.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUOK.ttf
[033108_044055130][][STATEMENT] font.ANDALE DUOSPACE WT SC.normal.bold=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUOSCB.ttf
[033108_044055131][][STATEMENT] font.ANDALE DUOSPACE WT SC.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUOSC.ttf
[033108_044055137][][STATEMENT] font.ANDALE DUOSPACE WT TC.normal.bold=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUOTCB.ttf
[033108_044055137][][STATEMENT] font.ANDALE DUOSPACE WT TC.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUOTC.ttf
[033108_044055137][][STATEMENT] font.ANDALE DUOSPACE WT.normal.bold=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUOB.ttf
[033108_044055138][][STATEMENT] font.ANDALE DUOSPACE WT.normal.normal=truetype./usr/j2sdk1.4.2_08/jre/lib/fonts/ADUO.ttf
[033108_044055138][][STATEMENT] font.CG TIMES.italic.bold=type1.Times-BoldItalic
[033108_044055138][][STATEMENT] font.CG TIMES.italic.normal=type1.Times-Italic
[033108_044055138][][STATEMENT] font.CG TIMES.normal.bold=type1.Times-Bold
[033108_044055138][][STATEMENT] font.CG TIMES.normal.normal=type1.Times-Roman
[033108_044055138][][STATEMENT] font.COURIER NEW.italic.bold=type1.Courier-BoldOblique
[033108_044055138][][STATEMENT] font.COURIER NEW.italic.normal=type1.Courier-Oblique
[033108_044055138][][STATEMENT] font.COURIER NEW.normal.bold=type1.Courier-Bold
[033108_044055138][][STATEMENT] font.COURIER NEW.normal.normal=type1.Courier
[033108_044055139][][STATEMENT] font.COURIER.italic.bold=type1.Courier-BoldOblique
[033108_044055139][][STATEMENT] font.COURIER.italic.normal=type1.Courier-Oblique
[033108_044055139][][STATEMENT] font.COURIER.normal.bold=type1.Courier-Bold
[033108_044055139][][STATEMENT] font.COURIER.normal.normal=type1.Courier
[033108_044055139][][STATEMENT] font.DEFAULT.italic.bold=type1.Helvetica-BoldOblique
[033108_044055139][][STATEMENT] font.DEFAULT.italic.normal=type1.Helvetica-Oblique
[033108_044055139][][STATEMENT] font.DEFAULT.normal.bold=type1.Helvetica-Bold
[033108_044055139][][STATEMENT] font.DEFAULT.normal.normal=type1.Helvetica
[033108_044055139][][STATEMENT] font.HELVETICA.italic.bold=type1.Helvetica-BoldOblique
[033108_044055140][][STATEMENT] font.HELVETICA.italic.normal=type1.Helvetica-Oblique
[033108_044055140][][STATEMENT] font.HELVETICA.normal.bold=type1.Helvetica-Bold
[033108_044055140][][STATEMENT] font.HELVETICA.normal.normal=type1.Helvetica
[033108_044055140][][STATEMENT] font.MONOSPACE.italic.bold=type1.Courier-BoldOblique
[033108_044055140][][STATEMENT] font.MONOSPACE.italic.normal=type1.Courier-Oblique
[033108_044055140][][STATEMENT] font.MONOSPACE.normal.bold=type1.Courier-Bold
[033108_044055140][][STATEMENT] font.MONOSPACE.normal.normal=type1.Courier
[033108_044055140][][STATEMENT] font.SANS-SERIF.italic.bold=type1.Helvetica-BoldOblique
[033108_044055140][][STATEMENT] font.SANS-SERIF.italic.normal=type1.Helvetica-Oblique
[033108_044055141][][STATEMENT] font.SANS-SERIF.normal.bold=type1.Helvetica-Bold
[033108_044055141][][STATEMENT] font.SANS-SERIF.normal.normal=type1.Helvetica
[033108_044055141][][STATEMENT] font.SERIF.italic.bold=type1.Times-BoldItalic
[033108_044055141][][STATEMENT] font.SERIF.italic.normal=type1.Times-Italic
[033108_044055141][][STATEMENT] font.SERIF.normal.bold=type1.Times-Bold
[033108_044055141][][STATEMENT] font.SERIF.normal.normal=type1.Times-Roman
[033108_044055141][][STATEMENT] font.SYMBOL.normal.normal=type1.Symbol
[033108_044055141][][STATEMENT] font.TIMES NEW ROMAN.italic.bold=type1.Times-BoldItalic
[033108_044055141][][STATEMENT] font.TIMES NEW ROMAN.italic.normal=type1.Times-Italic
[033108_044055142][][STATEMENT] font.TIMES NEW ROMAN.normal.bold=type1.Times-Bold
[033108_044055142][][STATEMENT] font.TIMES NEW ROMAN.normal.normal=type1.Times-Roman
[033108_044055142][][STATEMENT] font.TIMES.italic.bold=type1.Times-BoldItalic
[033108_044055142][][STATEMENT] font.TIMES.italic.normal=type1.Times-Italic
[033108_044055142][][STATEMENT] font.TIMES.normal.bold=type1.Times-Bold
[033108_044055142][][STATEMENT] font.TIMES.normal.normal=type1.Times-Roman
[033108_044055142][][STATEMENT] font.ZAPFDINGBATS.normal.normal=type1.ZapfDingbats
[033108_044055142][][STATEMENT] pdf-changes-allowed=0
[033108_044055142][][STATEMENT] pdf-compression=true
[033108_044055143][][STATEMENT] pdf-enable-accessibility=true
[033108_044055143][][STATEMENT] pdf-enable-copying=false
[033108_044055143][][STATEMENT] pdf-encryption-level=0
[033108_044055143][][STATEMENT] pdf-font-embedding=true
[033108_044055143][][STATEMENT] pdf-hide-menubar=false
[033108_044055143][][STATEMENT] pdf-hide-toolbar=false
[033108_044055143][][STATEMENT] pdf-no-accff=false
[033108_044055143][][STATEMENT] pdf-no-cceda=false
[033108_044055143][][STATEMENT] pdf-no-changing-the-document=true
[033108_044055144][][STATEMENT] pdf-no-printing=false
[033108_044055145][][STATEMENT] pdf-open-password=
[033108_044055145][][STATEMENT] pdf-permissions=0
[033108_044055145][][STATEMENT] pdf-permissions-password=
[033108_044055145][][STATEMENT] pdf-printing-allowed=0
[033108_044055145][][STATEMENT] pdf-replace-smartquotes=true
[033108_044055145][][STATEMENT] pdf-security=false
[033108_044055145][][STATEMENT] ------------------------------------------------------
[033108_044055220][][STATEMENT] Rendering page [1]
[033108_044055238][oracle.apps.xdo.common.font.FontFactory$FontDef][STATEMENT] Type1 font created: Helvetica
[033108_044055238][oracle.apps.xdo.common.font.FontFactory$FontDef][STATEMENT] Type1 font created: Times-Roman
[033108_044055246][][STATEMENT] Phase2 time used: 83ms
[033108_044055531][][STATEMENT] Continue rendering page [1]
[033108_044055585][oracle.apps.xdo.common.font.FontFactory$FontDef][STATEMENT] Type1 font created: Helvetica-Bold
[033108_044055799][][STATEMENT] Generating page [1]
[033108_044055843][][STATEMENT] Rendering page [2]
[033108_044056064][][STATEMENT] Generating page [2]
[033108_044056096][][STATEMENT] Rendering page [3]
[033108_044056271][][STATEMENT] Generating page [3]
[033108_044056303][][STATEMENT] Rendering page [4]
[033108_044056407][][STATEMENT] Phase2 time used: 876ms
[033108_044056443][][STATEMENT] Continue rendering page [4]
[033108_044056483][][STATEMENT] Generating page [4]
[033108_044056512][][STATEMENT] Rendering page [5]
[033108_044056613][][STATEMENT] Generating page [5]
[033108_044056635][][STATEMENT] Rendering page [6]
[033108_044056653][][STATEMENT] Phase2 time used: 210ms
[033108_044056654][][STATEMENT] Continue rendering page [6]
[033108_044056654][][STATEMENT] Phase2 time used: 1ms
[033108_044056654][][STATEMENT] Continue rendering page [6]
[033108_044056656][][STATEMENT] Phase2 time used: 2ms
[033108_044056666][][STATEMENT] Continue rendering page [6]
[033108_044056676][][STATEMENT] Generating page [6]
[033108_044056681][][STATEMENT] Rendering page [7]
[033108_044056731][][STATEMENT] Phase2 time used: 65ms
[033108_044056731][][STATEMENT] Continue rendering page [7]
[033108_044056731][][STATEMENT] Phase2 time used: 0ms
[033108_044056732][][STATEMENT] Continue rendering page [7]
[033108_044056732][][STATEMENT] Phase2 time used: 0ms
[033108_044056733][][STATEMENT] Continue rendering page [7]
[033108_044056733][][STATEMENT] Generating page [7]
[033108_044056735][][STATEMENT] Phase2 time used: 3ms
[033108_044056736][][STATEMENT] Total time used: 1668ms for processing XSL-FO
[033108_044057034][][STATEMENT] ProxyGenerator creating new page: 1
[033108_044057111][][STATEMENT] ProxyGenerator creating new page: 2
[033108_044057189][][STATEMENT] ProxyGenerator creating new page: 3
[033108_044057242][][STATEMENT] ProxyGenerator creating new page: 4
[033108_044057301][][STATEMENT] ProxyGenerator creating new page: 5
[033108_044057331][][STATEMENT] ProxyGenerator creating new page: 6
[033108_044057343][][STATEMENT] ProxyGenerator creating new page: 7
[033108_044057382][][STATEMENT] Starting Generator.close()
[033108_044057388][oracle.apps.xdo.common.font.FontFactory][STATEMENT] type1.Helvetica closed.
[033108_044057388][oracle.apps.xdo.common.font.FontFactory][STATEMENT] type1.Helvetica-Bold closed.
[033108_044057388][oracle.apps.xdo.common.font.FontFactory][STATEMENT] type1.Times-Roman closed.
[033108_044057389][][STATEMENT] Generator.close() took: 6ms
[033108_044057389][][STATEMENT] Total time to process commands from ProxyGenerator tmp file: 643ms
[033108_044057389][oracle.apps.xdo.template.FOProcessor][STATEMENT] clearInputs(Object) is called.
[033108_044057412][oracle.apps.xdo.template.FOProcessor][STATEMENT] clearInputs(Object) done. All inputs are cleared.
[033108_044057477][][STATEMENT] initConfig(): config file used :null
[033108_044057478][][STATEMENT] initCustomFactories(): loading custom delivery channels :{}
[033108_044057478][oracle.apps.xdo.delivery.DeliveryManager][STATEMENT] initConfig(): loading default properties :{}
[033108_044057479][oracle.apps.xdo.delivery.DeliveryManager][STATEMENT] createRequest(): called with request type :smtp_email
[033108_044057522][oracle.apps.xdo.delivery.DeliveryManager][STATEMENT] createRequest(): exiting
[033108_044057577][oracle.apps.xdo.delivery.smtp.Attachment][STATEMENT] addAttachment(): Adding an attachment ...[filename]=[PurchaseOrder 6023571.pdf], [content-type]=[application/pdf], [index]=[-1], [disposition]=[inline]
[033108_044057585][oracle.apps.xdo.delivery.smtp.Attachment][STATEMENT] addAttachment(): Character set for MIME headers : UTF-8
[033108_044057586][oracle.apps.xdo.delivery.smtp.Attachment][STATEMENT] addAttachment(): Character encoding for MIME headers : B
[033108_044057588][oracle.apps.xdo.delivery.smtp.Attachment][STATEMENT] addAttachment(): Exiting addAttachment()
[033108_044057589][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequest][STATEMENT] submit(): Called
[033108_044057589][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequest][STATEMENT] setDefaultServerProperties(): No default server found for this request type: smtp_email
[033108_044057589][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequest][STATEMENT] setDefaultServerProperties(): properties defined in this request.
[TEMP_DIR:String] [u0350/app/apps/UAT/xx/1.0/log/033108_044049420]
[ASYNC_CHECK_INTERVAL:Integer] [60000]
[HOST:String] [colfarmt.hpa.org.uk]
[SMTP_TO_RECIPIENTS:String] [[email protected]]
[SMTP_ENCODING:String]
[SMTP_CONTENT_FILENAME:String] [messageBody.txt]
[SMTP_CONTENT_TYPE:String] [text/html;charset=UTF-8]
[SMTP_SUBJECT:String] [Purchase Order No: 6023571]
[BUFFERING_MODE:Boolean] [true]
[SMTP_CC_RECIPIENTS:String] [[email protected]]
[SMTP_FROM:String] [[email protected]]
[TEMP_FILE_PREFIX:String] [dlvr]
[PORT:Integer] [(java.lang.Integer]
[RETRY:Integer] [0]
[SMTP_ATTACHMENT:Attachment] [(oracle.apps.xdo.delivery.smtp.Attachment]
[RETRY_INTERVAL:Integer] [60000]
[TEMP_FILE_SUFFIX:String] [.tmp]
[SMTP_ATTACHMENT_FIRST:Boolean] [(java.lang.Boolean]
[SMTP_CHARSET:String] [UTF-8]
[ASYNC_TIMEOUT:Integer] [86400000]
[033108_044057590][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequest][STATEMENT] submit(): BUFFERING_MODE is ON.
[033108_044057590][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequest][STATEMENT] submit(): TEMP_DIR found, start document buffering : /u0350/app/apps/UAT/xx/1.0/log/033108_044049420
[033108_044057590][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequest][STATEMENT] backupDocument(): Starting document buffering.
[033108_044057602][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequest][STATEMENT] backupDocument(): Creating temporary file for buffering : /u0350/app/apps/UAT/xx/1.0/log/033108_044049420/dlvrbrfaxe1m4B55646.tmp
[033108_044057603][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequest][STATEMENT] backupDocument(): 63 bytes have been written to the temporary file.
[033108_044057603][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequest][STATEMENT] filterDocument(): Starting document preprocessing.
[033108_044057603][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequest][STATEMENT] filterDocument(): No native command found for preprocessing, exiting.
[033108_044057603][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequest][STATEMENT] backupDocument(): Finished document buffering.
[033108_044057603][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequest][STATEMENT] submit(): Start reading the buffered document file. : /u0350/app/apps/UAT/xx/1.0/log/033108_044049420/dlvrbrfaxe1m4B55646.tmp
[033108_044057603][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequest][STATEMENT] submit(): Calling DeliveryRequestHandler.submitRequest()
[033108_044057604][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequestHandler][STATEMENT] submitRequest(): called
[033108_044057604][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequestHandler][STATEMENT] submitRequest(): This request has never been submitted before.
[033108_044057607][oracle.apps.xdo.delivery.smtp.Attachment][STATEMENT] Start parsing HTML file...(filename:messageBody.txt)(current dir:null)
[033108_044057607][oracle.apps.xdo.delivery.smtp.Attachment][STATEMENT] Reached the end of InputStream.
[033108_044057608][oracle.apps.xdo.delivery.smtp.Attachment][STATEMENT] addAttachment(): Adding an attachment ...[filename]=[messageBody.txt], [content-type]=[text/html;charset=UTF-8], [index]=[-1], [disposition]=[null]
[033108_044057608][oracle.apps.xdo.delivery.smtp.Attachment][STATEMENT] addAttachment(): Character set for MIME headers : UTF-8
[033108_044057608][oracle.apps.xdo.delivery.smtp.Attachment][STATEMENT] addAttachment(): Character encoding for MIME headers : B
[033108_044057608][oracle.apps.xdo.delivery.smtp.Attachment][STATEMENT] addAttachment(): Exiting addAttachment()
[033108_044057609][oracle.apps.xdo.delivery.smtp.Attachment][STATEMENT]
Dear Sir/Madam,
Please review the attached PO 6023571
[033108_044057666][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequestHandler][STATEMENT] submitRequest(): Character set for MIME headers : UTF-8
[033108_044057666][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequestHandler][STATEMENT] submitRequest(): Character encoding for MIME headers : B
[033108_044058067][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequestHandler][STATEMENT] submitRequest(): exiting
[033108_044058067][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequest][STATEMENT] submit(): Finished calling DeliveryRequestHandler.submitRequest()
[033108_044058067][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequest][STATEMENT] submit(): Process done successfully. Exiting submit()
[033108_044058085][oracle.apps.xdo.batch.BurstingProcessorEngine][STATEMENT] ========================> startElement() ::: endDocument is entered <========================
[033108_044058086][oracle.apps.xdo.batch.BurstingProcessorEngine][STATEMENT] ========================> startElement() ::: endDocument is entered <========================
Bursting process complete..
Generating Bursting Status Report..
[033108_044058202][oracle.apps.xdo.batch.bursting.FileHandler][STATEMENT] /u0350/app/apps/UAT/xx/1.0/log/033108_044049420/xdo0.tmp is deleted
[033108_044058203][oracle.apps.xdo.batch.bursting.FileHandler][STATEMENT] /u0350/app/apps/UAT/xx/1.0/log/033108_044049420/xdo1.tmp is not deleted
[033108_044058226][oracle.apps.xdo.batch.bursting.FileHandler][STATEMENT] /u0350/app/apps/UAT/xx/1.0/log/033108_044049420/xdo2.tmp is deleted
[033108_044058226][oracle.apps.xdo.batch.bursting.FileHandler][STATEMENT] /u0350/app/apps/UAT/xx/1.0/log/033108_044049420/xdo3.tmp is not deleted
[033108_044058238][oracle.apps.xdo.batch.bursting.FileHandler][STATEMENT] /u0350/app/apps/UAT/xx/1.0/log/033108_044049420/xdo4.tmp is deleted
[033108_044058262][oracle.apps.xdo.batch.bursting.FileHandler][STATEMENT] /u0350/app/apps/UAT/xx/1.0/log/033108_044049420/PurchaseOrder 6023571.pdf is deleted -
Hi ALL,
I need to display the following data in the email body with Material records and DIR records
Line 1 (Header Line):
"Material Master Records "
Line 2:
[ space ]
Line 3 (New Record):
Material Number Material Desc. MatGrp Basic Material UOM
Line 1 (Header Line):
"Document Info. Records "
Line 2:
[ space ]
Line 3 (New Record):
DocType Document Part Version Doc.Desc.
I am using the FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' to send the mail and populating the contents_txt internal table with Material and DIR records using OFFSETS.
I am getting alignment problems and space is getting trucated between the fields.
Can somebody tell me how to do a proper formating to the email body
Thanks
BhaskerI hope every thing in the mail is in Charater format , every field and length .
the only thing for these sort of option is to have a fixed distance based on max and min length the text can occupy .
Line 1 (Header Line):
"Material Master Records "
Line 2:
[ space ]
Line 3 (New Record):
Material Number Material Desc. MatGrp Basic Material UOM
declare the text as
begin of itab occurs 0 ,
s1(200) type c,
endof itab
1. first text for the header .
itab-S1+10(100) = " Header text'.
append itab .
clear itab.
2.
append itab ====> fill force an empty line
3.
use concatenate f1X(Y ) f2X(Y ) itab-f3+X(Y ) into itab-s1 separated by space
append itab.
will keep the format in justified format .
similarly repeat the same for the second header .
regards,
vijay -
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 AMCheck 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 -
Hi.
I want to send some data in a Table format as an email body.
Is it possible? If yes then how it can be done?Hi ,
Yes, it is possible we have to use "HTML" tags to send .
DOC_TYPE = 'HTM'.
MAILREC-RECEIVER = WA_PA0105-USRID_LONG.
MAILREC-REC_TYPE = 'U'.
APPEND MAILREC.
CLEAR: MAILREC.
DOC_DATA-OBJ_NAME = 'Absence Details .'(029) .
CONCATENATE 'Absence details for'(021) TEXT_DATE INTO DOC_DATA-OBJ_DESCR SEPARATED BY SPACE.
DOC_DATA-OBJ_LANGU = SY-LANGU .
APPEND TEXT-200 TO OBJTEXT . " <html> <STYLE type="text/css">
APPEND TEXT-201 TO OBJTEXT . "</STYLE></head ><body><p>
APPEND TEXT-202 TO OBJTEXT . "</STYLE></head ><body><p>
APPEND TEXT-100 TO OBJTEXT . "Dear Sir/ Madam,
APPEND TEXT-203 TO OBJTEXT . "<BR>
APPEND TEXT-203 TO OBJTEXT . "<BR>
CONCATENATE 'The below Employee ware absent on'(050) TEXT_DATE INTO OBJTEXT.
APPEND OBJTEXT .
APPEND TEXT-204 TO OBJTEXT. "<table border="1">
APPEND TEXT-205 TO OBJTEXT. "<tr bgcolor="#d0d0d0" valigh="top"><td >Description</td>
LOOP AT IT_ZHR_TIME INTO WA_ZHR_TIME.
CONCATENATE '<td>' WA_ZHR_TIME-L_PERNR '</td>' INTO OBJTEXT.
APPEND OBJTEXT.
CONCATENATE '<td>' WA_ZHR_TIME-L_DATE+6(2) '.'
WA_ZHR_TIME-L_DATE4(2) '.' WA_ZHR_TIME-L_DATE0(4) '</td></tr>' INTO OBJTEXT.
APPEND OBJTEXT.
CLEAR WA_ZHR_TIME.
ENDLOOP.
APPEND TEXT-203 TO OBJTEXT. "<BR>
APPEND TEXT-203 TO OBJTEXT. "<BR>
APPEND TEXT-214 TO OBJTEXT. "</table>
APPEND TEXT-203 TO OBJTEXT. "<BR>
APPEND TEXT-203 TO OBJTEXT. "<BR>
APPEND TEXT-203 TO OBJTEXT. "<BR>
APPEND TEXT-203 TO OBJTEXT. "<BR>
APPEND TEXT-215 TO OBJTEXT. "</body></html>
APPEND TEXT-203 TO OBJTEXT . "<BR>
APPEND TEXT-203 TO OBJTEXT . "<BR>
OBJTEXT = 'This is for your information .'(026) .
APPEND TEXT-203 TO OBJTEXT . "<BR>
APPEND OBJTEXT .
OBJTEXT = 'This auto Generated Mail.'(027) .
APPEND OBJTEXT .
for more tags got to SE80 check under Tag browser -
Issue with conditional formatting in XML publisher report
Hi All,
I am working on a XML report where in I am required to use conditional formatting to highlight changes, if there is change in any of the column value. The condition is required to be implemented on a text column as well as a number column. I have tried to use the conditional formatting available in the BI Publisher Release 10.1.3.2, wherein I have compared the two columns, and when they are not equal to, then formatting should change to red color; but the same is not working in the excel output.
Can anybody help here?
Thanks,
NitinCross conditional formatting ie formatting based on some other column is not supported in pivot view.
There are some workaround.See if that helps
http://www.obinotes.com/2010/03/pivot-view-conditional-formatting-in.html
Regards,
Sandeep -
How to format and send html email using utl_smtp
Hi,
I need to send email in the html format from within the database using utl_smtp. I am really not interested in creating os level file using "set markup html on spool on" and sending that as an html attachment. Can someone please give a code?
1. Output of a select needs to be emailed (for example : select empid, name from emp, salary)
2. Certian cells for example salary < 4800 needs to be higlighted in Red color
3. I need to send email which is having more than 32767 characters (I can not use varchar2 field)
I have reffered to following url on asktom:
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1739411218448
However it does not help.
If someone has a sample code with any select from a table, it would be a great help.
Regards
Sudhanshu BhandariThere have been many very good threads on sending email using the UTL_SMTP on the forum including threads that deal with HTML formated mail.
The basic process is to the same as with sending regular (non HTML) mail, but you add some additional headers to the mail message as well as additional formatting to the message body (e.g. HTML tags as needed).
Specifically you need to add the two following headers:
MIME-Version: 1.0
Content-type: text/html -
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]<br/>
To: [email protected]<br/>
Subject: test html email<br/>
<h3 align="center">This is a html email</h3>
<p>This is the paragraph.</p>
<p>Newman</p>
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!
NewmanI 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>, <h3>, <p>, <ul>, 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 -
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,
VamsiHi 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. -
Schedule a job with email destination in BOXI R2 with email format as html
Hello Guys, would it to possible to schedule a job with email destination in BOXI R2 with email format as html? we are able to get it running with plain text email format. we use Java SDK to interface with BO Enterprise servers.
thanks for your thoughts,
VenkatHi
your job should SMOF_DOWNLOAD can bring new material master if you set up correctly.
as a smart method smof_download is the best way.
doble check your filter condition. it should work as you expected. because we dont involve in manual pulling...
check your variant once again. in vari table,
can you check r3ac1 - filter settings- source seetingsa--> source site nmae --> backendlogical system and filter sync..
br
Muthu -
Does Conditional Formatting does not work in HTML report editor - BO 4.1
Hi
I have just upgraded to BO 4.1 from BOXI 3.1
I see conditional formatting option is grayed out for me in BO 4.1
I dont have java installed and running launchad on HTML (Preference ->WEBI-> Modify Report -> HTML )
Is there any relation between Applet option and Conditional formatting or is there anything wrong with Access which i need to correcr explicitly as compared to BO 3.1 ?Hi Saurav,
This is expected behavior; We can modify the Conditional formatting only though Applet mode or using Webi Rich Client.
For more feature differences between Viewers go through following link;
http://scn.sap.com/community/businessobjects-web-intelligence/blog/2013/12/16/feature-differences-between-the-web-intelligence-clients-bi41-sp02
Regards,
Veer S. -
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.
Maybe you are looking for
-
How do I import Edge files into my Wordpress site
New to edge. Need to know how to incorporate the finished edge file into my WordPress site. Specifically I want to create an animated banner.
-
Hi all, I'm running OSX10.8.5 on a Mac Mini 2.5 GHz Intel Core i5 with 4 GB 1600 MHz DDR3 memory and Intel HD 4000 512MB graphics. I've just upgraded my monitor from a VGA 17" to an AOC E2462VWH 24" monitor, plugged into my computer via DVI with a Th
-
How do I create package groups from a set of packages?
Hello, Suppose I have a set of packages to be grouped together so that I can do pacman -S <pkg_group_name> to install all the packages in that group, how do I do this? Thanks for your help, Anand
-
How to use CMP in Weblogic 9.2 with MySQL?
Hello all... So I've been tasked wiith moving an Oracle/Weblogic installation to a MySQL/Weblogic platform. Things are moving along well, except that in my CMP (Container-Managed Persistence) descriptors, the database-type is set to "Oracle" and ther
-
Upgrade hard drive (possible?)
I would like to know if it is possible to upgrade the hard drive on my tx2120-us HP Pavilion Entertainment notebook from the one that came with it (250GB) to a 7200rpm 500GB drive. I have also a touchsmart tx2z 1300 CTO which has a 500GB hard drive