subversion info
Monthly Archives: January 2014
Sending Email With Attachments From Unix / Linux Command
If you need to send an email with a text file (or binary file) as attachment using shell script or command prompt in Unix or Linux; try mutt – a terminal-based e-mail client for Unix-like systems.
Send emails with attachements from the Linux command line.
If you are like me and you are running your Raspberry Pi headless, and don’t want to start up X windows to send a simple email. You are in luck, as this can easily be done from the command line. And it is very easy to setup.
Mutt with SSMTP
Here is how you set up Mutt without a working sendmail or exim installation. Most linux boxes I work with already have some kind of mail transfer agent installed by default, so I never really had to do this. My cygwin install on the other hand only had a bare bones, minimalistic ssmtp application that …
Send Mail with Gmail and sSMTP
Sometimes we want to enable our servers/desktops to be able to send email without setting up a full featured mail server or configuring postfix to route through Gmail.
Sending Email Alerts Through Cron
Cron is the Linux task scheduler that is responsible for making sure scripts run at their specified times. Cron is often used for things like, log rotation, backup scripts, updating file indexes, and running custom scripts. In the event a task runs into problems or errors Cron generally tries to email the local administrator of …