Re: Embed picture in HTML email
Would hopefully be the same for the Mailer taglib. It's cool that Mozilla supports the cid stuff, maybe it's even some kind of published standard out there, and things like Notes and Groupwise might support it too [must think who I can mail to test *grin*]. Hen On Mon, 5 Apr 2004, Jason Lea wrote: Here is an example of how to do it with JavaMail API (not as an jsp tag) http://java.sun.com/developer/onlineTraining/JavaMail/exercises/MailHtml/ It seems mail clients like Outlook and Mozila Mail/Thunderbird (and probably other email clients that display html) can use the img src=cid:myattachmentname; instead of the server etc. It will look for the attachment with the Content-ID of 'myattachmentname' and display that. Henri Yandell wrote: You can't embed pictures in emails. You can have img src=foo etc in them, but the picture will be obtained from a server of some kind. Some mail clients [okay, Outlook is the only one I know of] allow for some proprietary xml-ish tags to be in your emails which will load resources from attachments. I usually send from Outlook to Pine to see this, but I'm sure there are ways to see what the html really looks like in Outlook. Save it or something. Anyway, you'll see lots of special tags that exist. I've never really played with them though. I'd definitely be interested in seeing any info which details the pseudo-library of extra tags that Outlook converses in, but have never really gone looking for them. Maybe it's possible to write a Java library for creating Outlook-HTML pages and then sending it as a mime-type that only Outlook responds to (?). We could then send 3 versions of every mail, plain-text, html and outlook-html. Just some thoughts... Hen On Mon, 5 Apr 2004, Edsard Vegter wrote: Hi, Using the JSP mailer tags, I can send an HTML emails. Now I'd like to to go one step further and have a picture in the email as well. Is it possible to embed a jpg of gif in the message??? And if so, how do I do this - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jason Lea - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Embed picture in HTML email
Chris, I can generate a perfect Go Gadget Go sample with what I have. But where do the pictures come into play? Your sample does not have and gif of jpg's in it. Have a look at my code (note I do not use core tags). Issue is that the picture is not showing when emailed to the user. What's the trick to get the picture in the email?? %@ taglib uri=http://jakarta.apache.org/taglibs/mailer-1.1; prefix=mt % mt:mail mt:servervincent/mt:server mt:setrecipient type=to%=FName % %=SName % %=Email %/mt:setrecipient mt:fromEdsard [EMAIL PROTECTED]/mt:from mt:subjectSubject here /mt:subject mt:message type=html html body h1 go go gadget legs /h1 img src=file:///C:/tomcat/webapps/monitor/picture.gif width=122 height=35 /body /html /mt:message mt:send pThe following errors occuredbr/br/ mt:error id=err jsp:getProperty name=err property=error/br/ /mt:error br/Please back up a page, fix the error and resubmit./p /mt:send /mt:mail Regards, Edsard McCormack, Chris [EMAIL PROTECTED] 06/04/2004 07:56 p.m. Please respond to Tag Libraries Users List [EMAIL PROTECTED] To Tag Libraries Users List [EMAIL PROTECTED] cc Subject RE: Embed picture in HTML email Its pretty simple from the docs included with mailer taglib but, heres how it works with some examples : First page is a simple html:form that collects the data. The javascript:validate() method on that page forwards on to another html page (the page that goes in to the body of your html email) which has these tags in : -- %@ taglib prefix=c uri=http://java.sun.com/jstl/core; % %@ taglib uri=http://jakarta.apache.org/taglibs/mailer-1.1; prefix=mail % mail:mail mail:serverc:out value=${mailhost} escapeXml=false //mail:server mail:fromc:out value=${sender} escapeXml=false / c:out value=${sender} escapeXml=false //mail:from mail:setrecipient type=toc:out value=${recipient} escapeXml=false //mail:setrecipient mail:subjectsubject here/mail:subject mail:message type=html html body h1 go go gadget legs /h1 /body /html /mail:message mail:send/ /mail:mail c:redirect url=nextPage.do / -- The user only sees the form page and nextPage.do and recieves a nice big 'go go gadget legs' in their email. Chris McCormack -Original Message- From: Edsard Vegter [mailto:[EMAIL PROTECTED] Sent: 05 April 2004 21:30 To: Tag Libraries Users List Subject: RE: Embed picture in HTML email Hi Chris, The emails from your web page work great. I still have trouble getting the desired result, would you be able to give me some simple sample code??? Regards, Edsard McCormack, Chris [EMAIL PROTECTED] 05/04/2004 08:01 p.m. Please respond to Tag Libraries Users List [EMAIL PROTECTED] To Tag Libraries Users List [EMAIL PROTECTED] cc Subject RE: Embed picture in HTML email I used the mailer tag lib to generate the email sent from this page : http://www.index.co.uk/rf/navigation/product.do?SN=versionid=723categoryid=149949126thisprod=179469156product=179469156D=189121345 click the button 'e-mail this item to a friend' on the middle right of the page and enter your details to receive the mail. It sends html including css and images etc. The trick is to generate a normal html page and then send the built page as the body part of the mailer tag. Chris McCormack -Original Message- From: Henri Yandell [mailto:[EMAIL PROTECTED] Sent: 04 April 2004 23:28 To: Tag Libraries Users List Subject: Re: Embed picture in HTML email You can't embed pictures in emails. You can have img src=foo etc in them, but the picture will be obtained from a server of some kind. Some mail clients [okay, Outlook is the only one I know of] allow for some proprietary xml-ish tags to be in your emails which will load resources from attachments. I usually send from Outlook to Pine to see this, but I'm sure there are ways to see what the html really looks like in Outlook. Save it or something. Anyway, you'll see lots of special tags that exist. I've never really played with them though. I'd definitely be interested in seeing any info which details the pseudo-library of extra tags that Outlook converses in, but have never really gone looking for them. Maybe it's possible to write a Java library for creating Outlook-HTML pages and then sending it as a mime-type that only Outlook responds to (?). We could then send 3 versions of every mail, plain-text, html and outlook-html. Just some thoughts... Hen On Mon, 5 Apr 2004, Edsard Vegter wrote: Hi, Using the JSP mailer tags, I can send an HTML emails. Now I'd like to to go one step further and have a picture in the email as well. Is it possible to embed a jpg of gif in the message??? And if so, how do I do
RE: Embed picture in HTML email
I used the mailer tag lib to generate the email sent from this page : http://www.index.co.uk/rf/navigation/product.do?SN=versionid=723categoryid=149949126thisprod=179469156product=179469156D=189121345 click the button 'e-mail this item to a friend' on the middle right of the page and enter your details to receive the mail. It sends html including css and images etc. The trick is to generate a normal html page and then send the built page as the body part of the mailer tag. Chris McCormack -Original Message- From: Henri Yandell [mailto:[EMAIL PROTECTED] Sent: 04 April 2004 23:28 To: Tag Libraries Users List Subject: Re: Embed picture in HTML email You can't embed pictures in emails. You can have img src=foo etc in them, but the picture will be obtained from a server of some kind. Some mail clients [okay, Outlook is the only one I know of] allow for some proprietary xml-ish tags to be in your emails which will load resources from attachments. I usually send from Outlook to Pine to see this, but I'm sure there are ways to see what the html really looks like in Outlook. Save it or something. Anyway, you'll see lots of special tags that exist. I've never really played with them though. I'd definitely be interested in seeing any info which details the pseudo-library of extra tags that Outlook converses in, but have never really gone looking for them. Maybe it's possible to write a Java library for creating Outlook-HTML pages and then sending it as a mime-type that only Outlook responds to (?). We could then send 3 versions of every mail, plain-text, html and outlook-html. Just some thoughts... Hen On Mon, 5 Apr 2004, Edsard Vegter wrote: Hi, Using the JSP mailer tags, I can send an HTML emails. Now I'd like to to go one step further and have a picture in the email as well. Is it possible to embed a jpg of gif in the message??? And if so, how do I do this - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] *** This e-mail and its attachments are confidential and are intended for the above named recipient only. If this has come to you in error, please notify the sender immediately and delete this e-mail from your system. You must take no action based on this, nor must you copy or disclose it or any part of its contents to any person or organisation. Statements and opinions contained in this email may not necessarily represent those of Littlewoods. Please note that e-mail communications may be monitored. The registered office of Littlewoods Limited and its subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB. Registered number of Littlewoods Limited is 262152. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Embed picture in HTML email
I'm not quit sure but for this a servlet solution would be more convenient, as the JSP engine standard opens/uses a Printwriter ? Anyhow a writer that you can't use for outputting pictures, you should use one for streaming. The point is that you cannot downgrade the standard writer of the JSP engine, to one that handles pictues. Harry van Rijn Edsard Vegter wrote: Hi, Using the JSP mailer tags, I can send an HTML emails. Now I'd like to to go one step further and have a picture in the email as well. Is it possible to embed a jpg of gif in the message??? And if so, how do I do this - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Embed picture in HTML email
Return Receipt Your Re: Embed picture in HTML email document : was Edsard Vegter/akl/nz/geniesystems received by: at: 06/04/2004 07:56:20 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Embed picture in HTML email
Hi Chris, The emails from your web page work great. I still have trouble getting the desired result, would you be able to give me some simple sample code??? Regards, Edsard McCormack, Chris [EMAIL PROTECTED] 05/04/2004 08:01 p.m. Please respond to Tag Libraries Users List [EMAIL PROTECTED] To Tag Libraries Users List [EMAIL PROTECTED] cc Subject RE: Embed picture in HTML email I used the mailer tag lib to generate the email sent from this page : http://www.index.co.uk/rf/navigation/product.do?SN=versionid=723categoryid=149949126thisprod=179469156product=179469156D=189121345 click the button 'e-mail this item to a friend' on the middle right of the page and enter your details to receive the mail. It sends html including css and images etc. The trick is to generate a normal html page and then send the built page as the body part of the mailer tag. Chris McCormack -Original Message- From: Henri Yandell [mailto:[EMAIL PROTECTED] Sent: 04 April 2004 23:28 To: Tag Libraries Users List Subject: Re: Embed picture in HTML email You can't embed pictures in emails. You can have img src=foo etc in them, but the picture will be obtained from a server of some kind. Some mail clients [okay, Outlook is the only one I know of] allow for some proprietary xml-ish tags to be in your emails which will load resources from attachments. I usually send from Outlook to Pine to see this, but I'm sure there are ways to see what the html really looks like in Outlook. Save it or something. Anyway, you'll see lots of special tags that exist. I've never really played with them though. I'd definitely be interested in seeing any info which details the pseudo-library of extra tags that Outlook converses in, but have never really gone looking for them. Maybe it's possible to write a Java library for creating Outlook-HTML pages and then sending it as a mime-type that only Outlook responds to (?). We could then send 3 versions of every mail, plain-text, html and outlook-html. Just some thoughts... Hen On Mon, 5 Apr 2004, Edsard Vegter wrote: Hi, Using the JSP mailer tags, I can send an HTML emails. Now I'd like to to go one step further and have a picture in the email as well. Is it possible to embed a jpg of gif in the message??? And if so, how do I do this - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] *** This e-mail and its attachments are confidential and are intended for the above named recipient only. If this has come to you in error, please notify the sender immediately and delete this e-mail from your system. You must take no action based on this, nor must you copy or disclose it or any part of its contents to any person or organisation. Statements and opinions contained in this email may not necessarily represent those of Littlewoods. Please note that e-mail communications may be monitored. The registered office of Littlewoods Limited and its subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB. Registered number of Littlewoods Limited is 262152. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ForwardSourceID:NT293E
Embed picture in HTML email
Hi, Using the JSP mailer tags, I can send an HTML emails. Now I'd like to to go one step further and have a picture in the email as well. Is it possible to embed a jpg of gif in the message??? And if so, how do I do this
Re: Embed picture in HTML email
You can't embed pictures in emails. You can have img src=foo etc in them, but the picture will be obtained from a server of some kind. Some mail clients [okay, Outlook is the only one I know of] allow for some proprietary xml-ish tags to be in your emails which will load resources from attachments. I usually send from Outlook to Pine to see this, but I'm sure there are ways to see what the html really looks like in Outlook. Save it or something. Anyway, you'll see lots of special tags that exist. I've never really played with them though. I'd definitely be interested in seeing any info which details the pseudo-library of extra tags that Outlook converses in, but have never really gone looking for them. Maybe it's possible to write a Java library for creating Outlook-HTML pages and then sending it as a mime-type that only Outlook responds to (?). We could then send 3 versions of every mail, plain-text, html and outlook-html. Just some thoughts... Hen On Mon, 5 Apr 2004, Edsard Vegter wrote: Hi, Using the JSP mailer tags, I can send an HTML emails. Now I'd like to to go one step further and have a picture in the email as well. Is it possible to embed a jpg of gif in the message??? And if so, how do I do this - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Embed picture in HTML email
Here is an example of how to do it with JavaMail API (not as an jsp tag) http://java.sun.com/developer/onlineTraining/JavaMail/exercises/MailHtml/ It seems mail clients like Outlook and Mozila Mail/Thunderbird (and probably other email clients that display html) can use the img src=cid:myattachmentname; instead of the server etc. It will look for the attachment with the Content-ID of 'myattachmentname' and display that. Henri Yandell wrote: You can't embed pictures in emails. You can have img src=foo etc in them, but the picture will be obtained from a server of some kind. Some mail clients [okay, Outlook is the only one I know of] allow for some proprietary xml-ish tags to be in your emails which will load resources from attachments. I usually send from Outlook to Pine to see this, but I'm sure there are ways to see what the html really looks like in Outlook. Save it or something. Anyway, you'll see lots of special tags that exist. I've never really played with them though. I'd definitely be interested in seeing any info which details the pseudo-library of extra tags that Outlook converses in, but have never really gone looking for them. Maybe it's possible to write a Java library for creating Outlook-HTML pages and then sending it as a mime-type that only Outlook responds to (?). We could then send 3 versions of every mail, plain-text, html and outlook-html. Just some thoughts... Hen On Mon, 5 Apr 2004, Edsard Vegter wrote: Hi, Using the JSP mailer tags, I can send an HTML emails. Now I'd like to to go one step further and have a picture in the email as well. Is it possible to embed a jpg of gif in the message??? And if so, how do I do this - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jason Lea - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]