Format of Message mail with component ADF problem
Hi all
I use jdev 11.1.1.5.0 version.
In my use case I use java mail api to read mail from the mail server and to display on the page jspx output component.
but the problem is that when I access the message and printed in the console using System.out.println () message printed on console with bet in shape.
but when I put the value of message in the output text using the link as msgbody.setValue (msg) it is the message on the screen but without shaped.
code is more...
Inbox folder = store.getFolder ("INBOX");
Inbox. Open (Folder.READ_ONLY);
Msg message = inbox.getMessage (inbox.getMessageCount ());
Address [] = msg.getFrom ();
for (address: in) {}
System.out.println ("FROM:" + address.toString ());
}
Several party mp = (Multipart) msg.getContent ();
BodyPart bp = mp.getBodyPart (0);
System.out.println ("CONTENT:" + bp.getContent ()); This display message of line in the correct format.
Like this
It comes to test mail...
Kind regards...
Rafat Siddiqui
IT project specialist
Work ex - 456, Mo-9554038413
but in the outputText message show as...
It comes to test mail... Kind regards... Rafat Siddiqui specialist-IT project work ex - 456, Mo-9554038413
so my question is that how to display message on page jspx in the right format.
Thanks in advance
Manish
In this case, you can use an inputText component and set it to read-only. This element shows the line breaks if you set the property to a value > 1 rows.
Timo
Tags: Java
Similar Questions
-
Removal of e-mails with Outlook Express problems
I can't delete some emails from my Inbox in Outlook Express.
1. move all the messages you want to keep out folders, sent items and deleted items, and in other local OE folders you have created for archiving (backup) of such messages.
1B. move 99% of your messages in your Inbox folder to other folders the of OE, too.
2. Note the location of the store of your identity (http://www.insideoe.com/files/store.htm#storemain).
2B. turn on "Show hidden folders and files" via start | Control Panel | Folder options | View (cf.http://www.bleepingcomputer.com/tutorials/tutorial62.html).
3. close OE.
4. in Windows Explorer, navigate to your storage folder, find & removeOutbox.dbx, Sent Items.dbxand Deleted Items.dbxfile.
To avoid such problems in the future, comply with the following restrictions:
N ' not use Inbox or sent items to archive messages. Move them to local folders created for this purpose.
-Empty the deleted items folder daily.
-Frequently perform a manual compact of all OE while records that "work offline". More onhttp://www.insideoe.com/files/maintain.htm
-Do not cancel automatic compacting, where it would happen and do not try to close OE via Manager tasks or stop your Automatic compaction machine can take place.
-Disable e-mail scanning in your antivirus application. It can cause corruption (i.e., loss of messages) and offers no additional protection:
Why you don't need your anti-virus to scan your email
http://thundercloud.NET/infoave/tutorials/email-scanning/index.htm==============================
In this forum, you will find ongoing support for Outlook Express: http://social.answers.microsoft.com/Forums/en-US/xpnetwork/threads
~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft
-
UTL_SMTP mail with an attachment (problem by attaching the zip file)
Hi all
I used the code for sending email with attachment below. but when I try to add the body of the message its does not work in the sense of sound do not attach my file. When I commented that border its attach the file.
How to solve this problem?commented lines: -- utl_smtp.write_data(mail_conn,UTL_TCP.CRLF ||'Body' ||':'|| text || UTL_TCP.CRLF); --utl_smtp.write_data(mail_conn,UTL_TCP.CRLF||text || UTL_TCP.CRLF );
Full procedure.
Please, help me to solve this problem.create or replace procedure sssl_send_mail ( p_sender varchar2, p_recipient varchar2, p_cc varchar2, p_subject varchar2, p_filename varchar2, text varchar2) is --c utl_smtp.connection; v_raw raw(57); v_length integer := 0; v_buffer_size integer := 57; v_offset integer := 1; mailhost VARCHAR2(64) := 'xxxxxxxxxx'; port constant number(2):=25; timeout number :=180; mail_conn utl_smtp.connection; p_blob Blob; temp_os_file bfile; ex number; begin DBMS_LOB.CREATETEMPORARY(p_blob,true); temp_os_file := BFILENAME ('xxxxxxxx',p_filename); ex := dbms_lob.fileexists(temp_os_file); if ex = 1 then dbms_lob.fileopen(temp_os_file, dbms_lob.file_readonly); dbms_lob.loadfromfile(p_blob,temp_os_file, dbms_lob.getlength(temp_os_file)); dbms_lob.fileclose(temp_os_file); end if; mail_conn := utl_smtp.open_connection(mailhost, port,timeout); utl_smtp.helo(mail_conn, mailhost); utl_smtp.mail(mail_conn, p_sender); utl_smtp.rcpt(mail_conn, p_recipient); utl_smtp.rcpt(mail_conn, p_cc); utl_smtp.open_data(mail_conn); utl_smtp.write_data(mail_conn,'From'||':'|| p_sender || UTL_TCP.CRLF); utl_smtp.write_data(mail_conn,'To'||':'|| p_recipient || UTL_TCP.CRLF); utl_smtp.write_data(mail_conn,'CC'||':'|| p_cc || UTL_TCP.CRLF); utl_smtp.write_data(mail_conn,'Subject' ||':'|| p_subject || UTL_TCP.CRLF); -- utl_smtp.write_data(mail_conn,UTL_TCP.CRLF ||'Body' ||':'|| text || UTL_TCP.CRLF); --utl_smtp.write_data(mail_conn,UTL_TCP.CRLF||text || UTL_TCP.CRLF ); utl_smtp.write_data( mail_conn, 'Content-Disposition: attachment; filename="' || p_filename || '"' || utl_tcp.crlf); utl_smtp.write_data( mail_conn, 'Content-Transfer-Encoding: base64' || utl_tcp.crlf ); utl_smtp.write_data( mail_conn, utl_tcp.crlf ); v_length := dbms_lob.getlength(p_blob); <<while_loop>> while v_offset < v_length loop dbms_lob.read( p_blob, v_buffer_size, v_offset, v_raw ); utl_smtp.write_raw_data( mail_conn, utl_encode.base64_encode(v_raw) ); utl_smtp.write_data( mail_conn, utl_tcp.crlf ); v_offset := v_offset + v_buffer_size; end loop while_loop; utl_smtp.write_data( mail_conn, utl_tcp.crlf ); utl_smtp.close_data(mail_conn); utl_smtp.quit(mail_conn); exception when utl_smtp.transient_error or utl_smtp.permanent_error then utl_smtp.quit(mail_conn); raise; when others then raise; end;
Thanks in advance.
See you soon,.
Shan.
Published by: Shan on January 13, 2011 13:08
Published by: Shan on January 14, 2011 15:22I don't have your question on the BLOB store. I read the disk file (BFILE) and then storing it in temporary LOB. I send a file in my hotmail and it came as an attachment.
DECLARE /*LOB operation related varriables */ v_src_loc BFILE := BFILENAME('SAUBHIK', 'Waterlilies.jpg'); l_buffer RAW(54); l_amount BINARY_INTEGER := 54; l_pos INTEGER := 1; l_blob BLOB := EMPTY_BLOB; l_blob_len INTEGER; v_amount INTEGER; /*UTL_SMTP related varriavles. */ v_connection_handle UTL_SMTP.CONNECTION; v_from_email_address VARCHAR2(30) := '[email protected]';--change your email address v_to_email_address VARCHAR2(30) := '[email protected]'; --change your email address v_smtp_host VARCHAR2(30) := '9.182.156.144'; --My mail server, replace it with yours. v_subject VARCHAR2(30) := 'Your Test Mail'; l_message VARCHAR2(200) := 'This is test mail using UTL_SMTP'; /* This send_header procedure is written in the documentation */ PROCEDURE send_header(pi_name IN VARCHAR2, pi_header IN VARCHAR2) AS BEGIN UTL_SMTP.WRITE_DATA(v_connection_handle, pi_name || ': ' || pi_header || UTL_TCP.CRLF); END; BEGIN /*Preparing the LOB from file for attachment. */ DBMS_LOB.OPEN(v_src_loc, DBMS_LOB.LOB_READONLY); --Read the file DBMS_LOB.CREATETEMPORARY(l_blob, TRUE); --Create temporary LOB to store the file. v_amount := DBMS_LOB.GETLENGTH(v_src_loc); --Amount to store. DBMS_LOB.LOADFROMFILE(l_blob, v_src_loc, v_amount); -- Loading from file into temporary LOB l_blob_len := DBMS_LOB.getlength(l_blob); /*UTL_SMTP related coding. */ v_connection_handle := UTL_SMTP.OPEN_CONNECTION(host => v_smtp_host); UTL_SMTP.HELO(v_connection_handle, v_smtp_host); UTL_SMTP.MAIL(v_connection_handle, v_from_email_address); UTL_SMTP.RCPT(v_connection_handle, v_to_email_address); UTL_SMTP.OPEN_DATA(v_connection_handle); send_header('From', '"Sender" <' || v_from_email_address || '>'); send_header('To', '"Recipient" <' || v_to_email_address || '>'); send_header('Subject', v_subject); --MIME header. UTL_SMTP.WRITE_DATA(v_connection_handle, 'MIME-Version: 1.0' || UTL_TCP.CRLF); UTL_SMTP.WRITE_DATA(v_connection_handle, 'Content-Type: multipart/mixed; ' || UTL_TCP.CRLF); UTL_SMTP.WRITE_DATA(v_connection_handle, ' boundary= "' || 'SAUBHIK.SECBOUND' || '"' || UTL_TCP.CRLF); UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF); -- Mail Body UTL_SMTP.WRITE_DATA(v_connection_handle, '--' || 'SAUBHIK.SECBOUND' || UTL_TCP.CRLF); UTL_SMTP.WRITE_DATA(v_connection_handle, 'Content-Type: text/plain;' || UTL_TCP.CRLF); UTL_SMTP.WRITE_DATA(v_connection_handle, ' charset=US-ASCII' || UTL_TCP.CRLF); UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF); UTL_SMTP.WRITE_DATA(v_connection_handle, l_message || UTL_TCP.CRLF); UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF); -- Mail Attachment UTL_SMTP.WRITE_DATA(v_connection_handle, '--' || 'SAUBHIK.SECBOUND' || UTL_TCP.CRLF); UTL_SMTP.WRITE_DATA(v_connection_handle, 'Content-Type: application/octet-stream' || UTL_TCP.CRLF); UTL_SMTP.WRITE_DATA(v_connection_handle, 'Content-Disposition: attachment; ' || UTL_TCP.CRLF); UTL_SMTP.WRITE_DATA(v_connection_handle, ' filename="' || 'Waterlilies.jpg' || '"' || --My filename UTL_TCP.CRLF); UTL_SMTP.WRITE_DATA(v_connection_handle, 'Content-Transfer-Encoding: base64' || UTL_TCP.CRLF); UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF); /* Writing the BLOL in chunks */ WHILE l_pos < l_blob_len LOOP DBMS_LOB.READ(l_blob, l_amount, l_pos, l_buffer); UTL_SMTP.write_raw_data(v_connection_handle, UTL_ENCODE.BASE64_ENCODE(l_buffer)); UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF); l_buffer := NULL; l_pos := l_pos + l_amount; END LOOP; UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF); -- Close Email UTL_SMTP.WRITE_DATA(v_connection_handle, '--' || 'SAUBHIK.SECBOUND' || '--' || UTL_TCP.CRLF); UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF || '.' || UTL_TCP.CRLF); UTL_SMTP.CLOSE_DATA(v_connection_handle); UTL_SMTP.QUIT(v_connection_handle); DBMS_LOB.FREETEMPORARY(l_blob); DBMS_LOB.FILECLOSE(v_src_loc); EXCEPTION WHEN OTHERS THEN UTL_SMTP.QUIT(v_connection_handle); DBMS_LOB.FREETEMPORARY(l_blob); DBMS_LOB.FILECLOSE(v_src_loc); RAISE; END;
http://saubbane.blogspot.com/2011/01/sending-binary-attachmentimages-in-mail.html
-
Droid - length of e-mail with Exchange Server problem
-Very well, so I'm moderately new to the DROID, but I'm not new phones or technology. I know that the DROID and exchange server do not have the best time together but I was wondering if there is a setting somewhere that allows me to receive full email when I use the built in DROID Exchange program. Now when I get an email that seems to receive the first X number of characters, then the rest is not here. It comes out about paragraphs, words worth. Y at - it a setting that I am missing or that's how it is with everyone. I see a lot of people download hit, what I'll do if I have to, but I'm a poor College kid, the last thing I want to do is to drop $ 20 on something that I think the phone should already so. Any ideas or suggestions? Thank you.
OneGuy, I bet that your school use Zimbra, an alternative open source Exchange. Search this forum for "zimbra" for more details. Best regards, Paul
-
Formatting of message with Dx problem
I have Dx 11 is installed on my pc (according to dxdiag) but when I try to start my FIFA 13 installation it shows a directx error and that it does not install. The game used to work fine until I formatted my pc. What is the problem here and what is the solution?
There should be a DirectX.log in Windows \ Logs, but it probably would not have something useful.
The DXError.log may have something useful. Not for me to interpret, then maybe another poster.
If there is one, copy and paste it here well - too long. Best to upload to Skydrive
(if there is still a problem after trying the suggestions below)-Use SkyDrive download collected files and after shot/screenshot. (Updated: 16/01/2012)
-If you have all the DX files (see > below) first try to reinstall the game. If this does not help
Read more-
-See if clear you the Temp folder (just delete everything what it)-your username-AppData-Temp.
Turn off your anti-virus, then re-run the Web installation program by using the parameter - running like an administrateur
in the Compatibility tab - (R / click on the .exe and go in properties).-You can also try running the Installer boot Web where something is in conflict.
How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7-If the problem is caused by a corrupted file of DX, then you must use the full installer DX redist as it
replaces all DX files (Web Installer only installs the 'missing' files and does not overwrite).
Download details - Microsoft Download Center - DirectX Redist (June 2010)-One way to determine if there is a file corrupted vs a file "missing" when there is no error message that
Specifies that a particular file name is to go to System32 and SysWOW64 folders in your Windows folder and make sure you have the following files
> They are in alphabetical order and will start with d3dx9 - 24 43 >. Then d3dx10 - 33 43 > & finally d3dx11 - 42 43 >. If you have all these files, then one of them may be corrupted.-However, if the corrupted file is one of the most recent ones you would do better to delete the last
files of System32 and SysWOW64 and rerun the Web Installer.
It's the d3dx-_ - the files that end in 43 - for example. d3dx10_43. (I think 43 is the only new name of file from the installer of redistributable components, but it wouldn't hurt to replace 42 institutions.)-Don't you reformat because you had problems? What are the details of these problems?
.
-
Hi, I try to connect to hotmail and received the following message ' sorry, there's a problem with Hotmail right now Hotmail was not able to complete this application. Microsoft may contact you about any matter that you declare "what steps should I take as I have urgent e-mail to check." THX
Hello
Looks like a temporary problem.
Answers is a peer group supported and unfortunately has no real influence on Hotmail.
HotMail has its own Forums, so you can ask your questions there.
Windows Live Solution Center - HotMail - HotMail Forums Solutions
http://windowslivehelp.com/Hotmail - Forums
http://windowslivehelp.com/forums.aspx?ProductID=1Hotmail - Solutions
http://windowslivehelp.com/solutions.aspx?ProductID=1How to contact Windows Live Hotmail Support
http://email.about.com/od/hotmailtips/Qt/et_hotmail_supp.htmWindows Live Hotmail Top issues and Support information
http://support.Microsoft.com/kb/316659/en-usError message "your account has been locked" when trying to connect
http://windowslivehelp.com/thread.aspx?ThreadId=77be7d82-a0e9-49c7-b46d-040ec654a9e2Compromised account - access unauthorized account - how to recover your account
http://windowslivehelp.com/solution.aspx?SolutionID=6ea0c7b3-1473-4176-b03f-145b951dcb41Hotmail hacked? Take these steps
http://blogs.msdn.com/b/securitytipstalk/archive/2010/07/07/Hotmail-hacked-take-these-steps.aspxI hope this helps.
Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">->
-
/ * moved from answers Feedback * /.
I have a question regarding windows mail. I was send and receive mail with no problems until last Thursday. I can still receive mail, but I can not send. My email is with bellsouth.net and comes in my computer through windows Messaging. I spent an hour and a half on the phone with bellsouth, and they say that the problem is with my windows mail. I tried to use a restore date, and that did not help either. I will post a copy of this message, as I keep getting. Your server suddenly put an end to the connection. The possible causes for this include server problems, network problems, or a long period of inactivity. Object 't', counts: 'mail.bellsouth.net', server: 'mail.bellsouth.net', Protocol: SMTP, Port: 25, secure (SSL): no, error number: 0x800CCC0F thanks for any help.Sometimes, WinMail settings get screwed up and you must remove the account and then add it back back. Make sure first that the antivirus software not interfere (see www.oehelp.com/OETips.aspx#3). Delete your account completely, then close WinMail. Then compact and repair the database of WinMail (see www.oehelp.com/WMUtil/). Add your account to mail back once again, and then make sure you have the correct settings under Tools | Accounts | Mail | Properties | Servers and | Advanced to what AT & T Specifies to WinMail (or OE). Then see if it works.
Steve
-
All I get is a box with a yellow warning sign and the message that there is a problem and try later. I did this several times and have stopped and restarted the computer. Other than to restore the computer to an earlier time, I know not what to do. Would appreciate any help I can get to fix this.
You will find support for Windows Live Mail by starting your own, new thread in the appropriate forum of WLMail specific: http://answers.microsoft.com/en-us/windowslive/forum/livemail
-
When I try to send an e-mail with pictures, a pop-up window appears when I hit SEND and says that the photos will not appear in the e-mail message. How can I fix it?
original title: e-mail problems.Hello
I suggest that ask you your question on the following link.
-
Problem with component InputFile
Hello, I am new to the ADF, and I have problem with component InputFile. I put it on the pop-up dialog box and when I close the popup and open it again the entry file contains the previous file. How can I delete it? There are a few inputFile.resetValue () of the method, but where should I put it?
Bind the inputfile component and set the value to null close Popup.
AddFile RichInputFile = this.getAttachmentFile ();
addFile.setValue (null);
-
I installed Adobe Pro DC yesterday and now I can't convert my email in pdf format.
I have the following message: Acrobat PDFMaker has detected problems in the installation. Please repair/reinstall Acrobat. How can I fix this?
Try to remove Acrobat DC with the tool from here: Download Adobe Reader and Acrobat cleaning - Adobe Labs tool , restart the computer and reinstall Acrobat Pro DC.
-
Publish with the help of af: Message for date validations ADF
Hi Experts,
I get the following error message when you use adf date using af: message instead of a Note window. As you can see int right below the screenshot, what happens is invalid when date is entered once, while a single error message appears below the component, but when the user clicks on the date picker icon after that every time a message is added under each time as shown below.
I use Jdev 11.1.1.5. Please let me know if there is a solution for this using java script or a property in jsf.
< af:inputDate label = 'test' id = 'dat' >
< / af:inputDate >
"< af:message id ="m1"for =": dat ">"
The solution to the above problem is,
function errorMessClear (evt) {}
source var = evt.getSource ();
AdfPage.PAGE.clearMessages (source.getClientId ());
}
-
I am trying to install an update to iCloud on my Win 7 PC and I get an error message that there is a problem with my windows install. How can I solve this problem?
Hello grandpa_bill,
Thank you for your participation in the communities of Support from Apple.
If you get an error when you install an update to iCloud for Windows, try to download the latest version of download iCloud for Windows.
For more information, see get help using iCloud for Windows.
All the best.
-
I got these messages: "Sorry, there is a problem with Hotmail right now"... "Hotmail is having connection problems. You might see an error message when you try to connect.
original title: cannot access Hotmail
I need to go to my account to retrieve an important document for a meeting! Please advise how can I sing to my account?
Hello
The Hotmail service problems. See the following link to check the status of the service.
Status of hotmail - Windows Live: https://status.live.com/detail/hotmail
Once the service has been restored, there will be a notice at this link.
Concerning
-
Windows Installer package error
When installing iTunes I get a message error "there is a problem with this Windows Installer package. A program required for this install to complete could not run. "I downloaded Windows Installer 4.5, rebooted and tried again with the same results. How can I fix?
Hello
Important The Windows Installer Cleanup (MSICUU2.exe) utility that was previously referred to as in this article has been abandoned. Although the Windows Installer Cleanup utility solved a few problems installing, it sometimes damaged other components that have been installed on the computer. For this reason, the tool has been removed from the Microsoft Download Center. program install and uninstall problem solving
(http://support.microsoft.com/mats/Program_Install_and_Uninstall)is a replacement for this utility.
"The problems with programs that cannot be installed or uninstalled.
http://support.Microsoft.com/mats/Program_Install_and_Uninstall
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
And see if this information helps you install iTunes:
"Not to install iTunes or QuickTime for Windows"
http://support.Apple.com/kb/HT1926
«Remove and reinstall iTunes, QuickTime, and other software components for Windows Vista or Windows 7»
http://support.Apple.com/kb/HT1923
If the advice already given does not, please contact Apple for assistance.
"iTunes support-how to use iTunes.
http://www.Apple.com/support/iTunes/
"Contact iTunes Support.
http://www.Apple.com/support/iTunes/contact/
Or ask in the community Apple iTunes:
https://discussions.Apple.com/community/iTunes
See you soon.
Maybe you are looking for
-
Problem USB P10 (or disaster)
Hello My display suddenly flashed white and the computer freezes, after that I restarted everything worked fine except all the usb ports.Device Manager is showing that the usb hub is working properly, and Toshiba PC diagnostic Tool V3.0.6 usb test.an
-
How to delete the EDS sheet technique list?
Because I need one and I have about 100 to the choice.
-
Ask a thin high-performance notebook?
Now using Aspire 5745 G, i3-370cpu, 4GBram, 250GBhdd, Win7x64 home I travel and I would less in bulk, but much, much more performance to manage the software photo and three large sets of data in Excel, but also the usual stuff from day to day. A 15.
-
My kodakESP5 will not print all the object I want to print only a part of it
My kodak ESP5 will not print all the object I want to print only a part of it
-
HelloI need emergency on a technical question.I joined a new place of work. Currently, this place has an opening of Virtual Office for development activities (XP with IIS 5.0). I have access to the connection of production (windows server 2008 r2, II