I am trying to send an email body of information and also attachment using perl script, but I am only able to send the body but not an attachment. is there around it without using "use MIME::Lite;" module.
As a part of requirement I need to send out mails with attachment from UNIX. I have to take query the Oracle DB and send the result of the query in an attachment through mail.
I use the following script for the same.
#!/bin/csh
#!/bin/bash
#!/bin/ksh
ATTFILE=/folder1/test.xls
cd... (1 Reply)
Hi,
I want to send an email with multiple attachment using uuencode and mail command.
I am able to send with one attachment
Ex:uuencode abc.txt abc.txt | mail test@test.com -s "Test3"
Can anyone reply with syntax.
Regards
BS (3 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)
The file is located under appl/batchdata/
file name: storesales.txt
I am using following code because uuencode is not present. I am not getting the data in file but i am getting the blank file with same name as an email attachment.
( echo "from: sch@xxxx.com"
echo "to:sch@xxxx.com"
echo... (2 Replies)
Hi
Please help me how to send email attchment from linux server to outlook id
I dont have uuencode or mutt installed on my machine and below is my uname -a output:
Linux xxxxxxx 2.6.18-308.4.1.el5 #1 SMP Wed Mar 28 01:54:56 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux (7 Replies)
Hi All,
do we have any option for sending attachment with email except using uuencode and mutt, because if i use these utilities then i will have to install them separately which is not feasible at time.
please suggest on this. (2 Replies)
Hello experts!!
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:
(echo "subject:test";echo "MIME-Version: 1.0";echo "content-transfer-encoding:base 64";echo "content-type:txt;name=test.txt";cat... (2 Replies)
Hello,
I am trying to send a gzip file on email using below command but the zipped file received on email is corrupt.
mailsend -smtp $smtpip -content-type 'application/x-gzip' -mime-type "application/x-gzip" -t $receiver -f $sender -sub "$subject" -M "$MSG" -attach $file
file name is ... (1 Reply)
Discussion started by: tushar.modgil
1 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)