commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From itay sahar <itay.sa...@gmail.com>
Subject Re: org.apache.commons.mail.HtmlEmail setText problem
Date Tue, 30 Jun 2009 22:33:41 GMT
well, 1.2 is much better cause it's works...* great thanks.*One more
question about the images and HtmlEmail :

I would like to add few pics to the content using the <img src".....
I succeed only by link to the website resource:
http://mydomain.com/mail/images/logo.gif
When i tried the embed functionality with the convention:
<img src=\"cid:"+cid+"\"></html>
email.embed(new URL(http://mydomain.com/mail/images/logo.gif), "logo"))
 The images sent as attachment which isn't what i need. (in the button of
the email)

Am I missing something or just use the first way:
(<img src="http://mydomain.com/mail/images/logo.gif" ...>)

Thanks



On Tue, Jun 30, 2009 at 9:49 PM, Siegfried Goeschl <
siegfried.goeschl@it20one.at> wrote:

> Hi,
>
> the commons-email-1.1 release features some HTML email layout problems
> ... ;-)
>
> I would recommend using the current release candidate found under
>
>
> http://people.apache.org/builds/commons/email/1.2/RC2/staged/commons-email/commons-email/1.2/
>
> Please give some feedback if the current implementation solves your
> problem (or not) ....  ;-)
>
> Cheers,
>
> Siegfried Goeschl
>
> itay sahar wrote:
> > Hello all,
> > I've recently added commons-email-1.1 to tomcat lib dir.
> > I've succeed sending Html message by using setHtmlMsg(...) method to a
> Gmail
> > email address.
> > please note that this was done without using the setText(...) method.
> >
> > I've also notice that when i use both setHtmlMsg(..) and setText(...) i
> see
> > only the text even though
> > Gmail support html email messages.
> > So now setText(...)  is in comment. So what else is needed so i could
> > combine this two
> > functions to work together.
> >
> > Thanks
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message