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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

External Email 1

Status
Not open for further replies.

HHG

Technical User
Nov 8, 2003
68
GB
Hi,

Has anyone sent an attachement against an email from Unix to Groupwise. If so how have you done this. I don't want to cat the contents of the file within the email. Its needs tobe a file.

Hope someone can help.



 
Hi,

Try this:
uuencode file.name file.name | mailx -s "SUBJECT" joe.blow@email.com

You can use the -v switch with mailx for verbose output. You could also use mail instead of mailx.

Hope this helps!

-Joe
 
Hi Joe,

Can you give me another example, I have a file called test.csv are you saying I type in a syntax as follows:-

uuencode file.test.txt | mailx -s "TEST FILE" [Email address]

I just tried this ad I got the following message: -
uuencode: ISO8859-15 to 646 conversion: Invalid argument

I have obviously typed it in incorrect.

Sorry I am new to sun unix.

 
Hi,

You have to enter the file name twice in the command line.
Be careful with files ending in .txt. Some E-Mail programs will read the contents of a *.txt file and instead of attaching the file, include the contents in the body of the E-Mail.

The command should be:
uuencode file.test.txt file.test.txt | mailx -s "TEST FILE" [Email address]

-Joe
 
Hi Joe,

Thanks for this, but

Tried this worked and got a file to my email, but with no attachement. I have just looked at the files I need to send and will be able to send this without an extension i.e. .txt. However, I still got an error message as follows: -
uuencode: ISO8859-15 to 646 conversion: Invalid argument

I typed in the follwing: -

uuencode file.test file.test| mailex -s "TEST FILE" [email address which ends with not a .com but .org.uk]

Any other thoughts

 
Hi,

I'm not familiar with that error message, but it shouldn't be fatal. I can't figure out what the problem is, but you should be able to receive the file.

Try including the path to file as such:

uuencode /etc/inetd.conf inetd.conf | mailx -v -s "subject" [e-mail address]

Be sure to use the -v switch and maybe it will shed some light on what is happening.

-Joe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top