Pular para o conteúdo principal

Mass Mailer v0.3

Recentemente precisei fazer um script para enviar um email para uma quantidade considerável de pessoas (spam, hehe). Como funcionou maravilhosamente, resolvi postar o dito cujo aqui para. Quem sabe ele pode ser útil para mais alguém...

#!/bin/bash

# Mass Mailer v0.3 script by seckt0r :)
# o script depende de um servidor de email e
# o mutt devidamente instalado e configurado.
#
# www.tiangola.com

# lista de emails
lista_email=/caminho/lista


# título do email
titulo="Assunto"


# cabeçalho (From: )
cabecalho="cabeçalho desejado"


# mensagem a ser enviada
msg=/caminho/mensagem


for email in `cat $lista_email`
do
rm ~/.muttrc
echo "my_hdr From: $cabecalho <$email>" ~/.muttrc
mutt -s "$titulo" $email < $msg 2> erros.log
done

Comentários

Postar um comentário

Postagens mais visitadas deste blog

Learning everything

Today I came across Liz Krane  on Google Plus - the girl that want's to learn everything. She reminded me of a idea for a project I had (that unfortunately never came out of my brain) that basically consists on a study of what is required in order to make Angola a better country. Basic things like education and related project, not tampered statistics generation, etc. If I remember correctly, the idea was to establish a period (maybe 1 year) and break that in parts so I would attack on problem at time so at the end of that period (year) a proper proposal for a better country could be presented. So, of course, like Liz, I don't know everything... no one does. But the beauty of this is exactly to learn and cross reference with other people about a give subject and try to come to practical  conclusions. In the process teach other people. ...Maybe I revive this idea. Along others I had when I was younger :) You can get more details on Ms. Krane project in her page .

Managing your money for free

So... today I took some time to finally decide (at least for the timebeing) between the two major - for me - options for personal financial management: Quicken (paid) and GNUCash (free). GNUCash I have installed and in use for a while and regarding functionality is just great. The problem is just... it is not that good looking. So I gave Quicken a shot . Downloaded a 'trial' version from my favorite usenet repository  and I was ready for the tests. Quicken is nice looking and can generate nice reports - which I like a lot. It has options to plan budgets and other nice little things and can become handy. In fact I was almost opting for Quicken until I realized one little thing missing: it cannot handle transactions with different currencies in the same account; and GNUCash does that like a charm :D. Kudows for the community work. That's it. Free Software 1 x 0 Paid Software :P. And I'm a proud user and supporter of Free Software. Related articles Whats th

Novo Avatar [Parte II]

O primeiro modelo na nova geração de avatar está pronto :D Vamos esperar para ver o feedback .