You are making the entire body of the email, the attachment. If you edit the received email and input the body to uudecode, you will get your original text.
Search "email attachment" in this forum, there are lots of examples.
Thanks i figured it out...
but now it messes up by text.txt file...the output has some squares and stuff like that.... any idea how to get rid of that ??
Last edited by methyl; 02-10-2012 at 11:17 AM..
Reason: code tags
I've written a a script which generates a report file, saved to a unix directory. I need to transfer it, via email, to some users. The command I'm using in my script is:
(note that subject & cur_address are set in the script prior to this line)
cat /u/sandyl/sm_o_commdt_archive/c | uuencode... (3 Replies)
I've written a a script which generates a report file, saved to a unix directory. I need to transfer it, via email, to some users. The command I'm using in my script is:
(note that subject & cur_address are set in the script prior to this line)
cat /u/sandyl/sm_o_commdt_archive/c | uuencode... (3 Replies)
Hi,
I have a syntax for mail attachment as
$EMAIL "Wrapper $wrapper_script_name has failed" " $wrapper_script_name has Failed " $failed_email_address
and $EMAIL is as below
MSGSub=${1}
MSGText=${2}
RMAIL=${3}
#set LANG=''
export LANG=''
echo "${MSGSub}" | mailx -s "${MSGText}" ... (1 Reply)
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.
$user = "bataf\@xyz.com";
$subjectt = "mail from perl";
open(MAIL, "| mailx -s... (1 Reply)
Hi All,
I want to send a file as an attachment through cron job.Is this possible using cronjob nd if it i, can you please let me know how to do this?
Thanks (2 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)
I am looking for a method that would allow me to replace an existing file with one from an email attachment. Any way of scripting this, so when an email comes in from a particular email id, it takes the attached file, and replaces an existing file. (4 Replies)
I am looking for a method that would allow me to replace an existing file with one from an email attachment. Any way of scripting this, so when an email comes in from a particular email id, it takes the attached file, and replaces an existing file. (6 Replies)
Hi, I am trying to email a .dat file as an attachment from unix MS-outlook.
I tried uuencode but it is not attaching the file, rather it is placing some junk data in the body of mail. Below is my code
(cat Message.txt; uuencode Attach_File.DAT Attch_File.DAT) | mailx -s "SUBJECT"... (12 Replies)
I have a shell script that runs on our webserver logs, and grabs various useful data and then outputs this data to a .csv file.
What I want to do now is schedule a cronjob to run this script for me each week at a designated time, AND email the .csv file that is created as an attachment to... (1 Reply)
Discussion started by: xdawg
1 Replies
LEARN ABOUT DEBIAN
pygm2n
pygm2n(1) Python Gateway mail to news pygm2n(1)NAME
pygm2n - Python Gateway mail to news
SYNOPSIS
pygm2n -n newsgroups [ -s newsserver ] [ -h ]
DESCRIPTION
IMPORTANT: this man page is to be continued. The Whole pyg gateway is in devel. state. try -h option for more detailed option.
pygm2n reads from stdin an email, sending it to newsgroups, a comma separated list without spaces of newsgroup names (at least one), rfc799
compliant.
If pygm2n reads from stdin a sigle line starting with /, it is considered an absolute path to a single-email mailbox, so pygm2n will open
and read it.
Note that now pyg can't read a real mailbox, with many emails. If you give it in input, pyg will post the whole mailbox as a single email.
EXAMPLES
There is some documetation in /urs/share/doc/pyg
I created mailgate user (moderator of local.moderated ng). Subscribe to a list with this user (or simply email one message to). Every
email posted to this user will send to newsgroups, in its .procmailrc I've put something like:
:0 bh * ^From *mailinglist-request@lists.debian.org | $HOME/pygm2n -n local.debian.mailinglist
AUTHORS
Cosimo Alfarano <alfarano@students.cs.unibo.it>
BUGS
Boh. send any bug, advice or opinion to the author, please.
Sun Sep 12 18:10:00 CEST 2000 pygm2n(1)