1833767 Members
2398 Online
110063 Solutions
New Discussion

question on mail

 
Narasimham
Advisor

question on mail

Hi

I have couple of files in a unix machine i wanted to mail them to my lotus notes id . what is the procedure for doing that

Thanks

Narasimham
9 REPLIES 9
Ted Ellis_2
Honored Contributor

Re: question on mail

is it just some text that you need.. or the file itself?

mailx -s "SUBJECT" mail_address < file

that will read the file and use it as the body of the message. If you want a file intact... better off using ftp

Ted
Narasimham
Advisor

Re: question on mail

Ted

I Have files having some data

Narasimham
Ted Ellis_2
Honored Contributor

Re: question on mail

can you just ftp from your pc.. or where you want them:

ftp -i
enter user_id
enter passwd
now get command prompt
enter "bin" to set binary transfer
lcd c:\local_directory
cd directory

mget file_name

if there is a way to actually attach the file the way you do with exchange or lotus notes, I do not know it.. sorry

Ted
Ted Ellis_2
Honored Contributor

Re: question on mail

and you run all that from command prompt
Narasimham
Advisor

Re: question on mail

Ted

In fact i wanted to avoid doing ftp. I wanted to run a script and get the results(files) automatically to my mail box


Narasimham
Ted Ellis_2
Honored Contributor

Re: question on mail

sorry... only other thing I could suggest would be to script the ftp and run that whenever you want.
Dave La Mar
Honored Contributor

Re: question on mail

Here is something I make extensive use of to sentd results as an attachment to an email address:

ux2dos full_path/to_file | uuencode Name_Of_Attachment.txt | mailx -m -s "Title of Email" someone@somewhere.com


Best of Luck,

dl
"I'm not dumb. I just have a command of thoroughly useless information."

Re: question on mail

You can also use elm without having to uuencode. For example:

elm -s "My Subject" address@somewhere.com << END
[include /tmp/myfile application/octet-stream base64]
END


Regards,

Rich
Christophe MAILHE
Frequent Advisor

Re: question on mail

Hi,

Have a look at the following forum thread http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x720f36e69499d611abdb0090277a778c,00.html which give a lot of answer.

If you want to send the file as attachment have a look at the following (still same thread) http://forums.itrc.hp.com/cm/components/FileAttachment/0,,0x071436e69499d611abdb0090277a778c,00.txt .

Chris.