Send email with cron and with accents

0

I want to send an email through a cron, the mail is testing to see what is wrong with other chronons that I have. I'm sending this concretely:

#!/bin/bash

cat /root/tareas/scripts/test/header.txt /root/tareas/scripts/test/facturas_a_gestionar.txt /root/tareas/scripts/test/footer.txt > /root/tareas/scripts/test/cuerpo.html;


DESTINATARIO="[email protected]";

ASUNTO="áéíóú ñ Ñ Facturas para gestionar";

mail -s "$(echo -e "$ASUNTO \nContent-Type: text/html")"  $DESTINATARIO  < /root/tareas/scripts/test/cuerpo.html

If I send it manually, that is, by stopping in the / root / tasks / scripts / test / folder and executing the ./test.sh command, the mail arrives perfect, with accents and ñ, but if I set it to automate it, it does not take me the Ñ nor the accents.

I was thinking that maybe it does not have the real location of something and that's why it can not be executed, that's why I put definite routes to everything, but I do not know what else I could do ... can you put a route to the < strong> mail ?

    
asked by JuanManuel245 07.09.2018 в 17:39
source

0 answers