UTL_SMTP send HTML email with embedded image?
Hi, I can use UTL_SMTP to send an HTML email ok, but does anyone have an example of how to include an inline embedded image in the email? Thanks!
If you want to send the html page and have it
reference the images and css files on your web
site, that's pretty easy. Just create a message
with text/html content that is your html page.
If you want to include all the images and css files
in your message along with the html page, you'll
need to create a multipart/related message and
you'll need to change all the html to reference the
images and css files using "cid:" references.
Similar Messages
-
Send HTML Email with Embedded Images and CSS
Hi All,
I have a html page. I want to send that html page(not with attachment) with all images and css. i search and try but I cant find a good solution. can any one help... plz..........
Thank You.....If you want to send the html page and have it
reference the images and css files on your web
site, that's pretty easy. Just create a message
with text/html content that is your html page.
If you want to include all the images and css files
in your message along with the html page, you'll
need to create a multipart/related message and
you'll need to change all the html to reference the
images and css files using "cid:" references. -
How to send HTML emails with embedded graphics?
I've discovered Mail is great for sending HTML if you open it in Safari and select "Mail Contents of this Page" - - My problem is, I need to include the graphic elements as embedded images rather than hosted images.
Is there any way to do this with Mail.app?
Can I somehow modify my HTML image references to make this happen?
Is there another Mac application recommended to do this?The best thing I've tried is Max Bulk Mailer. Do a search for it on VersionTracker. It's about $50. or so.
If you're just looking to send one offs, you can do it with a hotmail account - just make sure you pull out the doctype tag (you should do this for any html email). -
Sample Java Code to send an HTML mail with embeded image
Hello,
Please can I get a sample Java code on sending an HTML mail with embeded image.
The HTML message and relevant input parameters withhbe supplied from a PL/SQL that will call the class , the class will embed the image and send the mail to the recepient.tev wrote:
Please can I get a sample Java codeNo. This is a forum, not a code mill.
Recommended reading: How to ask questions the smart way
db -
I have the latest Thunderbird installed on a new 64-bit Winblows Eight netbook.. fantastic program, but one problem is driving me absolutely batty, and after using the latest Thunderbird for weeks, I simply can't figure out how to fix it..
I'm on a lot of mfr. and other kinds of mailing lists, like eBay watch list alerts, and so on.. these are not s p a m (although I get plenty of that.. who doesn't).. but lists I WANT to be on..
Many such emails from those mailing lists are in HTML format with embedded graphics.. I'm not talking about graphic file attachments, but embedded graphics which are coming from the senders' servers, and appear AS a graphic in the email.. sometimes such emails are one huge graphic with hardly any text.. all well and good..
However, here's the problem.. when I want to forward such an email to a friend, Thunderbird ALWAYS formats it as plain ASCII text.. I know this because I look in the "sent mail" folder, and can see that it has turned an HTML email with embedded graphics into plain ASCII text..
I absolutely can't figure out how to get it to forward an HTML email with embedded graphics INTACT, so the sender receives it looking the way it looks when I receive it from a mailing list, or an advertiser, or eBay, or whoever..
Is Thunderbird capable of forwarding an HTML email with embedded graphics INTACT?.. If so, how / where do I turn on that capability?..
If the capability to do this isn't built into the program, is there an add-on I can install that will give it that ability?..
I am not new to computers.. but this really has me stumped.. I want to put Thunderbird on my 32-bit Vista laptop and stop using its horrible "Windoze Mail" program, which I've been using for years, and is slower than snot, and has all kinds of other problems..
So, assuming whoever reads this FULLY understands my question, PLEASE tell me how to get Thunderbird to have the ability to forward an HTML email with embedded graphics AS-IS, so the receiver(s) I forward it to see it exactly the way I see it when I receive it.. if that ability is built in, please tell me how to turn it on.. if that ability is not built-in, please tell me what add-on I need to install to give Thunderbird this capability.. if Thunderbird absolutely can't forward an HTML email with embedded graphics at all, please also tell me that..
A virtual box of candy and a dozen long-stemmed roses to anyone who can give me a solution that works..
Thanks..Dear Mr. Toad (my all-time favorite ride at Disneyland ;-) ..
Thanks so much for your detailed reply.. my netbook is in the bedroom, turned off.. I (so far) only use it in the evening, in the bedroom.. I've saved your response, and will try your suggestions, and let you know if they solve the problem I described. I really appreciate you taking the time to post such a detailed reply..
I can't answer your Thunderbird "configuration" questions, because I'm in the living room, using the crap Vista laptop, on which I plan to install Thunderbird, and then take Windoze Mail out in the street and drive over it a few times.. I'll get back to you one way or the other, and let you know if your instructions solved the problem, or not..
I don't understand why Thunderbird "out of the box", so to speak, simply doesn't forward HTML emails with embedded graphics, (like Outlook Excess, and Winblows Mail do).. without having to go through those steps. I personally HATE HTML email, but over the years, it's become more and more prevelant.. so it's a problem I must fix..
Thanks again..
Harv.. -
Hi there,
I'm trying to send html mail with an image. I'm able to see the image but in another section, at the very bottom of my message. Is it possible to display the image in the main part of my message ?
Here my code :
MimeMultipart multi = new MimeMultipart();
BodyPart messageBodyPart = new MimeBodyPart();
String htmlText = <H1>Test</H1><img src=\"cid:image\">";
messageBodyPart.setContent(htmlText, "text/html");
multi.addBodyPart(messageBodyPart);
MimeBodyPart imagePart = new MimeBodyPart();
DataSource fds = new FileDataSource("C:\\Resources\\Templates\\logo.jpg");
imagePart.setFileName( "geologo.jpg" );
imagePart.setDataHandler(new DataHandler(fds));
imagePart.setHeader("Content-ID","<image>");
multi.addBodyPart(imagePart);
msg.setContent(multi);
Transport.send(msg);How many different e-mail clients have you tested that with?
-
Sending HTML email with SO_DOCUMENT_SEND_API1
Hi all,
I have implemented a function module to send HTML emails with SO_DOCUMENT_SEND_API1.
It works fine, but in every email I have at the end a CRLF which looks not very nice in MS Outlook.
It seems that this will be added to every email in addition to my HTML text.
Has anyone an idea how I can prevent this?
Thanks in advance for your help.
Best Regards,
MarcelHi Marcel,
not only you can, you should use CL_BCS for sending of email. Although I expect it to be not too different from the old functions, it points to the object oriented future of SAP/ABAP. At least it should run more stable and SAP recommends to use it as a replacement for old functions.
I came across one blog
[Sending HTML Email from SAP CRM/ERP|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3417300%29ID2058700050DB10227264795501776639End?blog=/pub/wlg/2273]
You may be careful with this one: Probably it's not exactly what you need.
The one I love most for its simplicity is this one
[Unknown thus unloved?|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3417300%29ID2058700050DB10227264795501776639End?blog=/pub/wlg/3443]
although it does not mention HTML - I think easy for you to adapt. Compared to functional SO_DOCUMENT.. approach the program will shrink.
If you want to understand the concepts behind, nobody explains it better than
[Thomas Jung: Sending E-Mail from ABAP - Version 610 and Higher - BCS Interface|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3417300%29ID2058700050DB10227264795501776639End?blog=/pub/wlg/789]
or - if you still feel unsafe in oo environment -
[Sending E-Mail from ABAP - Version 610 and Higher - BCS Interface|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3417300%29ID2058700050DB10227264795501776639End?blog=/pub/wlg/15408]
Happy coding!
Regards,
Clemens -
Sending an email with an image attachment
Hello
Basicly I want to send an email with an image as attachment.
The image is taken by the user in the same app.
It is an android app
This is the code i've got so far.
http://pastebin.com/wVDZsgHx
can anyone help me please
I've found out that you have to do it server side with php, but I have no idea how to begin with it.Hmmm, Permissions are messed up somewhere!?
Can you open to pic say in Preview, select All, Copy, 7 Paste into Mail? -
Hi,
I wish to send HTML emails with ODI but it seems not possible with the tool ODISendMail. Do you know a procedure to do it ?
Thank you very much for your answers.
Regards.Hello,
Thanks but this article decribes an other tool that I don't have in my version. Maybe is it possible to send me the procedure XML to import it ?
There is also a procedure available on the Oracle support (TRT_Send_Jython_HTML_Email.xml) but I don't know where I can download it... Do you ?
Thank you very much -
Send html email with image embedded
Hi Guys,
I want send an email using class CL_BCS.
Can someone please help me to tell me how can we send the email with image embedded in the body?
The image is stored in the mime repository and was uploaded through se78.
I have searched online but am not able to send it.
It will be great if someone has working code for this.
Regards,
Dhruv KashyapHi go to T-code : SMW0 -- To upload the images , after that you can find that entries in wwwparams table .
Refer this .
**************** - Display images (like company logo) on the selection-screen
In order to send it as email you have to add attachment type as BMP from you BCS class.
Just try you can . -
Outlook 2010 takes a long time to open emails with embedded images
Hello,
outlook 2010 on windows 7 both with latest updates applied. outlook is in online mode and the option "Don't download automatically in HTML email messages or RSS tiems" is not selected.
it takes a long time to open the message with an embedded picture: at 6 sec to open an image size of 75kb
When I open the same message in OWA no delays at all.
I am using Exchange server 2010 Sp2 and I already created new outlook profiles for the users affected. no changes.
Any ideas?Hi Aprylmsx,
According to your description, I recommend you refer to the following methods to troubleshoot the issue:
1. Please check if there is any anti-virus software on your client PC, if yes , please disable it and check the result.
2. Please check if there are any 3rd party add-ins in your outlook, if yes, please remove it and check the result.
In addition, How many users encounter this issue? a lot or just only you?
Best regards,
Niko
Niko Cheng
TechNet Community Support -
Emails with embedded image show only =20
I am seeing this issue across multiple iPhones with iOS 4.3.x and 5.0. It is very inconsistent. I have seen the same email go out to multiple users in a group and some can see the embedded image correctly while others only see the following in place of the image:
------_=_NextPart_002_01CC8F42.DA025060
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
=20
=20
=20
=20
This tells me the sender isn't formating the message in a way the recipient cannot read it. It seems to be an encoding issue. The email will display fine in various email clients but not on the iPhone. The same email can later be sent again and it will work fine.
The iPhones' email accounts are setup as IMAP and the mail server is running Exchange 2003. I'm sure this will go away once I upgrade the server to 2010 and use ActiveSync with an Exchange account instead of IMAP, but I need to make it work correctly for now.
Is anyone else experienceing this issue and if you are, what server, account type, iOS are you running?
Any help would be greatly appreciated.
Thanks!I have the same problem with FF 14.0.1 on a freshly reinstalled Win7 32:
I have a 100Mbps cable connection, but get a '''ridiculous 4-5 Mbps''' out of FF while the latest versions of Explorer and Chrome gives at least 75Mbps...
All tests have been done with virus protection on as well as off (the latter is something I loathe doing) and with two different speed tests, one of them being speedtest.net. The results are conclusive: The problem clearly rests with FF. So: What in Heavens name has happened to my longtime favvo browser? At the moment it is quite useless and I am at my wits end.
I don't particularly want to, but as of tonight I'm transferring all my bookmarks to Chrome as a hopefully temporary measure. -
Error in sending Notification email with Embedded CLOB message in the body
Hi,
Workflow version is : 2.6.3.5
Apps Version is 11.5.10.1
Oracle Database 9.2.0.5.0
I am embedding a CLOB message document attribute to my Notification
Message Body.
Everything works fine when I check my notifications in the "workflow worklist"
i.e. Oracle Apps. <Notifications> tab.
but the emails are not going to the users and below message is displayed in the
status monitor. (eventhough it displays below error - I can able to respond the notifications using the worklist and can able to COMPLETE the workflow process
successfully)
Please help me to resolve the below error, so that the Same notification which I am able to see using the workflow worklist should be sent to the user in email as embedded text.
NOTE: there is no problem with the Package XXDB_OKC_CONTRACTS_WF_PKG, as it is not changed and I even verified it before and after this error that this package is indeed in VALID status.
Workflow Errors: XXDBCAPR, SDA-10314
Failed Activity Send Approve_Reject Responce Notification
Activity Type Notice
Error Name WF_ERROR
Error Message [WF_ERROR] ERROR_MESSAGE=3835: Error '-20002 - ORA-20002: 2018: Unable to generate the notification XML. Caused by: 2020: Error when getting notification content. Caused by: ORA-04061: existing state of has been invalidated ORA-04061: existing state of package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" has been invalidated ORA-04065: not executed, altered or dropped package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" ORA-06508: PL/SQL: could not find program unit being called Wf_Notification.GetAttrClob(18841, MESSAGE_BODY, text/html) Wf_Notification.oldGetAttrC' encountered during execution of Generate function 'WF_XML.Generate' for event 'oracle.apps.wf.notification.send'. ERROR_STACK= WF_MAIL.GetLOBMessage3(18841, WFMAILER, 2020: Error when getting notification content. Caused by: ORA-04061: existing state of has been invalidated ORA-04061: existing state of package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" has been invalidated ORA-04065: not executed, altered or dropped package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" ORA-06508: PL/SQL: could not find program unit being called Wf_Notification.GetAttrClob(18841, MESSAGE_BODY, text/html) Wf_Notification.oldGetAttrClob(18841, MESSAGE_BODY, text/html) WF_NOTIFICATION.GetFullBody(nid => 18841, disptype => text/html) WF_MAIL.GetLOBMessage3(nid => 18841, r_ntf_pref => MAILHTML), Step -> Getting text/html body) WF_XML.GenerateDoc(oracle.apps.wf.notification.send, 18841) WF_XML.Generate(oracle.apps.wf.notification.send, 18841) WF_XML.Generate(oracle.apps.wf.notification.send, 18841) Wf_Event.setMessage(oracle.apps.wf.notification.send, 18841, WF_XML.Generate) Wf_Event.dispatch_internal()
Error Stack
thanks,
Shashi
NOTE: there is no problem with the Package XXDB_OKC_CONTRACTS_WF_PKG, as it is not changed and I even verified it before and after this error that this package is indeed in VALID status.Hi,
Below solution worked for us :
Whenever the document message related procedure is modified and compiled we need to STOP and START all the workflow related services,
Homepage -> Workflow Manager -> Service Components => STOP all Services => Start All Services
NOTE: Even when we bounced the database, application server the error is still occuring, only when we STOP and START the services whenever we compiled the document message procedures then the emails are getting processed.
The Metalink Forum note 588112.992 (ORA-04061: existing state of has been invalidated ORA-04061: existing state of package) is helpful in getting the solution Below is a snippet of the same :
From: David Hsu 01-Aug-05 20:06
Subject: Re : ORA-04061: existing state of has been invalidated ORA-04061:
existing state of package
Loren,
we had a similar ORA-04061 error when we tried to compile a Workflow package
after we modified it with new attributes. What we were told was that some
workflow process or listener is still "thinking" the package is invalid even
though it is valid. Whenever packages referred by the workflow process is
changed, the Agent listeners and mailer must be bounced. Worst case scenario
if the error still persist is that the database may have to be bounced as
well.
Please try bouncing the Agent listeners or, if it possible, bounce the
database and see if you are still getting the error after that.
The listeners that you need to bounce are all the listeners that you have
enabled under OAM > Workflow Manager > Service Components,
including the Workflow Notification Mailer.
Hope this helps thanks,
Shashi -
CLOB: Error in sending Notification email with Embedded message in the body
Hi,
Oracle Database 9.2.0.5.0
Workflow version is : 2.6.3.5
Apps Version is 11.5.10.1
I am embedding a CLOB message document attribute to my Notification
Message Body.
Everything works fine when I check my notifications in the "workflow worklist"
i.e. Oracle Apps. <Notifications> tab.
but the emails are not going to the users and below message is displayed in the
status monitor. (eventhough it displays below error - I can able to respond the notifications using the worklist and can able to COMPLETE the workflow process
successfully)
Please help me to resolve the below error, so that the Same notification which I am able to see using the workflow worklist should be sent to the user in email as embedded text.
NOTE: there is no problem with the Package XXDB_OKC_CONTRACTS_WF_PKG, as it is not changed and I even verified it before and after this error that this package is indeed in VALID status.
Workflow Errors: XXDBCAPR, SDA-10314
Failed Activity Send Approve_Reject Responce Notification
Activity Type Notice
Error Name WF_ERROR
Error Message [WF_ERROR] ERROR_MESSAGE=3835: Error '-20002 - ORA-20002: 2018: Unable to generate the notification XML. Caused by: 2020: Error when getting notification content. Caused by: ORA-04061: existing state of has been invalidated ORA-04061: existing state of package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" has been invalidated ORA-04065: not executed, altered or dropped package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" ORA-06508: PL/SQL: could not find program unit being called Wf_Notification.GetAttrClob(18841, MESSAGE_BODY, text/html) Wf_Notification.oldGetAttrC' encountered during execution of Generate function 'WF_XML.Generate' for event 'oracle.apps.wf.notification.send'. ERROR_STACK= WF_MAIL.GetLOBMessage3(18841, WFMAILER, 2020: Error when getting notification content. Caused by: ORA-04061: existing state of has been invalidated ORA-04061: existing state of package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" has been invalidated ORA-04065: not executed, altered or dropped package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" ORA-06508: PL/SQL: could not find program unit being called Wf_Notification.GetAttrClob(18841, MESSAGE_BODY, text/html) Wf_Notification.oldGetAttrClob(18841, MESSAGE_BODY, text/html) WF_NOTIFICATION.GetFullBody(nid => 18841, disptype => text/html) WF_MAIL.GetLOBMessage3(nid => 18841, r_ntf_pref => MAILHTML), Step -> Getting text/html body) WF_XML.GenerateDoc(oracle.apps.wf.notification.send, 18841) WF_XML.Generate(oracle.apps.wf.notification.send, 18841) WF_XML.Generate(oracle.apps.wf.notification.send, 18841) Wf_Event.setMessage(oracle.apps.wf.notification.send, 18841, WF_XML.Generate) Wf_Event.dispatch_internal()
Error Stack
thanks,
Shashi
NOTE: there is no problem with the Package XXDB_OKC_CONTRACTS_WF_PKG, as it is not changed and I even verified it before and after this error that this package is indeed in VALID status.Hi,
Below solution worked for us :
Whenever the document message related procedure is modified and compiled we need to STOP and START all the workflow related services,
Homepage -> Workflow Manager -> Service Components => STOP all Services => Start All Services
NOTE: Even when we bounced the database, application server the error is still occuring, only when we STOP and START the services whenever we compiled the document message procedures then the emails are getting processed.
Metalink Forum note 588112.992 (ORA-04061: existing state of has been invalidated ORA-04061: existing state of package) is helpful in getting the solution Below is a snippet of the same :
From: David Hsu 01-Aug-05 20:06
Subject: Re : ORA-04061: existing state of has been invalidated ORA-04061:
existing state of package
Loren,
we had a similar ORA-04061 error when we tried to compile a Workflow package
after we modified it with new attributes. What we were told was that some
workflow process or listener is still "thinking" the package is invalid even
though it is valid. Whenever packages referred by the workflow process is
changed, the Agent listeners and mailer must be bounced. Worst case scenario
if the error still persist is that the database may have to be bounced as
well.
Please try bouncing the Agent listeners or, if it possible, bounce the
database and see if you are still getting the error after that.
The listeners that you need to bounce are all the listeners that you have
enabled under OAM > Workflow Manager > Service Components,
including the Workflow Notification Mailer.
Hope this helps thanks,
Shashi -
PDF to html conversion with embedded images in java
hi all,
i want to convert any pdf file to its html equivalent. currently i am using PDFBOX java api to do that. it works fine with simple pdf files having no images, but if there are embedded images in pdf file then it do not show these images.
anyone who has clue of solving this problem. i can convert individual pdf pages to jpg pictures if all embedded images would also be in these pictures.
help me regarding pointers to other APIs, code snippets etc that can solve my purpose.
thanks in advanceHi..
really soorry i am not having any solution for u.
But i am having one problem regarding pdf box, i think u know pdf box, i am reading japanese file using pdf box, its giveing
caught a class java.io.IOException
with message: Unknown encoding for 'UniJIS-UCS2-H'
I have wrriten code like this.....
PDDocument pdfDocument = null;
PDFParser parser = new PDFParser( new FileInputStream(file));
parser.parse();
pdfDocument = parser.getPDDocument();
PDFTextStripper stripper = new PDFTextStripper();
String text = stripper.getText(pdfDocument);
reader = new StringReader(text);
Maybe you are looking for
-
I have a water damaged iphone 5c. I was thinking about taking it to the Apple store and paying the 269 dollar service charge for them to attempt to fix it. My question is: If they can't fix it, will they replace my phone for that $269 dollars, or wil
-
Hi , I am trying to use file adapter in OSB. My intention is the OSB should write a file in a specified location in my sytem. I have configured the Business Service with Messagin service in (general tab), request msg as text and response msg as none
-
HT3625 I don't have a "Use audio for:" menu in my system preferences
When I go to system preferences and try to follow all of the directions in the article, there isn't any menu or anything that says "Use audio for:" when I'm on the input tab of the sound preferences. How can I get my MBP use the audio input instead
-
Satellite A30 CDRW-DVDRW (Mat****a) drive can't recognize any dvd
Hi! I own a Satellite A30-303 with a optical drive MAT****A UJ811 (CDRW-DVDRW). Everything worked just fine until last week the drive stopped reading any DVD. A error message saying that there is some problem with E/S is displayed. CDs are recognized
-
Incorrect result of multiplication for quantity fields,coverting LB to KG.
Hi All, The requirement is to convert LB(pounds) to KG.The formula goes as follows. l_ntgew = vbap-kwmeng * w_mara-ntgew * l_zcazz . l_brgew = vbap-kwmeng * w_mara-brgew * l_zcazz . where kwmeng = '1' is ordered quantity,w_mara-ntgew = '0.1