+ Reply to Thread
Results 1 to 5 of 5

Thread: mail with commandline OpenSuse 10.2

  1. #1
      Newbie heyman.pieter
    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
      Advisor redhead redhead's Avatar
    Join Date
    Jun 2001
    Location
    Copenhagen, Denmark
    Posts
    756
    #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 explorer
    Join Date
    Sep 2006
    Posts
    70
    wouldn’t telnet be easier than writing the whole command specified above?

  4. #4
      Advisor redhead redhead's Avatar
    Join Date
    Jun 2001
    Location
    Copenhagen, Denmark
    Posts
    756
    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
    Originally Posted by heyman.pieter
    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.

+ Reply to Thread

Similar Threads

  1. openSuse 10.2 Kernel Version Error
    By vwgtiturbo in forum Suse
    Replies: 6
    Last Post: 09-22-2007, 04:58 PM
  2. Mail in Bulk
    By piyushwipl in forum Linux – Software, Applications & Programming
    Replies: 3
    Last Post: 01-23-2006, 10:51 AM
  3. How to Back Up and Recover Outlook Express Data
    By regix in forum Windows – General Topics
    Replies: 1
    Last Post: 01-03-2005, 11:11 PM
  4. Mail server upgrade
    By cheezetrix in forum Linux – Software, Applications & Programming
    Replies: 0
    Last Post: 06-01-2004, 09:00 AM
  5. Mail Problems
    By imported_RedHat in forum Linux – General Topics
    Replies: 13
    Last Post: 02-24-2003, 02:22 PM

Bookmarks

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