RE: sending mail from application on SuSe

"Brian Grellinger" <[email protected]>
Newsgroups gmane.comp.lang.4gl.fourjs.user
Message-ID <s33bd0cd.072@da-nw3>
Never tried on Linux, but on AIX we use a combo of mail and uuencode.
 
I want to send "picture.bmp" as an attachment, and "message.txt"
contains my mail message:
(cat message.txt; uuencode picture.bmp picture.bmp) | mail -s "A
Message" [email protected]
 
 
 
Brian Grellinger
I.S. Manager
Doosan Infracore America Corp
Information Systems

>>> [email protected] 09/29/05 11:15AM >>>
Thanks for the tip! But....is there a way not to jump into an editor

The command I execute is  mutt -s "my fyle" -a /etc/inittab
[email protected] 

Pressing return the system propose me the parameters and doing only
enter an
editor is opened in which we can make some notes.

But we don't want interaction when we send a mail.

Any solution?

Met vriendelijke groeten / Sincères salutations / Kind regards,


Danny De Koster








-----Oorspronkelijk bericht-----
Van: [email protected] [mailto:[email protected]]
Namens
Walter Haslbeck
Verzonden: donderdag 29 september 2005 15:11
Aan: [email protected] 
Onderwerp: Re: [fourjs-users] sending mail from application on SuSe

Hi,

> I'm looking for a tool to send easily mails and attachements from our

> application. Anybody using such a tool ?

mutt!

usage is simple:

e.g. RUN "mutt -s"Subject" -aAttachment.doc user@domain < textfile"

because mutt reads the mailbody from STDIN, you can pipe a report to
mutt:

...
START REPORT myreport TO PIPE "mutt -s'Your Report' user@domain"
...

hth,
Walter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.