Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
command line mail program?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
robux
n00b
n00b


Joined: 06 Nov 2002
Posts: 24

PostPosted: Tue Sep 16, 2003 12:44 pm    Post subject: command line mail program? Reply with quote

Hi, I need an email program which I can start via command line and set the subject, text, reveiver and attachmant by Parameters. This program should connect to a mailserver via SMTP protocol.

Example:

# mailit /REC=someone@somewhere /SUB="Testmail" /TEXT="Hallo again" /ATT=/documents/mypdf.pdf

Thanks,
Rob
Back to top
View user's profile Send private message
silverter
Guru
Guru


Joined: 10 Apr 2002
Posts: 491
Location: Ulm, DE

PostPosted: Tue Sep 16, 2003 1:17 pm    Post subject: Reply with quote

Have you tried mail? I can't recall what package it in... but it is exactelly what you are looking for... on the command line you can do
Code:
mail somebody@somehwere -s subject -s attachement < test.
This shout also work with mutt. Someone correct me if I'm wrong...

HTH

regards
_________________
-- A Guru was once a Beginner --
Back to top
View user's profile Send private message
mglauche
Retired Dev
Retired Dev


Joined: 25 Apr 2002
Posts: 564
Location: Germany

PostPosted: Tue Sep 16, 2003 2:18 pm    Post subject: Reply with quote

another good choice for this is the classic "mail" programm, which is in the "mailx" package.

so, emerge mailx, then man mail ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum