Questions tagged [mailx]

Mailx is a unix mail processing system that provides sending and receiving facility.

Mailx is an intelligent mail processing system, which has a command syntax reminiscent of ed(1) with lines replaced by messages.

Attachments, cc and bcc are well supported with mailx command.

References

  1. Unix manpage
  2. Some examples
237 questions
-1
votes
1 answer

Setup Mailx command in linux

Set up for mailx command in Linux to send mail is done by using following code snippet in /etc/mail.rc ` set smtp=XXX.XXX.XXX.XXX set from=XXX@xxx.com set password=XXXXXXXX ` So I can send mail successfully but the problem is I can not…
Prem Joshi
  • 139
  • 1
  • 7
-1
votes
1 answer

Send mail in php script with attachment on Ubuntu server

I want to send a mail with attachments using php script on Ubuntu. I have tried mutt, mailx but they all work at local terminal when I execute them using shell_exec() they arr not working. Plz help me Ps :- I am beginner dnt have much knowledge…
-1
votes
2 answers

Amazon AWS EC2 Instance Email Not Being Received

If I SSH into my instance and send email to my Gmail account: echo "Test." | mail -r "myuser@gmail.com" -s "Subject Test" myuser@gmail.com I'll receive the email. However, if I do the same command but send it to my Hotmail account, I don't receive…
GTS Joe
  • 3,612
  • 12
  • 52
  • 94
-1
votes
1 answer

CFG Error email receiving every 5 minutes from Zabbix on Unix server

I have configured sSMTP on myzabbixserver Unix system which successfully delivers Zabbix alerts via Gmail. Strangely I am receiving an email in my Gmail inbox (which I am using as From address for sSMTP config) EVERY 5 minutes with following…
theGeekster
  • 6,081
  • 12
  • 35
  • 47
-1
votes
1 answer

Is it possible to automatically save mailx emails?

I would like to automatically save incoming emails to separate files. I am using mailx to read emails. I understand I can manually save specific emails by entering the mailx command prompt and using the save command (i.e. $ save email_number…
-1
votes
2 answers

Get only file name from find command and mail

The following find command will results multiple files and send mail all those find /home/cde -ctime -1 -name "Sum*pdf*" -exec uuencode {} {} \; |mailx -s "subject" abc@gmail.com but I am getting attachments like "homecdeSum123.pdf" and…
Aravind
  • 59
  • 8
-2
votes
0 answers

Bash script error - SMTP server value is an invalid alias name'"

I have a Bash Script to send email which is excuted via Kubernetes CronJob but when the job runs the email is not being sent as in the error log below : kubectl -n labs logs send-mail-28210503--1-grtpv bin dev mail.sh etc home lib media mnt opt…
Golide
  • 835
  • 3
  • 13
  • 36
-2
votes
3 answers

mail bash variable on a new line

echo $d produces output below which is separated by new line after each ';' REVOKE ALL ON URI 'hdfs://nameservice/data/ed_bos_reporting_stg' FROM ROLE ed_bos_reporting; REVOKE ALL ON URI 'hdfs://nameservice/data/fq' FROM ROLE ed_edw_telephony_rw;…
TheNewGuy
  • 559
  • 1
  • 10
  • 27
-2
votes
1 answer

Sending email only if two counts don't match and execute a separate script in Perl

I am working on a script written in perl that compairs a current_count of IP address and compares it with an expected count. Currently if current count == normal count then print the word good... if current count does not equal normal count then…
-2
votes
1 answer

Testing file content

I need help for bash scripting I have a folder with log files(number may vary) I have to test those files for content and if one or more of those files has content, I want to send the content by mail (I use mailx) being formatted like so: The…
-2
votes
4 answers

Multiplication in shell script while sending mail using mailx

mailx -s "Report for $DATE_TENDAYS_FORMAT1" -r uname@host.com uname@host.com <
arsenal
  • 23,366
  • 85
  • 225
  • 331
-4
votes
1 answer

How to insert name field in mailx

My sample data File is $ cat /fullpath/myfile.csv a@gmail.com, A Singh k@gmail.com, K Singh I am using script.sh #!/bin/bash while IFS= read -r line do email=$(echo $line | awk -F, '{print $1 }') name=$(echo $line | awk -F, '{print $2…
Pro Coder
  • 71
  • 6
1 2 3
15
16