The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Command line/Script to send E-mail with HTML body and binary attachment G-Man AIX 3 04-18-2007 10:30 PM
Line Count & MAil Issues Remi UNIX for Dummies Questions & Answers 3 12-02-2006 11:15 PM
command line send mail ejbrever UNIX for Dummies Questions & Answers 1 08-29-2006 08:30 PM
Mail attatchment line length brown_b UNIX for Advanced & Expert Users 5 11-05-2003 11:56 AM
E-Mail from command line for UNIX and Perl?? jy2728 Shell Programming and Scripting 4 11-26-2002 05:02 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-05-2008
VijayakumarN VijayakumarN is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 6
Thank to all
I have tried with mail / mailx /sendmail / mutt command for mailing from command terminal, but it didn't worked . Is there any configuration or setting need for the client proxy host to send mail.
  #2 (permalink)  
Old 09-02-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
And UUENCODE is a legacy format anyway, you really want to use MIME attachments in this day and age.
  #3 (permalink)  
Old 09-02-2008
Annihilannic Annihilannic is offline Forum Advisor  
  
 

Join Date: May 2008
Location: Sydney, Australia
Posts: 1,009
uuencode is very convenient though... is there an equally convenient way to add MIME attachments? I know you can do the encoding with openssl enc -e -base64, for example, but then you have to generate the MIME headers and so-forth, right?
  #4 (permalink)  
Old 09-02-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
The FAQ has a script for properly formatting MIME attachments. The metamail package has a set of tools for base64 encoding and decoding as well as a slew of other MIME utilities (many of which are not very useful or convenient in the modern world, I have to add). The headers are not immensely complex or anything, but you do have to know a little bit about what you are doing if you construct a MIME structure by hand. The Perl MIME::Lite library is a nice front end for this, if you're into Perl.
  #5 (permalink)  
Old 09-02-2008
Annihilannic Annihilannic is offline Forum Advisor  
  
 

Join Date: May 2008
Location: Sydney, Australia
Posts: 1,009
Thanks for pointing those out. Not so complicated as you say... but I think I'll stick with uuencode since it's fairly ubiquitous.
  #6 (permalink)  
Old 09-05-2008
Annihilannic Annihilannic is offline Forum Advisor  
  
 

Join Date: May 2008
Location: Sydney, Australia
Posts: 1,009
Which MTA (mail transmission agent?) are you running... is it sendmail? If so, does mailq list a bunch of emails which are queued to be delivered?

What operating system are you using exactly? The way to correctly configure your email gateway differs from one operating system to another, and between Linux distributions.
  #7 (permalink)  
Old 09-05-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
Does "it didn't worked" mean you got command not found or that it looked like it sent a message, but you never received it? You really need to be a bit more specific.

(Annihilannic: it's Mail Transport Agent fwiw.)
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:53 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0