Was wondering what this annoying thing was on my SD card. And I couldn't remove the spotlight stuff even with sudo! Very annoying, honestly. The link writes about what all those hidden directories are and what they do.
A very nice fellow by the name of Peter Hosey wrote a simple, quick, small python script to send mail to an SMTP server. He mentions it
here on Stack, which is where I found it. I've used it successfully on macos where I couldn't get mail/sendmail to work. (On Linux I always just use sendmail without issue.)