I am trying to send an email with message body and attachment.but i am getting any one like message body or attachment.
I tried below command:
when I tried this, I am getting attachment.
so for message body i tried the below command,
I got in attachment "cat /path/test.txt" this line. I read all unix forums and tried commands but didn't work.
please suggest me I want to send message body along with attachment using sendmail command.
Last edited by vbe; 05-01-2017 at 11:21 AM..
Reason: code tags
Hi,
Can some one help me with the syntax of the mailx that should send an attachment and also some text in the message body together.
When I am using the following syntax it is not sending the attachment but only the message body.
unix2dos -ascii $REPORTFILE | uuencode $PCFILE | mailx -s... (7 Replies)
I'm trying to script sending an e-mail message on an AIX 5.x server with the following requirements:
1. command line switch to specify file name containing message body in HTML format
2. command line switch to specify file name of a binary attachment
3. command line or input file to specify... (4 Replies)
hi
plz help me in sending a mail with some data in body and an attachment as some txt file.
currently i am able to send mail with some body content, i need an example how to send the same along with attachment.
thanks in advance
-bali (2 Replies)
Hi,
We have been trying to send mail with attachment and it is going fine, but when we try to attach a text to the body of the email, we find that the mail is going fine with the body text but the attachment is not going through. We are using ksh.
The command that is successfull without the... (6 Replies)
Hi
I want to able to attach a file to a email and send it with a body
the body of the email is within the "body" file, and the attachment in "atch"
if i send like below it will send the email correctly
/usr/sbin/sendmail me@you.com< body
And when i send the attachment alone... (3 Replies)
Hi,
I am trying to send email with attacment and body using "mailx"
(cat body.txt; uuencode attach.txt) | mailx -s "Attachment" abc@xyz.com
When i type this command, the shell is still waiting for me to enter something in standard input and press control D before it sends a mail and... (2 Replies)
i have to attach the 'body in the email' along with attachment below code is throwing errors, how can i do it ?
here body file contains message, it should display in email, please help
i am using HP-UX
(cat body ;) (uuencode attch1 attch1 ;) | mailx -m -s "testing" "abc@gmail.com"
... (4 Replies)
Hi,
Im having a bit of an issue with using the uuencode command and sending out an email.
My aim is to send an email out which has a body and also have attachments. Currently I can either get one or the other and not both on the same email.
uuencode... (4 Replies)
Hi All,
In my .ksh script, I am sending an email with body and attachment (.txt) using sendmail command. I am able to receive the attachement along with the body of the mail. But I am getting special characters along with the content in the .txt. Also the alignment is incorrect. Can you please... (7 Replies)
I am making use of the following code to display the results of my txt file in an email:
mail -s 'Count Validation Test Comparison Results' Ronit@XYZ.com < Count_Validation_Results_`date +%m%d%Y`.txt
Email Output:
----------Query 1 Count Validation Results--------
Source count is 4
Target... (7 Replies)
Discussion started by: ronitreddy
7 Replies
LEARN ABOUT DEBIAN
lr_getbody
LR_GETBODY.IN(1) LogReport's Lire Documentation LR_GETBODY.IN(1)NAME
lr_getbody - Extract file, sender and subject information from an email
SYNOPSIS
eval `lr_getbody [-c content-type] <messagefile>`
DESCRIPTION
lr_getbody reads an email message on stdin (or specified as argument), will extract the submitter address and the subject from that email.
It will also extract the biggest attachment or the first one having a content-type matching the content-type argument.
This information is passed to the caller by printing that information in a format suitable for eval. The following variable will be printed
on STDOUT:
lr_getbody_SUBMITTER
Email address of the submitter. That is the first email that is found in the headers (searched in the following order): Reply-To, From,
Sender. This will only contains the address portion (without the <>).
lr_getbody_TO
The email address to which the email was sent.
lr_getbody_SUBJECT
Subject of the message. That string is sanitized.
lr_getbody_DATE
The date of the message. That string is sanitized.
lr_getbody_FILE
Path to the temporary file holding the found attachment.
lr_getbody_OK
This will be set if the operation was completed successfully. It is possible for lr_getbody to fail to extract the attachment, but the
header information might still be available.
This script is used by lr_processmail(1) and lr_rawmail2mail(1).
VERSION
$Id: lr_getbody.in,v 1.10 2006/07/23 13:16:33 vanbaal Exp $
COPYRIGHT
Copyright (C) 2002 Stichting LogReport Foundation LogReport@LogReport.org
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with
http://www.gnu.org/copyleft/gpl.html.
AUTHOR
Francis J. Lacoste <flacoste@logreport.org>
Lire 2.1.1 2006-07-23 LR_GETBODY.IN(1)