Fedora Linux Support Community & Resources Center
Old 21st December 2007, 04:46 AM
XMAG Offline
Registered User
Join Date: Sep 2007
Posts: 91
command to send emails


I need a command to send an email from terminal. The problem is I needed it to be a single line, just press enter and it's gone. The reason is I want to put this in a C program using the system() function, so it has to be something completely automatic, so when I run the program it will be as if I typed everything that is inside system() (like system("mv ~/a ~/b") would rename "a" to "b") in a terminal. So I can run it and the emails are gone, I don't have to type anything by myself. Is there such a command?

Powered By Fedora 8 - Linux User #459400 - Rio de Janeiro, Brazil
Reply With Quote
Old 21st December 2007, 05:11 AM
joiguru Offline
Registered User
Join Date: Jun 2007
Posts: 2
I think rather than find a single line program why don't you write a little shell script which will use your `multiline' program to send the email (like the mail command) and then use the system function to call that script. That way you can even have more control on your email !!
Reply With Quote

command, emails, send

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I can Send Emails But I cannot Receive Emails jmbiram Using Fedora 18 17th June 2008 11:05 PM
mail woes - root can't send emails mudarra Servers & Networking 1 7th August 2006 06:38 PM
Can't get Postfix to send/receive emails micko_escalade Servers & Networking 10 2nd February 2006 07:08 AM
send emails with mailgate, but not Exchange gabriellai Servers & Networking 0 29th July 2005 02:19 PM

Current GMT-time: 15:40 (Sunday, 20-08-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat