View as HTML

Hi all,

I have used next contribution (“AddHistoryToMail” 1) and it runs
perfectly :slight_smile:
My users’ problem they don’t want to see html code. In the correspond
mail appears: “acentuación”.

I have commented next line but the problem appears already.
“$content =~ s/<(([^ >]|\n)*)>//g; # strip HTML tags from text/html”

Do you know how I could resolve this?

Best regards,

Alberto Villanueva
Industria

C/Campezo, 1, Edificio 1
28022 Madrid, Spain
Tel : + 34 91 550 41 00
Fax: + 34 91 415 61 53

www.altran.es
www.altran360.es

Antes de imprimir este mensaje, aseg�rate de que es necesario. Proteger
el medio ambiente est� tambi�n en tu mano.
En cumplimiento de la Ley Org�nica 15/1999, con fecha 13 de diciembre,
de Protecci�n de Datos de Car�cter Personal, y la Ley 34/2002, con fecha
11 de julio, de Servicios de la Sociedad de la Informaci�n y de comercio
electr�nico, le comunicamos que su direcci�n de correo electr�nico forma
parte de un fichero del que es responsable Altran Espa�a, y que
garantiza la confidencialidad y seguridad de sus datos. Tiene usted
derecho al acceso, rectificaci�n y cancelaci�n de sus datos en los
t�rminos establecidos en la Ley Org�nica 15/1999 de Protecci�n de Datos
de Car�cter Personal y dem�s normativa concordante, dirigi�ndose a
nuestra direcci�n anteriormente se�alada o por medio de correo
electr�nico: comunicacion@altran.es.

AVISO LEGAL: Este mensaje, junto con cualquier fichero adjunto, est�
dirigido a su destinatario y es confidencial. Cualquier distribuci�n,
uso o reproducci�n sin consentimiento del remitente est� estrictamente
prohibido. Si ha recibido este mensaje por error, por favor proceda a
ponerlo en conocimiento del remitente por e-mail y a borrarlo de su
sistema sin realizar copias.

I have used next contribution (“AddHistoryToMail” 1) and it runs
perfectly :slight_smile:
My users’ problem they don’t want to see html code. In the
correspond mail appears: “acentuación”.

I have commented next line but the problem appears already.
“$content =~ s/<(([^ >]|\n)*)>//g; # strip HTML tags from text/html”

Do you know how I could resolve this?

You could try using $transaction->Content(‘text/plain’); to retrieve
the text plain copy of an email, but if the content is only available
in text/html then you’ll need to use one of the perl modules for
stripping html (like we use in our ScrubHTML component) plus something
to resolve html entities, which is what you’re actually running into.
Or you could send HTML mail rather than plaintext email.

-kevin