above syntax did not through any error...but when i see my email..it does not have an attachment in it and body of my email having some unwanted characters..
seems uuencode proplem..not able to understand ..since its quite urgent..to make correction in my script as well..
No, it's only example - some textfile including some text = message body. Attachment is some binary file.
Previous only example how nice method HERE is to make ex. mail template.
Try it, easy to see result.
You need only sendmail binary - somewhere = give the path
and shell ex. bash, ksh, dash, ... Operating system - select some.
If you have old Bourne Shell, nothing else, then you must write command substitution using old format
$( cmd ) => ` cmd `
Hi Folks
I have below code, which is able to successfully send the content of the output file as html which is body, but i did tried uuencode & mailx -a for sending attachments but to no avail.
cat - ${Output_File} <<EOF| /usr/sbin/sendmail -oi -t
#From: ${MAILFROM}
To: ${MAILTO}
Subject:... (5 Replies)
Hello people,
I only have sendmail and uuencode on a Oracle (RH) linux server.
While:
/usr/bin/uuencode awr.html awr.html | /usr/sbin/sendmail myemail@company.com
Is working fine,
the ideal for me is to do something like:
echo "To: me@company.com" > /home/vasilis/msg.txt
echo "Subject: DB... (3 Replies)
Send_Mail()
{
C_Date=`date +"%m/%d/%Y"`
#Subject="MMDB Load Job Status"
for i in `cat $Metafile`
do
if
then
email_address=`echo $i | cut -d":" -f2`
/usr/lib/sendmail "$email_address" < $Email_File
fi
done
}
this is the send mail command i am using .please let me... (1 Reply)
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)
dear all
I have below function which send an email, but if I need to add an attachement it won't work instead it write some jibberish to body of the email
begin 644 SIGN_OFF_AP_20120626.csv
M4TE'3E]/1D9?4TA%150L351-7T1!5$4L0D]/2RQ35$%455,L5D%25%E012Q#
%3U5.5`H`
`
end
function... (6 Replies)
I have an HTML file I am currently sending in the body of an email. I now have a need to send a csv attachment along with it. I can ONLY use sendmail as mutt and xmail etc are not on the server.
Here is what I am currently using: It is possible to add code to add an attachment ??!?
{
... (8 Replies)
Hello,
i am sending email with following command.
The problem is the attachment is displayed as inline text instead of a file attached to email. What should i do?
I don't have chance to install new binaries to the server (SunOS)
( \
echo From: Sender ; \
echo Subject: Testing ; \... (1 Reply)
Hi,
This is my first thread.
Iam trying the following:
OS: Sun
Database: DB2, Informix, Oracle
* Get the status of the database (using database command line options)
* pipe to a text file
* send mail of the text file to receiptents.
TODO1:
First step i tried to send a test message.... (3 Replies)
Hi,
I use the sendmail command to send automatic e-mail in my control programs,
but I'd like to know if there's a non interactive way to send an attachment,
like a small text file through sendmail command. I didn't find a way in the man, so anyone has already done it?.. give an example for the... (4 Replies)