How to Send an Email (Mail Message) from Linux Command Line Shell Slik Send en e-post (Mail Melding) fra Linux Command Line Shell

Occasionally system administrator may need to send a test email, or emergency mail message right from the shell or command line interpreter when using a Linux flavor or distribution of operating system, be Red Hat Fedora, Ubuntu, Debian, CentOS, Open SUSE, FreeBSD and others. Av systemadministratoren kan hende du må sende en test e-post, eller nødsituasjon postmelding rett fra skallet eller kommandolinje tolk når man bruker Linux smaken eller distribusjon av operativsystemet være Red Hat Fedora, Ubuntu, Debian, CentOS, Open SUSE, FreeBSD og andre. In this case, the mail command will come in handy. I dette tilfellet vil post-kommandoen komme til nytte.

mail is a command to send and receive mail in Unix, Linux and BSD operating system. post er en kommando for å sende og motta e-post i Unix, Linux og BSD-operativsystem. To initiate a mail sending process, just type in the following command: For å starte en mail sending prosess, skriver du bare inn følgende kommando:

mail recipient@domain.com

Obviously, replace recipient@domain.com with a valid email address. Selvfølgelig erstatte recipient@domain.com med en gyldig e-postadresse.

The system will prompt for a subject of the email before allowing user to type in the mail message body. Systemet vil be om et emne av e-posten før de tillater brukeren å taste inn postmeldingen kroppen.

# mail receipent@domain.com # Post receipent@domain.com
Subject: For Testing Only Emne: For å teste bare
This email is for testing the mail delivery system only. Denne e-posten er for å teste postlevering systemet bare.
^D (EOT) ^ D (EOT)
Cc: Kopi:

Once finished typing the email message, press Ctrl-D (shown as ^D in example above), which represents End of Text (EOT). Når ferdig med å skrive e-postmeldingen, trykker du Ctrl-D (vist som ^ D i eksemplet ovenfor), som representerer End of Text (EOT). Depending on system, mail may or may not prompt another input request for any recipients to cc (carbon copy) to. Avhengig av systemet, kan e-post eller ikke kan få en annen inngang anmodning om eventuelle mottakere cc (kopi) til. Press Enter to skip or accept the input, and get the mail sent. Trykk Enter for å hoppe eller godta inngang, og få det sendt.

Tip: If the sender and recipient is on the same system, it's possible to omit the domain (@domain.com) part of the address, leaving only user name. Tips: Hvis avsenderen og mottakeren er på det samme systemet, er det mulig å utelate domene (@ domain.com) del av adressen, slik at bare brukernavn.

It's also possible to use mail's arguments or switches to directly send mail without interactive input. Det er også mulig å bruke e-post argumenter eller bytter til direkte sende e-post uten interaktive inngang. For example, For eksempel

mail -s Test address@domain.com < /dev/null

Command above will immediately send a blank email with empty body to the recipient address with the subject "Test". Kommandoen over vil umiddelbart sende en tom e-post med tomme kroppen til mottakeradressen med emnet "Test". For more arguments, type "man mail". For flere argumenter, skriv "mannen post".

IMPORTANT : The page is machine translated and provided "as is" without warranty. VIKTIG: Siden er maskinen oversatt og levert "som er" uten garanti. Machine translation may be difficult to understand. Apparat oversettelse kanskje være vanskelig å forstå. Please refer to Vennligst henvis til original English article original engelsk artikkel whenever possible. når det er mulig.


3 Responses to “How to Send an Email (Mail Message) from Linux Command Line Shell” 3 Svar til "Hvordan Send en e-post (Mail Melding) fra Linux Command Line Shell"

  1. maria a. maria a.
    July 29th, 2009 06:48 29 juli 2009 06:48
    3 3

    how do i config my sendmail to make it work? Hvordan kan jeg konferere meg sendmail å gjøre det? i have ubuntu and it wont work without it. jeg har ubuntu og den wont arbeide uten.
    thanks! takk!

  2. tim tim
    June 29th, 2009 00:24 29 juni 2009 00:24
    2 2

    you have to config your sendmail to make it work du må konferere din sendmail å gjøre det arbeidet

  3. 908 908
    June 28th, 2009 11:53 28 juni 2009 11:53
    1 1

    Argh. Argh. It's a Terminal not a commandline. Det er en Terminal ikke en kommandolinje.

Leave a Reply Avreise en Svar

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Du kan bruke disse kodene: href="" title="Og <abbr title="Og <acronym title="Og <b> <blockquote anføre=""> <cite> <code> <del datetime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. Abonner på kommentarer funksjonen er deaktivert. To receive notification of latest comments posted, subscribe to Å motta varsel om siste kommentarer postet, abonnere My Digital Life Comments RSS feed Meg Digital Livet Kommentarer RSS feed or eller register to receive register for å motta new comments in daily email digest. nye kommentarer i den daglige e fordøye.
Custom Search

New Articles Nye artikler

Incoming Search Terms for the Article Innkommende Søke Pris for artikkelen

linux mail command linux post-kommandoen - -- sendmail command line sendmail kommandolinje - -- sendmail command line example sendmail kommandolinje eksempel - -- send mail from command line send e-post fra kommandolinjen - -- linux mail command line linux post kommandolinje - -- sendmail command example sendmail kommandoen eksempel - -- linux mail from address linux-post fra adressen - -- mail command in linux post-kommandoen i linux - -- linux command line mail Linux kommandolinje post - -- linux mail command example linux post-kommandoen eksempel - -- send mail command line linux send mail kommandolinje linux - -- command line email linux kommandolinje e linux - -- linux send mail from command line linux sende post fra kommandolinjen - -- send mail from command line linux send e-post fra kommandolinjen linux - -- linux send email linux send e-post - -- mail command linux post-kommandoen linux - -- send email from command line Send e-post fra kommandolinjen - -- sendmail command line subject sendmail kommandolinje emne - -- sendmail example command line sendmail eksempel kommandolinje - -- linux sendmail example Linux sendmail eksempel - -- linux send email from command line linux sende e-post fra kommandolinjen - -- linux email command line linux email kommandolinje - -- linux mail command from linux post kommando fra - -- how to send mail in linux hvordan du skal sende e-post i linux - -- linux sendmail command Linux sendmail kommando - -- email command line e kommandolinje - -- all alle - -- mail linux command Post linux kommando - -- linux command line email Linux kommandolinje epost - -- sendmail command in linux sendmail-kommandoen i linux - -- linux email command linux e-kommando - -- linux mail command from address linux post-kommandoen fra adressen - -- linux sendmail command line Linux sendmail kommandolinje - -- how to send mail from linux command line hvordan du skal sende e-post fra linux kommandolinjen - -- linux sendmail command example Linux sendmail kommandoen eksempel - -- man mail linux mann post linux - -- sendmail command line email sendmail kommandolinje epost - -- send email command line linux send e-post kommandolinje linux - -- shell mail command shell post-kommandoen - -- sendmail send test email sendmail sende test epost - -- yahoo mail command line yahoo mail kommandolinje - -- linux send email command line linux send epost kommandolinje - -- sendmail linux example sendmail linux eksempel - -- sending mail from command line sende post fra kommandolinjen - -- linux commandline mail linux kommandolinja post - -- send command line email Send kommandolinje e-post - -- linux send mail command line linux send mail kommandolinje - -- send email from linux command line send e-post fra linux kommandolinjen - -- mail linux command line Post linux kommandolinje - -- how to send email in linux hvordan du sender e-post i linux - --