Some days ago I asked this yet� Everybody say that I must create a multipart message, and others show the content of a message�. Does anyone have a piece of code that show this ??? Thanks in advance, Sergio Stateri Jr [EMAIL PROTECTED] Tesla Tecnologia Sao Paulo (SP) -----Mensagem original----- De: A mailing list for discussion of the JavaMail(tm) API [mailto:[EMAIL PROTECTED]]Em nome de Leon Spencer Enviada em: Segunda-feira, 17 de Julho de 2000 18:16 Para: [EMAIL PROTECTED] Assunto: Re: how to send a mail which contend is a html text with IMG tag! ! You should be able to use multipart/related with a nested type of multipart/alternative. Using a Content-ID for each part of the multipart/alternative and having the first part be your HTML page. The HTML page would have to reference images and etc using the Content-ID. See the RFC for multipart/related. You can use tags, but this will not allow you to send the image along with the data. Leon > -----Original Message----- > From: Patrick Wibbeler [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 17, 2000 8:45 AM > To: [EMAIL PROTECTED] > Subject: Re: how to send a mail which contend is a html text with IMG > tag!! > > > Yes, you definitely do have to set the img tags to reference > the internal > parts of the message. Wish I actually had source to share, > but I've never > actually done this, just thought about how to do it ;-). > > Patrick > ----- Original Message ----- > From: "wkw" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, July 17, 2000 6:35 AM > Subject: Re: how to send a mail which contend is a html text > with IMG tag!! > > > > I'll add to this some knowledge I gleamed from looking at > how Netscape > mail > > sends these types of messages. In addition to setting up > the structure > > Patrick outlined below, I'm pretty certain you'll have to > rewrite the > <IMG> > > links within the html to reference the embedded images. As > I recall, it > had > > something to do with using the Content-ID. For example: > > > > <img SRC="cid:[EMAIL PROTECTED]" > height=48 width=48 > > align=CENTER> > > > > .... > > --------------7CD0CCA1072EF70978F08F9D > > Content-Type: image/gif > > Content-ID: <[EMAIL PROTECTED]> > > Content-Transfer-Encoding: base64 > > Content-Disposition: inline; filename="C:\TEMP\nsmailQN.gif" > > ..... > > > > You'll find his second suggestion of putting the multimedia > objects on a > > publicly-accessible web site and referencing them there, > much easier I > > suspect. > > > > -wayne > > > > on 7/14/00 12:04, Patrick Wibbeler at [EMAIL PROTECTED] wrote: > > > > > You'll need to create a "multipart/related" message. One > of the parts > will > > > be the HTML part which refers to the other parts which are the img > parts. > > > You can see an example of what the structure looks like by sending > yourself > > > a message with stationary in Hotmail and looking at the > message source > that > > > comes through (Excite Inbox allows you to view the > message source, as > does > > > Outlook Express). > > > > > > An RFC that contains information about multipart/related > messages is > > > available at http://www.faqs.org/rfcs/rfc2387.html . You > might want to > > > contain the multipart/related message within a > multipart/alternative > > > structure, and provide a text/plain part as an > alternative for agents > that > > > can't display html or multipart/related messages. The > structure might > look > > > like: > > > > > > multipart/alternative > > > text/plain > > > mulitpart/related > > > text/html > > > image/gif > > > image/gif > > > > > > Still another way to accomplish this is to make the HTML > link to images > on a > > > webserver somewhere and then assume that the person > viewing the mail is > > > connected to the internet and that the agent that > displays text/html > will > > > fetch images in the img tag. > > > > > > Hope this helps. > > > > > > Pat > > > > > > ----- Original Message ----- > > > From: "lys" <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Sent: Thursday, July 13, 2000 10:12 PM > > > Subject: how to send a mail which contend is a html text > with IMG tag!! > > > > > > > > >> Hi, > > >> > > >> Does anyone know how to send mail which content is a html text > > > with IMG tag? > > >> When i do this. i can receive and review the html text .But the > > > .gif file can't been found. > > >> It is urgent for me. > > >> > > >> Thanks a lot > > >> > > >> finlay > > >> > > >> > > >> Regards, > > >> lys > > >> [EMAIL PROTECTED] > > >> > > >> > > > > > ============================================================== > ============= > > To unsubscribe, send email to [EMAIL PROTECTED] and > include in the > body > > of the message "signoff JAVAMAIL-INTEREST". For general > help, send email > to > > [EMAIL PROTECTED] and include in the body of the message "help". > > > > ============================================================== > ============= > To unsubscribe, send email to [EMAIL PROTECTED] and > include in the body > of the message "signoff JAVAMAIL-INTEREST". For general > help, send email to > [EMAIL PROTECTED] and include in the body of the message "help". > =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVAMAIL-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help". =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
