Home » Questions » Computers [ Ask a new question ]

Sending mail from the command line, in an automated way

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.

Asked by: Guest | Views: 315
Total answers/comments: 1
Guest [Entry]

"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 <myadress> -t <destination> -u <subject> -m <message> -a <pathtofile> -s <serveradress> -xu <username> -xp <password>"