Can anybody suggest a simple utility for sending emails from the command line, which I could incorporate in a shell script, please?
I'm trying to replicate what I use in Windows, which looks like this:
mailsend1.19 %from% %to% %subject% %message% %server% %security% %user% %password%
So I need to specify details of the form:
from=me@mydomain.com
to=you@yourdomain.com
subject="subject text string"
message="message text string"
server=smtpserver@mydomain.com
security= ssl port=465 -auth
smtp_user=me@mydomain.com
smtp_password=<mypassword>
Thanks.
Graham J wrote to alt.os.linux <=-
From Newsgroup: alt.os.linux
Can anybody suggest a simple utility for sending emails from the
command line, which I could incorporate in a shell script, please?
I'm trying to replicate what I use in Windows, which looks like this:
mailsend1.19 %from% %to% %subject% %message% %server% %security% %user% %password%
So I need to specify details of the form:
from=me@mydomain.com
to=you@yourdomain.com
subject="subject text string"
message="message text string"
server=smtpserver@mydomain.com
security= ssl port=465 -auth
smtp_user=me@mydomain.com
smtp_password=<mypassword>
Thanks.
I tried this as a search
linux administrator command line email
And this is an intro. of that sort of thing.
https://www.digitalocean.com/community/tutorials/send-email-linux-command-line
Some more examples.
https://devopswithamol.medium.com/mastering-email-from-the-linux-command-line-a-developers-guide-97c839f3404c
Paul wrote:
[snip]
I tried this as a search
linux administrator command line email
And this is an intro. of that sort of thing.
https://www.digitalocean.com/community/tutorials/send-email-linux- >> command-line
The digitalocean site repeatedly flashes its cookie acceptance dialog
and is unuseable. This is with both Firefox and Chrome.
Some more examples.
https://devopswithamol.medium.com/mastering-email-from-the-linux-
command-line-a-developers-guide-97c839f3404c
I tried to install mailutils. It failed to tell me that I had to use
the <tab> key to navigate the configuration (rather than up/down or
simply <enter> but having discovered the <tab> key was useful the configuration appeared to complete OK.
I can invoke it, with either:
or
mail.mailutils
and in both cases I see:
Cannot open mailbox /var/mail/graham: no such file or directory.
... well, obviously, I don't want a mailbox.
Man mail is voluminous but doesn't give any useful examples.
I suspect it's too sophisticated for my needs. Is there something
simpler that I can install on Mint?
| Sysop: | DaiTengu |
|---|---|
| Location: | Appleton, WI |
| Users: | 1,135 |
| Nodes: | 10 (0 / 10) |
| Uptime: | 154:09:32 |
| Calls: | 14,543 |
| Calls today: | 1 |
| Files: | 186,451 |
| D/L today: |
8,220 files (2,789M bytes) |
| Messages: | 2,568,857 |