![]() |
|
|
|||||||
| Home | Forums | Register | Rules & FAQ | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| How do I send email? How do I send an mail attachment from the command line? |
Other UNIX.COM Threads You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sending email attachments | venush | UNIX for Dummies Questions & Answers | 2 | 4 Weeks Ago 10:42 PM |
| Sending text files as attachments | radhika03 | Shell Programming and Scripting | 2 | 06-07-2007 07:17 AM |
| sending attachments in mail | rajendragora | UNIX for Dummies Questions & Answers | 6 | 01-31-2007 08:13 PM |
| sending attachments via unix | Abhishek Ghose | UNIX for Advanced & Expert Users | 6 | 09-30-2005 01:49 PM |
| sending files as attachments | SmartJuniorUnix | UNIX for Dummies Questions & Answers | 9 | 04-13-2001 04:34 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
How do I send a file as an attachment on a Unix system
|
| Forum Sponsor | ||
|
|
|
|||
|
From Command Line
uuencode [file] | mail xxx@xxx.com
this is what I've attempted. I somewhat works. If I run this from the command line, I only get a portion of the file. I ultimately need to set this up through a crontab, So I am testing it from the command line. When I receive the message, It arrives as an attachment, but the file is corrupted.. I believe it's because of the way I am exiting the mail program. CTRL-D. The file that ultimately needs to be sent is approximately 12 MB. I figure this would take a while. This is where I decided to try it with a much smaller file (1KB). But it still seems that the mail prog will not close out on it's own. Let me know what you think or if you need more details. |
|
|||
|
I have to translate a microfocus COBOL--generated ascii report file into pdf and attach it in an e-mail kicked off from within the following cgi script:
if [ "$EMAIL" = "Y" ]; then sed -e '/^H_/s///g' <$REPFILE >$REPFILE2 print "
|
|||
| Google UNIX.COM |