simple program to send an email

Peter Flynn peter at silmaril.ie
Fri Jun 14 22:21:57 UTC 2019


UCB Mail is also fine: make the script write the mail text to a file and then

$ /usr/bin/mail -s "subject" recipient at host <filename

(or use a pipe). Sendmail offers more features: prepare the text with the 
To/From/Subject headers (separated from the body by a blank line) and then:

$ /usr/sbin/sendmail -vt <filename

Peter

On 14 June 2019 22:42:49 David Fletcher <dave at thefletchers.net> wrote:

> On Fri, 2019-06-14 at 14:25 -0700, Bob wrote:
>> I do not need an emai MTA on my system I only want to send an email
>> from a
>> script to my hosted email server.  Are there any simple programs that
>> a
>> program/script could use to send an email and retry until it is
>> delivered?
>
> And SendEmail works brilliantly for me. I'm calling it using a system
> call from a C++ programme which does my home written reminders system.
>
> Dave F
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: 
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users







More information about the ubuntu-users mailing list