How to Send an Email (Mail Message) from Linux Command Line Shell Kā nosūtīt e-pasts (pasta ziņu) no 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. Reizēm sistēmas administrators var būt nepieciešams nosūtīt testa e-pastu vai ārkārtas pasta ziņu tieši no čaumalas vai komandrindas tulks, ja izmanto Linux aromāts vai izplatīšana operētājsistēmas, ir Red Hat Fedora, Ubuntu, Debian, CentOS, Open SUSE, FreeBSD un citiem. In this case, the mail command will come in handy. Šajā gadījumā pasta komanda noderēs.
mail is a command to send and receive mail in Unix, Linux and BSD operating system. pasta komandu nosūtīt un saņemt pastu Unix, Linux un BSD operētājsistēmu. To initiate a mail sending process, just type in the following command: Lai uzsāktu pasta sūtīšanas process, vienkārši ierakstiet šādu komandu:
mail recipient@domain.com
Obviously, replace recipient@domain.com with a valid email address. Acīmredzot, nomainiet recipient@domain.com ar derīgu e-pasta adresi.
The system will prompt for a subject of the email before allowing user to type in the mail message body. Sistēma vaicāt priekšmets email pirms ļaut lietotājam veida pasta ziņojuma pamattekstā.
# mail receipent@domain.com # Pasta receipent@domain.com
Subject: For Testing Only Tēma: Par pārbaudi tikai
This email is for testing the mail delivery system only. Šī vēstule ir testēšanas pasta piegādes sistēmu only.
^D (EOT) ^ D (EOT)
Cc: Cc:
Once finished typing the email message, press Ctrl-D (shown as ^D in example above), which represents End of Text (EOT). Kad pabeigts rakstīt e-pasta ziņu, nospiediet Ctrl-D (parādīts kā ^ D piemērā augstāk), ko apliecina beigas Teksts (EOT). Depending on system, mail may or may not prompt another input request for any recipients to cc (carbon copy) to. Atkarībā no sistēmas, pasta var būt vai var nebūt tūlītēja citas ievades pieprasījumu visus cc (oglekļa kopiju saņēmēju) to. Press Enter to skip or accept the input, and get the mail sent. Nospiediet Enter, lai izlaistu vai pieņemt ievadi, un saņemt pasts nosūtīts.
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. Padoms: Ja nosūtītājs un saņēmējs ir par pašu sistēmu, ir iespējams neiekļaut domēnu (@ domain.com) daļa adresi, atstājot tikai lietotāja vārds.
It's also possible to use mail's arguments or switches to directly send mail without interactive input. Tas ir iespējams lietot arī pastu argumentiem vai pārslēdzas tieši nosūtīt pastu, kas nenodrošina interaktivitāti ievadi. For example, Piemēram,
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". Komanda iepriekš nekavējoties nosūtīt tukšu e-pastu ar tukšu organizācija saņēmēja adresi ar tematu "Test". For more arguments, type "man mail". Vairāk argumentiem, tipa "man pasts".
IMPORTANT : The page is machine translated and provided "as is" without warranty. SVARĪGI: lapa mašīna iztulkot un pasniegts tàds, "kàds tas ir" bez garantijas. Machine translation may be difficult to understand. Mašīntulkošanas var būt grūti saprast. Please refer to Lūdzu, skatiet original English article oriģināls angļu rakstu whenever possible. kad vien iespējams.
Related Articles Saistītie raksti
- Send an Anonymous Email Message With Web Based Anonymous Mail Service Providers Send Anonymous Email īsziņu ar Web Based Anonymous Mail Service Providers
- Windows Media Center Shell (ehshell.exe) Command Line Switches and Options Windows Media Center Shell (ehshell.exe) Command Line Switches and Options
- Delay Sending of Email Message in Microsoft Outlook (Supports Gmail, Hotmail, Yahoo, AOL and all POP3/IMAP Mail) Delay nosūtīšana e-pasta ziņojumu programmā Microsoft Outlook (Supports Gmail, Hotmail, Yahoo, AOL un visām POP3/IMAP Mail)
- Send Free Text Message With Hundreds of Email to SMS Gateway or Internet Web SMS from Operator Nosūtīt bezmaksas īsziņu ar simtiem Nosūtīt SMS Gateway vai interneta Web SMS no Operator
- How to Create Email Account and Receive Mail for Abuse and Postmaster in Google Apps Kā izveidot e-pasta kontu un saņemt Mail lietošanas un Postmaster in Google Apps
- Email Bounces Back with “unrouteable mail domain” Error E-pasts bounces Atpakaļ ar "unrouteable pasta domēna" Kļūda
- Remove ESET NOD32 Checked Email Confirmation Tag Message in Email Noņemt ESET NOD32 Checked E-pasta Confirmation Tag ziņu Nosūtīt
- Restart or Shutdown Windows (XP, 2000 and Vista) from Command Line or One-Click Shortcut Atsākt vai Shutdown Windows (XP, 2000 un Vista) no Command Line vai One-Click Ātrais
- Unlimited Email Storage and Infinity Mail Space for Yahoo! Neierobežots e-pasta Uzglabāšanas un Infinity Mail Vieta Yahoo! Mail Mail
- Yahoo Mail New Feature to Allow E-Mailers Text-Message to Phones Yahoo Mail jaunu līdzekli aut E-sūtītājiem Teksta Ziņa Phones










































July 29th, 2009 06:48 Jūlijs 29, 2009 06:48
how do i config my sendmail to make it work? Kā es varu config my sendmail, lai tā darbotos? i have ubuntu and it wont work without it. Man ir ubuntu un paradis darbu bez tā.
thanks! pateicība!
June 29th, 2009 00:24 Jūnijs 29, 2009 00:24
you have to config your sendmail to make it work Jums config jūsu sendmail, lai tā darbotos
June 28th, 2009 11:53 Jūnijs 28, 2009 11:53
Argh. Argh. It's a Terminal not a commandline. Tas Terminal nav commandline.