You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by itay sahar <it...@gmail.com> on 2009/06/30 18:48:05 UTC
org.apache.commons.mail.HtmlEmail setText problem
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
Re: org.apache.commons.mail.HtmlEmail setText problem
Posted by itay sahar <it...@gmail.com>.
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
>
>
Re: org.apache.commons.mail.HtmlEmail setText problem
Posted by Siegfried Goeschl <si...@it20one.at>.
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