Results 1 to 5 of 5

Thread: mail with commandline OpenSuse 10.2

  1. #1
    Newbie
    Join Date
    Jul 2007
    Posts
    1

    mail with commandline OpenSuse 10.2

    hey

    I need to check the possibility to mail from command line in opensuse 10.2
    but i can not find a working solution .
    does anyone know how to set this up or how to email via command line

    it would be great if I have a solution where I just need to fill in "SMTP, FROM, TO , TITLE, BODY"

    thanx in advance

  2. #2
    Moderator
    Advisor
    redhead's Avatar
    Join Date
    Jun 2001
    Location
    Copenhagen, Denmark
    Posts
    811
    #man mail
    SYNOPSIS
    mail [-eIinv] [-a header] [-b bcc-addr] [-c cc-addr] [-s subject] to-addr
    [...] [-- sendmail-options [...]]
    mail [-eIiNnv] -f [name]
    mail [-eIiNnv] [-u user]

    DESCRIPTION
    mail is an intelligent mail processing system which has a command syntax
    reminiscent of ed(1) with lines replaced by messages.
    So in short:
    # echo "my mail message to who@somewhere" |mail -a "From: me@here" -a "Reply-To: other-address@there" -s "a massage to who@somewhere from command line" who@somewhere
    Don't worry Ma'am. We're university students, - We know what We're doing.
    'Ruiat coelum, fiat voluntas tua.'
    Datalogi - en livsstil; Intet liv, ingen stil.

  3. #3
    Junior Member
    Join Date
    Sep 2006
    Posts
    70
    wouldn't telnet be easier than writing the whole command specified above?

  4. #4
    Moderator
    Advisor
    redhead's Avatar
    Join Date
    Jun 2001
    Location
    Copenhagen, Denmark
    Posts
    811
    Ofcause, the easiest would be to just type:
    # mail
    And then the rest will be a walkthrough with the required "from", "to", "subject" etc beeing asked..
    But he specificaly wanted a commandline to mail someone.. It could be in an efford to incorporate it into some sort of script.
    Shouldn't he be informed that theres a way to create it as a single line then ? Or is it more importain to be told theres always the extreeme insecure telnet protocol.. Why not point out ssh when you are trying to bring some form of remote connection tool to teh party... This did start out as a mail executing request, never did it mention remote login possibileties..
    Don't worry Ma'am. We're university students, - We know what We're doing.
    'Ruiat coelum, fiat voluntas tua.'
    Datalogi - en livsstil; Intet liv, ingen stil.

  5. #5
    Quote Originally Posted by heyman.pieter View Post
    hey

    I need to check the possibility to mail from command line in opensuse 10.2
    but i can not find a working solution .
    does anyone know how to set this up or how to email via command line

    it would be great if I have a solution where I just need to fill in "SMTP, FROM, TO , TITLE, BODY"

    thanx in advance
    Can you give some more samples? How great your info is! It really useful for me. Thanks.

Similar Threads

  1. (OpenSuSE 11.2) Home Network Setup
    By mtmouse in forum Linux - Hardware, Networking & Security
    Replies: 0
    Last Post: 02-15-2010, 09:45 PM
  2. OpenSuSE Wifi Config
    By gmoreno in forum Linux - General Topics
    Replies: 1
    Last Post: 08-22-2005, 07:19 AM
  3. openSUSE
    By coltrane in forum Linux - General Topics
    Replies: 4
    Last Post: 08-21-2005, 10:46 PM
  4. How do u print manpages frm commandline terminal?
    By NightSky in forum Linux - General Topics
    Replies: 4
    Last Post: 01-04-2002, 05:39 PM
  5. Commandline email with attachments.
    By HuggyBear in forum Linux - General Topics
    Replies: 3
    Last Post: 11-20-2001, 06:03 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •