#!/bin/sh

CLIENT="$1"
echo $CLIENT
echo `grep -v 'email;' "/var/scripts/export_auto/export_$CLIENT.csv" | wc -l  | cut -d' ' -f1` lignes >> corps_mail

mutt -s "Export test" -a "/var/scripts/export_auto/export_$CLIENT.csv" -- aymen@webmediarm.com < corps_mail
