10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hello, I am new to the Unix thing, and I am having trouble sending attachments via shell client putty through mailx.
The command I use is
$ mailx -s "Subject" firstname.lastname@example.org < attachment.txt
but everytime I do that it would say Cannot open attachment.txt
I have the file save to my computer... (5 Replies)
Discussion started by: mrobin20
I need help with mailx. When I run the below mailx command, it works fine because the exit code is fine, and the message is sent to /usr/mail/<id>
echo "This is a test message" | mailx -s "Test" <my email address>
My question is, how do I get it to reach my email address (on outlook... (2 Replies)
Discussion started by: ChicagoBlues
3. Shell Programming and Scripting
Hi i am trying to send a csv file as an attachment via mail from linux.
i am using the below script.
echo "X-Mailer: htmlmail" $VERSION
echo "Mime-Version: 1.0"
echo 'Content-Type: multipart/mixed; boundary="-q1w2e3r4t5"'
echo "Content-Type: text/html; charset=US-ASCII"... (1 Reply)
Discussion started by: mohanalakshmi
4. Shell Programming and Scripting
We have a requirement to send multiple attachment(pdf and csv) along with html content in a single mail. For that we are using uuencode. It is working for single pdf attachment and html content. But we are unable to send both pdf and csv attachment with html content. Below is the script.... (5 Replies)
Discussion started by: dholea
5. Shell Programming and Scripting
I need to send a variable value in the script through mailx. Please find the script below but its not working.
agents=`grep "Tot Agents " snapshot.dbm`
if (( $? == 0 )); then
mailx email@example.com $agents
fi (3 Replies)
Discussion started by: db2cap
6. Shell Programming and Scripting
I am using the below code to send mail through a script which run as a cron job.
msgdate=`date +"%a, %e %Y %T %z"`
!)... (2 Replies)
Discussion started by: ahamed
How can I check to see how/why my mailx program is not sending?
/var has enough room.
---------- Post updated at 08:48 AM ---------- Previous update was at 08:35 AM ----------
I tested the mailx to send with this command:
echo "This is going to be body of the mail" |mailx... (1 Reply)
Discussion started by: tfort73
8. Shell Programming and Scripting
I have two files . One file contains log record and another file contains emailids which is supposed to send it users
Name : abc_xyz_data.txt
Which contains log record
File 2 :
Name : abc_xyz_mailids.txt
Which contains emailids.
I... (4 Replies)
Discussion started by: orabalu
9. Shell Programming and Scripting
while trying to send a mail, though the output file doesn't contain any exclamatory mark(!), i am getting that in the mail with an extra line. please help me out from this ASAP. (3 Replies)
Discussion started by: pvamsikr
10. UNIX for Dummies Questions & Answers
can i know how to use mailx to send email to my lotus email account?
i wan to send a file in a directory as an attachment and then email to lotus.
can show me the command line to do it? thanks a lot (1 Reply)
Discussion started by: legato