Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-26-2013, 08:04 AM   #1
LQ Newbie
Registered: May 2013
Posts: 6

Rep: Reputation: Disabled
Lightbulb mail config

dear all,

I have never configured "mail" on linux. Now I need to use a script to email me a report once every day. Till now, I have been using Thunderbird and use the SMTP /IMAP server in my campus to send and receive mail

I want to know how to use the mail command from the command line to send mails. I mean, I have an email account in a server and how do I configure "mail" to use it.
Old 05-26-2013, 09:28 AM   #2
Senior Member
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
If mails servers are configured properly, then try mail, mailx or sendmail command, as:
~$ mail -s "<subject>" < /path/to/input.txt
~$ mailx -s "<subject>" < /path/to/input.txt
~$ sendmail -v < /path/to/input.txt


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Want to send mail with php mail() command - minimum config required? FeathersMc Linux - Server 2 10-26-2008 01:21 AM
Reject mail config kimnajoo Linux - Security 1 05-06-2005 02:04 PM
for mail config Arch3r Linux - Networking 1 08-12-2003 10:09 AM
for mail config Arch3r Linux - Networking 0 08-12-2003 07:45 AM
mail server config tarak4u Linux - General 5 05-02-2002 07:03 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:57 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration