Android add style css and html

0

I am sending a message on the android.

But I want to send it with style, someone knows how to make me get the css or html. this is the code:

BackgroundMail.newBuilder(this)
                    .withUsername("[email protected]")
                    .withPassword("****")
                    .withMailto("[email protected]")
                    .withSubject(" Reporte Nueva carrera --  NUMERO DE VOUCHER " + idSolicitudFin)
                    .withBody( "<html><p style='color:blue;'>Hola EsStackoverflow</p></html>"+ "NUMERO DE VOUCHER ="+ idSolicitudFin)
                    .withOnSuccessCallback(new BackgroundMail.OnSuccessCallback() {
                        @Override
                        public void onSuccess() {
                            //do some magic
                        }
                    })
                    .withOnFailCallback(new BackgroundMail.OnFailCallback() {
                        @Override
                        public void onFail() {
                            //do some magic
                        }
                    })
                    .send();

If someone can help me thanks,

a .withBody is the one I want to give the style to

    
asked by Andres Pèrez 18.11.2018 в 23:28
source

0 answers