I found that with mailx, I could either make an attachment OR pass a message. But, I could not do both. Because of the nature of my specifics, I often had more than one attachment. Thus, I created a loop to send all my attachment messages one-at-a-time, and then send a summary email.
I have been told that there are other mail utilities available for unix that can accomodate the attachment and message. Perhaps someone here can add the name(s) of other utilities. [Or, let us know how to get the syntax to work.]
Thanks joeyg for your solution.
But i found how to send the summary report and attachment in a single mail command,
Hi,
How to send an attachment of which the name contains the space.
Following is the command I tried.
metasend -b -s "test subject" -F "test@yahoo.com" -t "test@test.com" -f "test.txt" -m "text/plain" -n -f "test 123.txt" -m "application/xls"
If the file name contains no space,... (0 Replies)
Hi, I have searched the site for info on sending an attachment in Linux, have tried a few people mailx codes but to no success. Can someone please help me? This is what i have so far:
#!/bin/bash
user_mail_address="me@yahoo.com"
filename="attachment.txt"
body="This is the body"
mail -s... (6 Replies)
Hi,
I usually write a file TEST.MAIL like this to send mails:
Importance: High
Priority: Urgent
X-Priority: 1 (Highest)
From: user
Subject: error
... text body ....
and then I launch it (or writre a c-chell that launchs it) by writing:
mail a@b.com < /users/.../TEST.MAIL
How can... (4 Replies)
H All
I want to send attachment in mail but I dont have uuencode installed in AIX server,
there is any alternative way to send attachment in mail. (2 Replies)
Hi All,
I need to send mail with attachment. I am using uuencode but it seems it is sending encoded file. I am getting the mail with attachment but there is no data even the file size is almost 90KB. Please help.
Thanks. (3 Replies)
Hi All,
I am trying to send mail via unix and attaching file along with that mail, but facing issue while sending.
I have tried below commands-
1)-
uuencode $prmDirOutput/report_mailbody $prmDirOutput/report_mailbody | mailx -s "Acknowledgment file- $subject" $email_id
2)-
mutt -a... (4 Replies)
Hi,
I am trying to send log file of a job run in unix machince through sendmail.Though I am able to send the text but it is not sending as attachment.
Could you please look into the code and let me know where I have gone wrong
fdate=`date %Y%j`... (2 Replies)
Hi,
I need to send attachment with email as external attachment. Presently, we are using uuencode to make an attachment but it is going as content of body. We are using below command.
uuencode "filename1" "filename2" | mailx -r "$SENDFROM" ${SENDTO}
In unix box, -a is not supportable... (1 Reply)
Discussion started by: vamshi929
1 Replies
LEARN ABOUT CENTOS
reporter-mailx
REPORTER-MAILX(1) LIBREPORT MANUAL REPORTER-MAILX(1)NAME
reporter-mailx - Sends contents of a problem directory via email.
SYNOPSIS
reporter-mailx [-v] -d DIR [-c CONFFILE]
DESCRIPTION
The tool reads a problem directory, composes an email message from the directory contents, and uses mailx to send the message to specified
recipient.
Properties of email messages can be specified in a configuration file, and via environment variables.
Configuration file
Configuration file contains entries in a format "Option = Value".
The options are:
Subject
The subject of the email message.
EmailFrom
The sender of the email message.
EmailTo
The recipient of the email message.
SendBinaryData
Use yes/true/on/1 to attach all binary files from the problem directory to the email. This can cause the emails to be very large.
Integration with ABRT events
reporter-mailx can be used as a reporter, to allow users report problems via email when they decide to do it. This usage is pre-configured
in /etc/libreport/events.d/mailx_event.conf:
EVENT=report_Mailx reporter-mailx
It can also be used to notify administrator automatically when a problem happens. When this is desired, modify the event configuration file
to run the tool on the post-create event:
EVENT=post-create reporter-mailx
OPTIONS -d DIR
Path to problem directory.
-c CONFFILE
Path to configuration file. When used in ABRT event system, the file contains site-wide configuration. Users can change the values via
environment variables.
ENVIRONMENT VARIABLES
Environment variables take precedence over values provided in the configuration file.
Mailx_Subject
Subject of the email message.
Mailx_EmailFrom
Sender of the email message.
Mailx_EmailTo
Recipient of the email message. If nor the environment variable nor the corresponding option is defined, the message is send to
"root@localhost".
Mailx_SendBinaryData
Use yes/true/on/1 to attach all binary files from the problem directory to the email.
AUTHORS
o ABRT team
LIBREPORT 2.1.11 06/18/2014 REPORTER-MAILX(1)