Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using a separate unix network to ftp; or emailing to a separate netwrk

Status
Not open for further replies.

ProgrammingB52

Technical User
May 7, 2003
37
US
I have a file on a unix machine that I need to email to hotmail. I looked up the ftp outgoing command, I dont think that that will do it because the receiver would have to log into my unix machine, which I do not know the name for. Should I create an outgoing directory, and find an address for my machine, and if so how do I find out the name of the network, such as name.umass.edu?

Is there another way that I could just email it? If so how do I that?
 
If you have access to a win32 machine that is on the same subnet as the Unix host, and you know the ip address of the Unix host you can just run ftp on the win32 and connect to Unix.
from a command prompt type:

ftp 192.168.0.10 (replace with correct ip address of Unix)

then login to Unix
use cd to change to directory with file
set transfer mode to match file type (type bin for binary file, ascii for text)
lc c:\ (replace c:\ with dir on win32 to recieve file)
get filename

you should now have file on win32 so you can email away...

another more long winded method:

set up printing on the Unix host (if it isn't already)
uuencode the file you want to send
print the uuencoded file
on a win32 or apple scan in the printed uuencoded file and use OCR to convert to text file
uudecode this file
send to hotmail


hehe

sharper.
 
[tt]
How about setting up sendmail? (Or MMDF if you're a masochist).

In most circumstances all it needs is the SMTP smarter host
configured for outgoing mail.

Then ;-

uuencode <filename> <filename> > file.uue

to uuencode it as sharper suggests.

But from here you can send it straight by e-mail with

mail -s &quot;subject&quot; <e-mail address> < file.uue

Done.
[/tt]
 
Why does this need to be done from the UNIX machine? The easiest way is to copy the file to someone's local PC who has e-mail access and send it as an attachment.

It is possible to send e-mail from sco without having it set up as a mail server by using either &quot;sendmail&quot;, or &quot;submit&quot;. The server does need to have internet access to be able to do this however. If you use &quot;sendmail&quot; the recipient will not be able to reply to the mail because the return address is based on the sco login name, which isn't valid if it isn't a mail server. You can supply your own return address by using &quot;submit&quot; like the following script and filling in a valid e-mail address for the From line. The To line would of course be the recipient's address. Use uuencode to add the attachment as shown.

Code:
(
 echo &quot;From: <user1@domain1.com>&quot;
 echo &quot;To: <user2@domain2.com>&quot;
 echo &quot;CC:&quot;
 echo &quot;BCC:&quot;
 echo `date '+Date: %a, %d %b %Y %H:%M:%S'`
 echo &quot;Subject: Test E-mail&quot;
 echo &quot;Message-Id: <&quot;`date '+%d%m%y`$$&quot;.domain1.com>&quot;
 cat message.txt
 uuencode attachment.txt attachment.txt
) | /usr/mmdf/bin/submit -tmnrxto,cc,bcc*
 
apeasecpc - It looks like &quot;submit&quot; behaves similar to &quot;mail&quot;.

You can take stdin and print a Reply-To: as well.

With respect, however, I suggest never using mmdf unless
you know how to stop the &quot;deliver&quot; process from hogging
resources and never processing huge amounts of mail that
start building up its temp/lock directories.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top