Solicito ayuda para poder enviar un correo en UNI
Publicado por Leticia Vargas Méndez (1 intervención) el 19/01/2007 22:55:39
Mi nombre es Leticia Vargas, programo en Oracle en una universidad y envío correos a los estudiantes por medio de Unix . Yo creo un archivo texto con instrucciones de unix e inserto un proceso en el cron para que se ejecuten estas instrucciones. Se envían archivos por attach y mensajes texto, solo que ahora necesito enviar por correo al mismo tiempo un mensaje de texto en el cuerpo y un archivo por attach.
Las instrucciones que tengo trabajan separadamente.
1) adjunta texto al mensaje
mail -s "prueba" [email protected] < detalle.txt
cat detalle.txt | mail -s "prueba" [email protected]
2) envía un archivo por attach
uuencode carta.txt carta.txt | mail -s "hola" [email protected]
mpack -s ''subject'' carta.txt [email protected]
ALGUIEN CONOCE SI EXISTE ALGUNA FORMA DE EFECTUAR LAS DOS OPERACIONES EN EL MISMO ENVÍO?
Yo hice algunas pruebas pero no me funcionan: (si manda eL mensaje no manda el archivo por attach y viceversa)
cat detalle.txt | mpack -s ''subject'' carta.txt [email protected]
mpack -s ''subject'' carta.txt [email protected] < detalle.txt
Muchas Gracias,
Leticia Vargas
Costa Rica
Las instrucciones que tengo trabajan separadamente.
1) adjunta texto al mensaje
mail -s "prueba" [email protected] < detalle.txt
cat detalle.txt | mail -s "prueba" [email protected]
2) envía un archivo por attach
uuencode carta.txt carta.txt | mail -s "hola" [email protected]
mpack -s ''subject'' carta.txt [email protected]
ALGUIEN CONOCE SI EXISTE ALGUNA FORMA DE EFECTUAR LAS DOS OPERACIONES EN EL MISMO ENVÍO?
Yo hice algunas pruebas pero no me funcionan: (si manda eL mensaje no manda el archivo por attach y viceversa)
cat detalle.txt | mpack -s ''subject'' carta.txt [email protected]
mpack -s ''subject'' carta.txt [email protected] < detalle.txt
Muchas Gracias,
Leticia Vargas
Costa Rica
Valora esta pregunta


0