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.
Related Articles Relaterte artikler
- Send an Anonymous Email Message With Web Based Anonymous Mail Service Providers Sende en Anonym Email Beskjed Med Web Basert Anonym Innlevere Service Providers
- Windows Media Center Shell (ehshell.exe) Command Line Switches and Options Windows Media Center Shell (Ehshell.exe) kommandolinjebrytere og Valg
- Delay Sending of Email Message in Microsoft Outlook (Supports Gmail, Hotmail, Yahoo, AOL and all POP3/IMAP Mail) Forsinkelsen Sender av Email Beskjed inne Microsoft Utsikt (Støtter Gmail, Hotmail, Yahoo, AOL og alle POP3/IMAP Innlevere)
- Send Free Text Message With Hundreds of Email to SMS Gateway or Internet Web SMS from Operator Sende Ledig Tekst Beskjed Med Flere hundre av Email å SMS Portrom eller Sykehuslege Web SMS fra Operator
- How to Create Email Account and Receive Mail for Abuse and Postmaster in Google Apps Slik oppretter e-postkonto og motta e-post for misbruk og Postmaster i Google Apps
- Email Bounces Back with “unrouteable mail domain” Error Email Transittstopp Tilbake med "unrouteable innlevere domenen" Feil
- Remove ESET NOD32 Checked Email Confirmation Tag Message in Email Fjerne ESET NOD32 Avkrysset Email Confirmation Tag Beskjed i e-post
- Restart or Shutdown Windows (XP, 2000 and Vista) from Command Line or One-Click Shortcut Hvile eller Nedleggelse Vinduer (XP, 2000 og Vista) fra Kommandere Line eller Ettall-Falle i staver Snarvei
- Unlimited Email Storage and Infinity Mail Space for Yahoo! Ubegrenset Email Lagringen og Uendeligheten Innlevere Mellomrom for Yahoo! Mail Mail
- Yahoo Mail New Feature to Allow E-Mailers Text-Message to Phones Yahoo Innlevere Ny Ansiktstrekk å Tillate E-Mailers Tekst-melding til telefoner










































July 29th, 2009 06:48 29 juli 2009 06:48
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!
June 29th, 2009 00:24 29 juni 2009 00:24
you have to config your sendmail to make it work du må konferere din sendmail å gjøre det arbeidet
June 28th, 2009 11:53 28 juni 2009 11:53
Argh. Argh. It's a Terminal not a commandline. Det er en Terminal ikke en kommandolinje.