Information Broadcasting ( sending query in ( HTML format) )
Hi Experts,
I am trying to broadcast one query through Bex Broadcaster in Query Designer.
While doing so it asked for e**l address and for testing purpose i gave my e*il address only.
But I haven't got any mail yet.
I checked in SU01 my m**l id is updated there.
I checked all authorisations its there in PFCG.
While scheduling it was showing CET time format ( 3.5 hrs before us).
So I gave time according to that format only.
Please guide me If I am missing anything.
Quick reply is much appreciable.
Thanks,
Uday.
Hi Murali,
I checked in the error log it is giving following error :-
An error occurred in program CL_SMTP_RESPONSE
Error text: ESMTP error code is not known.
Additional information:
554
554 Mail from ************@wipro.com rejected for
If you have any solution please reply to me.
Is there anything to be done in function module SO_OBJECT_SEND..
Thanks,
Uday.
Similar Messages
-
Information Broadcasting - Creation - Error in HTML / MHTML format
Hi gurus,
I'm trying to create a Broadcasting for a query with HTML format. All the steps, including the scheduling, were succesfully. But when I click on Execute button, I got the following error message:
The following error text was processed in the system WD4 : The current application triggered a termination with a short dump.
The error occurred on the application server bp1tulap098_WD4_00 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Form: INTERNAL_ERROR of program SAPLSDCL
Form: PHIO_GET_CONTENT_ACCESS of program SAPLSDCI
Function: SDOK_PHIO_GET_CONTENT_ACCESS of program SAPLSDCI
Function: SKWF_PHIO_CONTENT_ACCESS_GET of program SAPLSKWF_CONTENT
Method: COPY_MIME_TO_FOLDER of program CL_RSRA_KWF_UTILITIES=========CP
Method: GET_STYLESHEET of program CL_RSRA_KWF_TMPL==============CP
Method: CONSTRUCTOR of program CL_RSRA_KWF_TMPL==============CP
Method: SET_TEMPLATE_FOLDER of program CL_RSRA_ENGINE_BC=============CP
Method: CONSTRUCTOR of program CL_RSRA_ENGINE_BC=============CP
Method: EXECUTE_SINGLE of program CL_RSRA_JOB===================CP
I've tried to create it for all the queries, but the same error occurred. I researched here and in the SAP notes but I found nothing about it. Anyone could help me?
Thanks!!!
HelderHi Helder,
Can you please let me know wether if you have found a solution for this problem....
Bcoz i am also facing the similar one now...
please post the solution if you can...
or GURU'S some help please......................
Thanks in Adv
Dev -
Send Email in HTML Format with Javamail.
GOD BE BLESSED!
Hello dudes,
i create a jsp page let me send emails from a database using the API Javamail.
But these emails when i send then, goes in text format only, and i want to send emails in HTML format too. Anyone can help me?
I think the Javamail API can send in HTML format.
thanks and sorry, my english is basic but i think you understand. ;)
Adler MedradoI was trying to do the same thing...I found this on the java.sun.com website somewhere. Hope it works out for you.
try {
String host = "";
String from = "";
String to = "";
String fileAttachment = fileName;
// Get system properties
Properties props = new Properties();
// Setup mail server
props.put("mail.smtp.host", host);
// Get session
Session session1 =
Session.getInstance(props, null);
// Define message
MimeMessage message =
new MimeMessage(session1);
message.setFrom(
new InternetAddress(from));
message.addRecipient(
Message.RecipientType.TO,
new InternetAddress(to));
message.setSubject("");
// create the message part
MimeBodyPart messageBodyPart =
new MimeBodyPart();
//fill message
messageBodyPart.setText("");
Multipart multipart = new MimeMultipart();
multipart.addBodyPart(messageBodyPart);
// Part two is attachment
messageBodyPart = new MimeBodyPart();
DataSource source =
new FileDataSource(fileAttachment);
messageBodyPart.setDataHandler(
new DataHandler(source));
messageBodyPart.setFileName(fileAttachment);
multipart.addBodyPart(messageBodyPart);
// Put parts in message
message.setContent(multipart);
// Send the message
Transport.send( message );
}catch (Exception e){
System.err.print("Mailing error:");
System.err.println(e); -
Send Email with HTML format in Outlook Macro
I can use the following to send email with HTML format in VBA. I also have created an HTML file. Is there a way to load the file into .HTMLBody to send it as HTML format message?
Set OutlookApp = CreateObject("Outlook.Application")
Set objMail = OutlookApp.CreateItem(olMailItem)
With objMail
.BodyFormat = olFormatHTML
.HTMLBody = "<HTML><BODY>Enter the message text here. </BODY></HTML>"
.Display
End WithTry:
Dim fso As Scripting.FileSystemObject
Dim htmlFile As Scripting.TextStream
Set fso = New Scripting.FileSystemObject
Set htmlFile = fso.OpenTextFile("C:\path\to\my-html-file.htm")
strInsert = htmlFile.ReadAll
then change:
.htmlbody = strInsert
oh, and you need to set a reference to the Scripting runtime in Tools, References.
Diane Poremsky [MVP - Outlook]
Outlook & Exchange Solutions Center
Outlook Tips
Subscribe to Exchange Messaging Outlook weekly newsletter -
Send mail in HTML Format in Service Desk
Dear Friends,
We want to send email in html format to every user in service desk, how can we figure it?
Thanks in advance
Regards,Hello Eray,
You will want to have a look at this document and hopefully it will assist you accomplish what you need.
http://service.sap.com/~sapidb/011000358700001903822008E
Regards,
Paul -
How to send mail in HTML format using SMTP
I want to send mail in HTML format using SMTP.Can anybody please suggest how to do it.Can anybody send me the code.
Thnx.If you don't know how to send a message using JavaMail see here : http://developer.java.sun.com/developer/onlineTraining/JavaMail/contents.html#JavaMailSending
To send a html format mail you need to set the content type like this (msg is a javax.mail.internet.MimeMessage) :
String subject = "An Email 4 U";
String message = "<HTML><BODY>Here is a link<br><a href='http://javasoft.com'>Java</a></BODY></HTML>";
msg.setSubject(subject);
msg.setContent(message, "text/html");p.s This isn't really an advanced topic -
Java.mail sending email in html format
I trying to send emails from my java program, I ve managd to send text mails, I want to send email in html format is there a way of doing that and how
thanks for your helpThanks a lot it is working now but I think that sending mails in text format is the best way since there isn't a way of knowing whether the recepient can handel html mails
-
Sending email in html format.
i am trying to send email in html format. the following is my sample code. it's just sending plain text. how should i send html file in email?
String message_body = "<a href=\"test.html\">click here</a>";
MimeMessage msg = new MimeMessage( session );
// From Address
msg.setFrom( new InternetAddress( fromAddress ) );
// TO Address
InternetAddress recipient_Address = new InternetAddress( toAddress );
msg.addRecipient(Message.RecipientType.TO, recipient_Address);
// Subject
msg.setSubject( subject );
// MimeBodyPart object for message body part
MimeBodyPart mbp1 = new MimeBodyPart();
mbp1.setText( message_body );
// MimeBodyPart object for file to attach
MimeBodyPart mbp2 = new MimeBodyPart();
Multipart mp = new MimeMultipart();
// create the Multipart and add message body and file to attach.
mp.addBodyPart(mbp1);
// add the Multipart to the message
msg.setContent(mp);
msg.setSentDate(new Date());
// send the message
Transport.send(msg);
i'd appreciated it...msg.setContent(mp, "text/html");Have I put this in the right place? You need to apply it to your body text, at any rate.
-
How can I set information broadcasting (send Workbook with E-mail) in serv.
FYI: I set a broadcasting schedule to send workbook with e-mail. The pre-calculated server was set already.
How can I set information broadcasting (send Workbook via E-mail) when I cannot access enterprise portal ?Hi,
Check this thread:
Work book broadcasting
Regards
Pcrao. -
Hi All,
My requirement is to send emails. I am using javamail and it works fine. But the body of the email should be in table format.
I am planning to use Html as below. But don't know how to combine html in java. Is there any other way of achieving it ? Please let me know if I am not clear.
<htm>
<table border="1">
<tr>
<td bgcolor="red">Header</td>
</tr>
<tr>
<td bgcolor="yellow">Sub Header1</td>
<td bgcolor="yellow">Sub Header1</td>
</tr>
<tr>
<td bgcolor="green">Values</td>
<td bgcolor="green">Values</td>
</tr>
</html>so, do I need another method which tells Java whereto output the HTML Tags ?
The method writes to a PrintWriter defined somewhere,
you can also pass the PrintWriter as third argument
to the method.
To generate a String containg the whole HTML Dokument
you would write something like:
StringWriter stringWriter = new StringWriter();
PrintWriter printWriter = new
PrintWriter(stringWriter);
writeStartTable();
writeStartRow();
writeCell("BlaBla", "green");
printEndTable();
printWriter.flush();
printWriter.close();
stringWriter.close();
String content = stringWriter().toString();
BodyPart mailBody = new MimeBodyPart();
mailBody.setContent(content, "text/html");
I was succesful in sending mail using HTML format. Thanks for ur reply.
But if I try send the mail in HTML format along with an attachment, the MIME type defaults to "text/plain".
Is there a way to set the MIME type to "text/html" when I send mail with an attachment.
Please help . Let me know if I am not clear -
So I have the below sql job that is send me the information but in a non readable format. I would like to make this an HTML email. Can you please help me.
I have try to reproduce http://www.wikihow.com/Send-a-Scheduled-HTML-Report-Directly-from-SQL-Server, but keep getting errors.
declare @query nvarchar(max)
set @query=
'use fascinhq select * from store where ID not in (
Select distinct ws.StoreID from worksheet as w
JOIN worksheetstore ws on w.id = ws.worksheetid
WHERE w.style = ''401'' and w.fromdate >= dateadd(hh, -6, GETDATE())
and w.Status in (3,4,7) )
and ID <> 4 '
EXEC msdb.dbo.sp_send_dbmail
@profile_name= 'MyMailProfile',
@recipients= '(My Email)',
@subject='RMSGP',
@query= @query
Thank you for the Help.
BrianYes you can, its very easy, just add (For XML Auto) :
set @query=
'use fascinhq select * from store where ID not in (
Select distinct ws.StoreID from worksheet as w
JOIN worksheetstore ws on w.id = ws.worksheetid
WHERE w.style = ''401'' and w.fromdate >= dateadd(hh, -6, GETDATE())
and w.Status in (3,4,7) )
and ID <> 4 '
For XML Auto
EXEC msdb.dbo.sp_send_dbmail
@profile_name= 'MyMailProfile',
@recipients= '(My Email)',
@subject='RMSGP',
@query= @query -
How to send mails in HTML format from the send mail step of workflow?
Hi,
I have a requirement where I need to send mails in the html format from the send mail step of the workflows.
But what I found out that the html tags are not renderd and as such the output is in plain text.
I know that there is an alternative of using an activity step and use my own custom code from within there,But due to certain business constraints, I need to use the send mail step only.
My SCOT settings are all right.
Please let me know how it can be done.
Thanks,
Samrat.Samrat,
It can't be done, you have to use your own activity step.
What are these constraints that refrain you from doing that?
Rgds,
Patrick -
Send message in HTML format from Service Desk
Dear All,
I have configure Service Desk in Solution Manager 7 EHP1 (ABAP+JAVA Stack).
I am able to send the message to end user in case of change status from "New" to "In process" in PDF or TEXT format.
I want to send same in HTML with link just like SAP Support message we are getting in our inbox.
How to do that?
Thanks in advance,
NiravHello Nirav,
Its not that easy, take a look a this excellent blog /people/riccardo.escher/blog/2009/10/09/pep-up-your-charm--part-3-turn-cinderella-pdf-mails-into-prettyusefull-ones
Hope that helps,
Federico -
Send email in html format with pdf attachment
I am trying to send an email out of SAP using an abap program in the html format with a pdf attachment. I am using the function module -SO_DOCUMENT_SEND_API1. I noticed that when i specify the body type of the message as 'RAW' I get to see the pdf attachments however when i switch it to 'HTM' I loose the attachment in the email generated. Can anyone please help me in solving this problem. Thanks!
ld_email = p_email. "All email IDs
ld_mtitle = 'Bank Statement'.
ld_format = 'PDF'. "Attachment Format
ld_attdescription = 'Statement'.
ld_attfilename = p_filename. "Name of file
ld_sender_address = p_sender_address. "Sender mail address
ld_sender_address_type = p_sender_addres_type. "INT - Internet
* Fill the document data.
w_doc_data-doc_size = 1.
* Populate the subject/generic message attributes
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle . "Description
w_doc_data-sensitivty = 'F'.
* Fill the document data and get size of attachment
CLEAR w_doc_data.
READ TABLE it_attach INDEX w_cnt.
w_doc_data-doc_size =
( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle. "Description
w_doc_data-sensitivty = 'F'.
CLEAR t_attachment.
REFRESH t_attachment.
t_attachment[] = it_attach[].
* Describe the body of the message
CLEAR t_packing_list.
REFRESH t_packing_list.
t_packing_list-transf_bin = space.
t_packing_list-head_start = 1.
t_packing_list-head_num = 0.
t_packing_list-body_start = 1.
DESCRIBE TABLE it_message LINES t_packing_list-body_num.
t_packing_list-doc_type = 'HTM'. " THis is for BODY of mail RAW'.
APPEND t_packing_list.
* Create attachment notification
t_packing_list-transf_bin = 'X'.
t_packing_list-head_start = 1.
t_packing_list-head_num = 1.
t_packing_list-body_start = 1.
DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
t_packing_list-doc_type = ld_format.
t_packing_list-obj_descr = ld_attdescription.
t_packing_list-obj_name = ld_attfilename.
t_packing_list-doc_size = t_packing_list-body_num * 255.
APPEND t_packing_list.
* Add the recipients email address
CLEAR t_receivers.
REFRESH t_receivers.
t_receivers-receiver = ld_email.
t_receivers-rec_type = 'U'.
t_receivers-com_type = 'INT'.
t_receivers-notif_del = 'X'.
t_receivers-notif_ndel = 'X'.
APPEND t_receivers.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = w_doc_data
put_in_outbox = 'X'
sender_address = ld_sender_address
sender_address_type = ld_sender_address_type
commit_work = 'X'
IMPORTING
sent_to_all = w_sent_all
TABLES
packing_list = t_packing_list
contents_bin = t_attachment
contents_txt = it_message
receivers = t_receivers
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.
* Populate zerror return code
ld_error = sy-subrc. -
Hello everybody,
First of all:
I already searched via internet but couldn´t found an example which helped me to solve my problem. Anyway I believe it must be very simple what I want to do.
My Problem: I want to send an email in html format, but until now everything I tried didn´t worked. Please help me. What do I have to do?
I already tried a lot of code typing. For example this one:
this.resolveNode("#event").submit.target="mailto:"+email_adressen+"subject="+subject+"&Body="+body+"&MessageFormat=HTML";
But nothing is working, you always see the html tags in the text - they have no effect at all :-( .
Best regards,
PaoloI was trying to do the same thing...I found this on the java.sun.com website somewhere. Hope it works out for you.
try {
String host = "";
String from = "";
String to = "";
String fileAttachment = fileName;
// Get system properties
Properties props = new Properties();
// Setup mail server
props.put("mail.smtp.host", host);
// Get session
Session session1 =
Session.getInstance(props, null);
// Define message
MimeMessage message =
new MimeMessage(session1);
message.setFrom(
new InternetAddress(from));
message.addRecipient(
Message.RecipientType.TO,
new InternetAddress(to));
message.setSubject("");
// create the message part
MimeBodyPart messageBodyPart =
new MimeBodyPart();
//fill message
messageBodyPart.setText("");
Multipart multipart = new MimeMultipart();
multipart.addBodyPart(messageBodyPart);
// Part two is attachment
messageBodyPart = new MimeBodyPart();
DataSource source =
new FileDataSource(fileAttachment);
messageBodyPart.setDataHandler(
new DataHandler(source));
messageBodyPart.setFileName(fileAttachment);
multipart.addBodyPart(messageBodyPart);
// Put parts in message
message.setContent(multipart);
// Send the message
Transport.send( message );
}catch (Exception e){
System.err.print("Mailing error:");
System.err.println(e);
Maybe you are looking for
-
Write xmp sidecar files without need to export masters - script
I've written a script to write xmp sidecar files for referenced and online images (the 2 conditions in the script) of the selected images. I looked for a while at system events and other stuff to be able to write the xmp file, but i'm not a programme
-
Change account assignment for posting key-urgent
Dear expert, please advice, when running mb30, in accounting doc for material xxx we want to change account for posting key 91 with other account since the old one is blocked.How to change this account assignment then? Thank you
-
Interactive Photomerge Problems (CS5)
I am attempting to stitch together a large x-ray that I have scanned in sections from original films. However, when I attempt to merge these films using the interactive photomerge plug-in, Photoshop starts doing all sorts of crazy things. My person
-
Mac Mini ... OS X Bloated?
Hi all, Just wondering .. picked up core duo mac mini yesterday with a 80 gb hard drive (get info says about 76mb total) and about 20gb of space is used before I installed anything. This seems a bit high considering its about 7GB more than was instal
-
Disable submit button after submission
We have a form that we have distributed to multiple users. The form is set so that submissions go to a pre-defined server location. The problem is that some of the users submit the form multiple times (not sure why). Perhaps they don't notice the mes