LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-26-2013, 07:04 AM   #1
Tareq9959
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 mail.mydomain.net and how do I configure "mail" to use it.
 
Old 05-26-2013, 08:28 AM   #2
shivaa
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:
Code:
~$ mail -s "<subject>" abc@xyz.com < /path/to/input.txt
~$ mailx -s "<subject>" abc@xyz.com < /path/to/input.txt
~$ sendmail -v abc@xyz.com < /path/to/input.txt
 
  


Reply


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 12:21 AM
Reject mail config kimnajoo Linux - Security 1 05-06-2005 01:04 PM
for mail config Arch3r Linux - Networking 1 08-12-2003 09:09 AM
for mail config Arch3r Linux - Networking 0 08-12-2003 06:45 AM
mail server config tarak4u Linux - General 5 05-02-2002 06:03 PM


All times are GMT -5. The time now is 10:23 PM.

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