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

Hi,

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?

Thanks
__________________
Powered By Fedora 8 - Linux User #459400 - Rio de Janeiro, Brazil
Reply With Quote
  #2  
Old 21st December 2007, 05:11 AM
joiguru Offline
Registered User
 
Join Date: Jun 2007
Posts: 2
Hi
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
Reply

Tags
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 18th June 2008 12:05 AM
mail woes - root can't send emails mudarra Servers & Networking 1 7th August 2006 07: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 03:19 PM


Current GMT-time: 23:41 (Saturday, 22-11-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

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
Mandelieu-la-Napoule - El Malah Travel Photos - Ajalpan