-
21st December 2007, 04:46 AM
#1
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
-
21st December 2007, 05:11 AM
#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 !!
Similar Threads
-
By jmbiram in forum Using Fedora
Replies: 18
Last Post: 17th June 2008, 11:05 PM
-
By mudarra in forum Servers & Networking
Replies: 1
Last Post: 7th August 2006, 06:38 PM
-
By micko_escalade in forum Servers & Networking
Replies: 10
Last Post: 2nd February 2006, 07:08 AM
-
By gabriellai in forum Servers & Networking
Replies: 0
Last Post: 29th July 2005, 02:19 PM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
[[template footer(Guest)]]