create email w/ ASCII attachment via command-line


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users create email w/ ASCII attachment via command-line
# 1  
Old 04-04-2002
Question create email w/ ASCII attachment via command-line

All,

I need to email an ASCII data file to a business partner, and intended on creating a Korn Shell script to create an email message (minimal text), and attach the ASCII data file to the email.

It seems this is not as easy as I had thought it might be. sendmail does not support attachments, and the Unix Admins said we did not have a utility that can handle sending attachments (via command-line) in our Solaris 8 world (OS 5.8).

The Unix Admins indicated they might be able to install something from a source such as GNU, as long as it's a trusted source.

Any (free/robust) utilities come to mind that can handle the command-line email attachment??

(Note, I am experiemtning w/ redirecting the ASCII data as the 'body' of the email, but, our company disclaimer is appended to all out-going emails...not sure if our partner will accept this - or if they'd even accept the data as the body of the email)

TIA
# 2  
Old 04-04-2002
# 3  
Old 04-05-2002
Wow. That works like a champ.

Thanks!
# 4  
Old 04-05-2002
ELM does also

ELM is a great utility, but some people have problem with getting their companies to buy/install it.

That script is great I have used it several times since copying it last week.

This script is simpler to use than ELM is as well. So I like it even more. With ELM I always had to copy in the attachment while in the program or I guess you can do it from the command line as well, but I never used that functionality.

Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Attachment in email

I have a file in unix, while i do email that file to some one from unix, the attachment file data is displaying in the email. (as body of the email). but if the file has some special characters , the file is emailing as attachment. But i need the file as the body in the email if it has special... (1 Reply)
Discussion started by: nani1984
1 Replies

2. Solaris

Sent an email attachment, but the attachment is empty

I'm trying to send a .zip file from my unix box to my work email (email client outlook) The file name that I'm trying to sent is sites.zip and this is how I do it: uuencode sites.zip | mailx -s "testing" myname@mydomain.com When I open the .zip, the zip is empty. Looking around the we, I... (17 Replies)
Discussion started by: amb1s1
17 Replies

3. Shell Programming and Scripting

Create list in command line

How do you create lists or arrays in the command line? And how do you access specific cells of the list? (1 Reply)
Discussion started by: locoroco
1 Replies

4. Ubuntu

Command line email help needed

Hi, having some problems getting commandline mail to work for root user in ubuntu. Ive installed the following packages - msmtp & mailx and the cert for gmail. I've created 3 files: mailrc and msmtprc in /home/username directory and /etc/exim4/passwd.client mailrc ------ set... (0 Replies)
Discussion started by: ziggycat
0 Replies

5. UNIX for Advanced & Expert Users

Sendmail with attachment command line ?

hi.. Could somebody guide me how to send mail with attachment using sendmail command in unix ? Thank you, (2 Replies)
Discussion started by: bh_hensem
2 Replies

6. Shell Programming and Scripting

Can I create a file from the command line

I want to create a file explicitly from the command line without going in to the file directly just create it. Can I do that? Thanks in advance. (5 Replies)
Discussion started by: airon23bball
5 Replies

7. AIX

Email with Attachment

Hi, I have .ksh file which internally calls a .sql file. This sql file writes a file with the result. I am using the following command to send email with the result file as attachment uuencode file.txt file.txt | mail -s "Subject" abc@abc.com. When i run the .ksh file i get a message you... (5 Replies)
Discussion started by: piyushprabhakar
5 Replies

8. AIX

Command line/Script to send E-mail with HTML body and binary attachment

I apoligize for the cross-post but I'm not getting much in the way of help in the dummies forum: I'm trying to script sending an e-mail message on an AIX 5.x server with the following requirements: 1. command line switch to specify file name containing message body in HTML format 2. command... (3 Replies)
Discussion started by: G-Man
3 Replies

9. UNIX for Dummies Questions & Answers

Email Attachment

Is there a way to send an email attachment? So far no where I've looked has given me any leads. (2 Replies)
Discussion started by: Cyro
2 Replies

10. UNIX for Dummies Questions & Answers

Email Attachment

Hi, I have 2 questions regarding sending mail as attachment. 1. Using mime type (From Oracle tools which reside on UNIX) When send the mail(txt file) as an attachment, on some servers like Hotmail, the email goes perfect as an attachment. But on some servers like yahoo, get embedded mail which... (2 Replies)
Discussion started by: prasad01
2 Replies
Login or Register to Ask a Question