Sending MIME messages, using Perl, with a ksh Script
By popular demand, here's how to send email using Perl with MIME attachments. I used to include a PDF attachment but my users are happier with plain text, so I haven't tested the $top->attach statement, but it's close. Caveat programmer.
Last edited by mschwage; 11-20-2005 at 09:58 PM..
Reason: coding error...
I am trying to write a shell script using the mailx command. My problem is that I want to send an email address in the CC: field. What option can I use with mailx to accomplish this. Any help would be very appreciative. (1 Reply)
Is there any way that I can mailx to a distribution list without having a $HOME/.mailrc file?
We have a distribution list in Outlook for our group say group@something.com.
I am trting to do echo "Something"|mailx -s "Subject" group@something.com
it doesnt work
Any ideas?
Thanks (1 Reply)
If I use the "Mail" link instead of the "mail" link to ../mailx I get this error.
Mail so-n-so @whatever.com
mailx: NUL changed to @
Unknown command: "postmaster"
The email still goes through but i get the error.
If I use "mail" it goes thru without the error.
Any ideas?? (2 Replies)
Hi,
Thanks in Advance !!
I have a korn script which is used to mail the reports to the users.
I'm using the mailx utility. The uid used for running the script is "cronman",
so the mails recieved by users are id FROM:"cronman".
Now i want to change the FROM address to another user name... (2 Replies)
I would like to get a solution ..
how can i attach more than one file to a mail using mailx
yep........ sure
if test.dat is the file
cat test.dat|uuencode test.dat|mailx -s "subject" mailid
can be used for attaching test.dat
how can we attach
test1.dat and test2.dat (4 Replies)
We are using mailx to send email alerts. On occasions, it is updating our Distribution list with the mesage content.
The following is the relevant portion of the script :-
MAILGROUP=`more $MDS/feeds/alerts/distribution.lst`
export MAILGROUP
echo " " | mailx -s "MDS Alert - Refresh Complete"... (6 Replies)
hi,
I am working on a ksh script and i want to be able to send a email using mailx.
if ] || ]
then
echo "send email"
mailx -s "Subject goes here" <email address>;
fi
thats what i have so far, in place of "<email address>" I have my actualy email address and I want to add a body with... (6 Replies)
My data is something like shown below.
date1 date2 aaa bbbb ccccc
date3 date4 dddd eeeeeee ffffffffff ggggg hh
I want the output like this
date1date2 aaa eeeeee
I serached in the forum but didn't find the exact matching solution. Please help. (7 Replies)
Hi All,
Can anyone please provide the command for sending an mail with attachment using mailx command.
Thanks in Advance :)
Regards,
Siram. (3 Replies)