Skip to main content

Questions tagged [mail-command]

The mail, Mail and mailx command line utilities

2 votes
1 answer
53 views

I want to send the content of file.txt as the body and file.png as attachment. I only have mail cli (mail (GNU Mailutils) 3.10). No other software package can be installed, so Mutt is out of the ...
Oliver Henriot's user avatar
1 vote
0 answers
123 views

I'm trying to send an email with an attachment using the command mail but neither option -a nor -A works. With -a: echo "Please, find attached the report" | mail -s "Report" -r &...
Cristina P.'s user avatar
0 votes
0 answers
224 views

How do we add email classification onto mail command on Linux? I'm currently using the following command: mail -s "$(echo - e " Test\From:abc\nContent-Type: text/html")" -S -smtp=&...
Victor D'Souza's user avatar
0 votes
1 answer
998 views

I am trying to run a bash to send emails from my linux server. I am using the following command: echo "This is the message body" | mail -s "This is the subject line" -a "From: ...
user3165121's user avatar
0 votes
1 answer
782 views

Install a simple SMTP client: sudo apt install msmtp msmtp-mda Set in msmtprc :: cat .msmtprc account default host smtp.qq.com from [email protected] auth on tls on tls_certcheck off user [email protected] ...
showkey's user avatar
  • 601
0 votes
1 answer
321 views

#!/bin/bash df -m > myfile server_ip_address=$(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1) if awk '$2 &...
achhainsan's user avatar
0 votes
0 answers
1k views

I'm trying to host a postfix mail server.I have a box with a fixed IP and also a mx record and spf record that link my box IP to my dns record. I can telnet to alt4.gmail-smtp-in.l.google.com 25 but ...
I_md_ou's user avatar
4 votes
1 answer
204 views

I've been using SSTMP on a local FreeBSD machine to send stuff like the output of certain cron jobs to my "real" main email account, which is not hosted on the same machine (or even domain). ...
Bob Vesterman's user avatar
0 votes
1 answer
305 views

I try to see the raw data of a mail that I sent with mail -s "My Subject" [email protected]. Is it possible, if so, how? Expected output is similar to: From: "root" <root@example....
Martin Braun's user avatar
0 votes
0 answers
37 views

I am trying to migrate a certain script from AIX to Linux and having issues with the mail functionality. The rest of the script works fine, but the mail function is sending encoded mails with no ...
Preeti Maurya's user avatar
3 votes
1 answer
5k views

Does anybody on this planet know what the equivalent GNU mailutils command to the following looks like? Is this even possible without a local MTA with mailutils? Using s-nail it works as intended. s-...
Booker B's user avatar
  • 171
0 votes
0 answers
781 views

I have a shell script I want to email me when a particular command fails and send along the error message. Either it doesn't send an email at all, or it sends an email with an attachment named ...
Chanel's user avatar
  • 109
1 vote
1 answer
754 views

I am using the mail command from mailutils on Ubuntu Linux 20.04. I am using it to send documents automatically to a service on the web which processes them. They provide an email address to which you ...
crobar's user avatar
  • 253
0 votes
1 answer
84 views

Explanation: I'm playing a little bit with a script this one helps notifying to user about SSL certificate expiration. If certificate has less than 30 days to expires, this will notify to user, if isn'...
Mauricio Reyes's user avatar
0 votes
1 answer
50 views

How to increase the width of listings in mail command prompt? Especially the message listing with the command h. The current listing is truncated at 80 characters as showing below: $ mail Mail [5.2 ...
Luciano's user avatar
  • 1,189

15 30 50 per page
1
2 3 4 5
9