If you setup your machine to do postfix or sendmail then you can send e-mails
from the command line. Also use a script. Even for this gmail account.
I am not getting into the details of configuration. OpenBSD developer
Gilles Chehade is
developing a SMTPD implementation but it will take around 6 more months I think.
There is still a lot more work to do.
For now please stick to Postfix or Sendmail. Both are bad. Postfix
does not have a good license
and sendmail is too complex. Exim of course is worse.
Anyway this is what you need to do to send mail assuming that your MTA
does its job.
$ mail -s subject god@xxxxxxxxxxxx < /dev/null
This will send an empty e-mail.
With mutt you can send attachments from the command line like this:
$ mutt -a /tmp/attach.pdf -s "testing attachments" recipient@xxxxxxxxxx
You also have nail which is very powerful. I have never used it.
-Girish
--
Gayatri Hitech
web: http://gayatri-hitech.com
SpamCheetah Spam filter:
http://spam-cheetah.com