10 More Discussions You Might Find Interesting
1. 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
2. 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
3. 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
4. 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
5. 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
6. 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
7. 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
8. 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
9. 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
10. 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