[ New messages · Members · Forum rules · Search · RSS ]
  • Page 1 of 1
  • 1
Forum moderator: shanky, Piyu, Resh  
How to send mail from unix server?
PiyuDate: Friday, 2014-04-18, 12:41 PM | Message # 1
Private
Group: Users
Messages: 10
Awards: 0
Reputation: 21
Status: Offline
How to send mail from unix server?
 
shankyDate: Friday, 2014-04-18, 12:56 PM | Message # 2
Lieutenant
Group: Administrators
Messages: 46
Awards: 0
Reputation: 104
Status: Offline
Glad to see u again..
U can send mail in two ways:
1. using mail command
2. using mutt application
 
1. Using mail, try below commad:
 
  mail  [-s subject] [-a attachment ] [-c cc-addr] [-b bcc-addr] [-r from-addr]
              [-h hops] [-A account] To-address <file
 
Eg.
 
mail -s 'hello priyanka' -a abc.txt -c [email protected] [email protected] < abc.txt

The above command will send the content of file abc.txt to  [email protected] with [email protected] in CC with abc.txt as attachment with hello priyanka as subject
      
2. Using Mutt
 See this Article
 
FOR ANY QSN  REPLY BACK..


s.k.bhagat
 
shankyDate: Friday, 2014-04-18, 2:19 PM | Message # 3
Lieutenant
Group: Administrators
Messages: 46
Awards: 0
Reputation: 104
Status: Offline
Just to update you.
The above command can send a mail from content of a file (using mail command), but if you want to send a mail by directly typing on terminal , you can do it.
Just try:
Prompt:>mail receiverId [press Enter]
Subject: <give some subject> [press Enter]
<type your mail here>
<------->
 
Press Ctrl +D to end mail body.
 
Your typed message will be sent
 
Enjoy.. smile


s.k.bhagat
 
  • Page 1 of 1
  • 1
Search: