Thanks i used instead HtmlMail and setCharSet works perfect

li ling wrote:

> I found there is a setCharset function in Email.java, but there's not a
> constant defined in it for your charset.
>
> Just try:
>
> se.setCharset("iso-8859-7");
>
> ----- Original Message -----
> From: [EMAIL PROTECTED] (Skondras Panagiotis)
> Date: Tuesday, May 29, 2001 8:38 pm
> Subject: Email
>
> > Hi
> > My question is this i want to send  an email with SimpleEmail from
> > Turbine
> > all the TR are set correct in iso-8859-7
> > but i want some string to appear in Greek "iso-8859-7" my code is this
> > String t1=new String ("Greek Characters");
> > String t2=new String ("Greek Characters".getBytes("iso-8859-7"));
> > String t3=new String ("Greek Characters".getBytes("iso-8859-1"));
> > email_body=t1+t2+t3;
> > //I Try everything
> >
> > Criteria crit = new Criteria();
> >        crit.add ( Email.SENDER_EMAIL, sender_email );
> >        crit.add ( Email.SENDER_NAME, sender_name );
> >        crit.add ( Email.RECEIVER_EMAIL, receiver_email1 );
> >        crit.add ( Email.RECEIVER_NAME, "" );
> >        //crit.add ( Email.RECEIVER_EMAIL,receiver_email2);
> >        crit.add ( Email.EMAIL_SUBJECT, "Test" + email_subject );
> >        crit.add ( Email.EMAIL_BODY, email_body );
> >        crit.add( Email.TEXT_HTML,true);
> >            SimpleEmail se = new SimpleEmail(crit);
> >            se.addTo(receiver_email2,"");
> >            se.send();
> >
> > When i send it nothing appears in Greek it appears  like this
> > ?????????????????????
> > Any suggestions
> >
> >
> >
> > -------------------------------------------------------------------
> > --
> > 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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to