01-29-2009
Quote:
Originally Posted by
Mike_the_Man
When I send it over email, the file does open properly.
Perhaps you meant something else?
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I have written the following code send multiple attachments using mailx
(uuencode file1 file1; uuencode file2 file2; uuencode file3 file3;) | mailx -s MultipleAttachments -r Sysadmin abc@xyz.com
The attachments are coming properly if the file1,2,3 are either pdf, text, doc. But if these files... (2 Replies)
Discussion started by: ramanam2004
2 Replies
2. Shell Programming and Scripting
Hi Everyone,
I have a question related to using MIME::Lite module in perl.Below i mentioned code blocks used for sending mail through MIME::Lite.
$msg = MIME::Lite -> new (
From => $from,
To => $to,
Subject... (0 Replies)
Discussion started by: DILEEP410
0 Replies
3. Shell Programming and Scripting
Hello,
I'm a newbie perl scriptor and i'm trying to figure out why i can't send an email using MIME::Lite with Net::SMTP. I keep receiving the following error:
SMTP MAIL command failed:
5.7.1 Helo invalid .
at attach1.pl line 31
The error keeps coming from the very last line... (2 Replies)
Discussion started by: xmaverick
2 Replies
4. HP-UX
Hello.
I need to send mails from hp-ux with 2 attachments: a text file and an excel file. So I'm composing a mime file which I will pipe to sendmail utility.
This works fine if the only attachment is the text file (i use cat command to attach text content). But I have problems with the format... (3 Replies)
Discussion started by: elcampio
3 Replies
5. Shell Programming and Scripting
Hi,
I am using the below code for sending attachment in UNIX but only blank attachment is coming in email even the content is not coming.
Please help!!!
export CONTENT="${DIR}/${RUN_DATE}_mailbody.txt"
export SUBJECT="Search Result for Pattern - ${1}"
export ATTACH=${2}
(
echo... (9 Replies)
Discussion started by: rajesshh
9 Replies
6. Shell Programming and Scripting
Hi all,
i'm using the pearl package MIME::Lite zu send eMails via sendmail. I have the problem, that in the "Received From" part oft the email header occure the user and the hostname of my machine. I'd like to have a name or an email address instead of that:
Received: from... (0 Replies)
Discussion started by: andi25
0 Replies
7. Shell Programming and Scripting
#!/bin/ksh
(
echo "MIME-Version: 1.0"
echo "Content-Type: multipart/mixed; boundary=frontier"
echo "--frontier"
echo "Content-Type: text/html"
echo "Content-Disposition: inline"
echo "\n"
echo "<html><body><h1>this is html formatted text</h1></body></html>"
echo "--frontier"
echo... (1 Reply)
Discussion started by: thulasidharan2k
1 Replies
8. Shell Programming and Scripting
Hi All,
i have a code, where that script is sending mail to the users, but i want to enhance
it, i.e i need to add attachment(zip file) to that, i dont want to use MIME:LITE module or any other module, with this simple code, i need to enhance.
below is my code
my %mail_params = (HTML ... (13 Replies)
Discussion started by: asak
13 Replies
9. Shell Programming and Scripting
Hi All,
I just need to send an email using MIME protocol from perl script. The data of an email should be a HTML table(contains some datas). I just tried to send a normal text which is working fine whereas if i insert HTML tags i am getting errors. I just tried like below
$mail_host =... (3 Replies)
Discussion started by: prasanna2166
3 Replies
10. UNIX for Beginners Questions & Answers
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 SUSE
mimecheck
mimecheck(1) Check MIME attachments mimecheck(1)
NAME
mimecheck - determine the type of the MIME encoded of an attachment
mimezip - detect the type of MIME encoded zip archive in an attachment
mimebzip - detect the type of MIME encoded bzip2 data in an attachment
mimegzip - detect the type of MIME encoded gzip data in an attachment
SYNOPSIS
mimecheck boundary [file]
mimezip boundary [file]
mimebzip boundary [file]
mimegzip boundary [file]
DESCRIPTION
The scripts mimecheck, mimezip, mimebzip, and mimegzip can be used to determine the contents of MIME encoded attachments of the type appli-
cation/octet-stream. The scripts require the boundary as provided in the headers and/or bodys of mails with enclosed attachments. The
scripts read from standard input if no file was provided and write out the detected MIME type to standard out.
EXAMPLE
A short filter rule used by procmail(1) to check for DOS executables in MIME encoded zip archives found in many attachments:
BLANK="[ ]+"
TYPE="${BLANK}multipart/(alternative|mixed)"
:0
* $ ^Content-Type:${TYPE};(${BLANK}|$)*boundary=["']?[^ "';]+
{
BOUNDARY="${MATCH}"
TYPE=""
:0 B
* $ ^Content-Transfer-Encoding:${BLANK}base64
{
TYPE=`mimecheck ${BOUNDARY}`
:0
* TYPE ?? application/x-zip
{
TYPE=`mimezip ${BOUNDARY}`
}
}
:0
* TYPE ?? executable.*DOS
* TYPE ?? DOS.*executable
/dev/null
}
there is no guarantee that this piece of a procmailrc(5) file will work.
SEE ALSO
procmailrc(5), file(1), sed(1), mimencode(1).
COPYRIGHT
2007 SuSE LINUX Products GmbH, Nuernberg, Germany,
2007 Werner Fink.
AUTHORS
Werner Fink <werner@suse.de>.
3rd Berkeley Distribution Juni 28, 2007 mimecheck(1)