Saturday, 5 January 2019

ubuntu - Sending mail from the command line, in an automated way


I want to be able to send a text file through an SMTP server of my ISP (port 25) to an email address on the internet, like my Office email address, or my GMail address. I have a basic Ubuntu 9.04 server setup on my DSL connection.


How can I use, say, Postfix, to send the .LOG file, on a bash script ? What would be the packages to install on that server, given it was never used to send email in the past ?


Thanks :-)



Answer



SendEmail seems like a nice tool for that. From what I get from the documentation it would be just a call like this:


sendEmail -f  -t  -u  -m  -a  -s  -xu  -xp 

No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...