02-08-2002
mailx vs sendmail question
Folks:
I tried what LivinFree posted (fudged up MIME coding) but the only difference is
/usr/bin/mailx "shlomstein@yahoo.com"@mail <thisfil2
on the command line instead of
sendmail ${recip_adr} < mailfile
I'm getting no subject and the entire file in the body. Any ideas what I'm doing wrong? Will mailx work instead of sendmail? Do I need some flag set or something that tells mailx to use the MIME encoded file to get the subject body and attachments instead of what it's doing, which is assuming I have no subject and the entire thisfil2 is the body.
TIA,
Steve
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
We have been trying to get an email from unix to Lotus Notes to work. We finally got it to work with the following code:
cat filename | uuencode filename | mailx -s "subject title" email address
Now our problem is that Lotus Notes doesn't show the paper clip icon, indicating an attachment... (3 Replies)
Discussion started by: cowgilm
3 Replies
2. UNIX for Advanced & Expert Users
Hi,
I'am new in system administration, and I would like to send file from my UNIX machine running on Aix 4.3.3 to the Lotus Notes V5 mail of my colleagues .
So I heard about the sendmail command, but I don't know excatly how to use it for send my files .
Please if you have a idea, help me !!! (1 Reply)
Discussion started by: hugo
1 Replies
3. UNIX for Advanced & Expert Users
Does anyone know if you can run Notes on a SunBlade? This is the last program I need to completely get away from all MS boxes, if I can run my Notes on my Blade I won't need this ratty MS box!
Thanks!
JP (4 Replies)
Discussion started by: jpeery
4 Replies
4. UNIX for Dummies Questions & Answers
I am using mailx command to send automated emails from the Unix to Lotus notes. Recently we got a requirement to send all emails as encrypted emails. I am not sure how I can encrypt an email using unix. Please help!!
Thanks (3 Replies)
Discussion started by: Anamika
3 Replies
5. Shell Programming and Scripting
Hi,
is there any way Unix shell script can directly read a mail on a mail server
(Lotus notes) and save it as a text file in a unix directory ?
For eg mail can be at abc@xyz.com and the same should be stored at
home/script on def.com (0 Replies)
Discussion started by: misenkiser
0 Replies
6. Shell Programming and Scripting
Hi All,
I am currently using the following script to send the single file to one/more email addresses. I need to send mutilple files at same time, are there anyway I could modify the script or write new one to accomplish the same.
Script
***************
#!/bin/ksh
# Author: Manish... (4 Replies)
Discussion started by: lapisguy
4 Replies
7. Shell Programming and Scripting
Hi All,
We have requirement to send lotus notes email attachment to mutiple users.
Each user has a separate file name ,but the file name and mail id will be same
please help urgent
Thanks (2 Replies)
Discussion started by: gwrmk
2 Replies
8. Solaris
Hello,
I have tired the commands like below to send a email with an attachment to IBM lotus notes
uuencode filename filename | Mail -s "subject" addr
uuencode filename filename | mailx -s "subject" addr
uuencode filename filename | sendmail addr
All of three command work. But I can... (0 Replies)
Discussion started by: babykings
0 Replies
9. AIX
Hi,
I am new to UNIX and any help is greatly appreciated.
Requirement:
Need to check the directory and if the directory has some files then an email needs to be sent to the email ID on Lotus Notes.
I need help on sending an email to email ID on Lotus Notes notifying that the files... (3 Replies)
Discussion started by: neetutg
3 Replies
10. Shell Programming and Scripting
Hi,
is there any way Unix shell script can directly read a mail on a mail server
(Lotus notes) and save it as a text file in a unix directory ?
For eg mail can be at abc@xyz.com and the same should be stored at
home/script on def.com
Thanks in advance,
CD (2 Replies)
Discussion started by: cdprasad.ait
2 Replies
LEARN ABOUT SUSE
encode::mime::header
Encode::MIME::Header(3pm) Perl Programmers Reference Guide Encode::MIME::Header(3pm)
NAME
Encode::MIME::Header -- MIME 'B' and 'Q' header encoding
SYNOPSIS
use Encode qw/encode decode/;
$utf8 = decode('MIME-Header', $header);
$header = encode('MIME-Header', $utf8);
ABSTRACT
This module implements RFC 2047 Mime Header Encoding. There are 3 variant encoding names; "MIME-Header", "MIME-B" and "MIME-Q". The
difference is described below
decode() encode()
----------------------------------------------
MIME-Header Both B and Q =?UTF-8?B?....?=
MIME-B B only; Q croaks =?UTF-8?B?....?=
MIME-Q Q only; B croaks =?UTF-8?Q?....?=
DESCRIPTION
When you decode(=?encoding?X?ENCODED WORD?=), ENCODED WORD is extracted and decoded for X encoding (B for Base64, Q for Quoted-Printable).
Then the decoded chunk is fed to decode(encoding). So long as encoding is supported by Encode, any source encoding is fine.
When you encode, it just encodes UTF-8 string with X encoding then quoted with =?UTF-8?X?....?= . The parts that RFC 2047 forbids to
encode are left as is and long lines are folded within 76 bytes per line.
BUGS
It would be nice to support encoding to non-UTF8, such as =?ISO-2022-JP? and =?ISO-8859-1?= but that makes the implementation too
complicated. These days major mail agents all support =?UTF-8? so I think it is just good enough.
Due to popular demand, 'MIME-Header-ISO_2022_JP' was introduced by Makamaka. Thre are still too many MUAs especially cellular phone
handsets which does not grok UTF-8.
SEE ALSO
Encode
RFC 2047, <http://www.faqs.org/rfcs/rfc2047.html> and many other locations.
perl v5.12.1 2010-04-26 Encode::MIME::Header(3pm)