Re: AutoNotification Problems

From: George Greer (
Date: 03/26/99

On Sat, 27 Mar 1999, Julian Buckley wrote:

>      sprintf(buf, "%s", system_body);
>      sprintf(filename, "system_info");
>      sprintf(buf, "elm -s %s %s < %s", system_subject, email1, filename);
>      system(buf);
>      sprintf(buf, "rm %s", filename);
>      system(buf);

It'd be: "mail -s '%s' %s < %s"

You need the ' ' for a multi word subject.

>different syntax...can anyone see what's wrong with the elm function, and

Do you have 'elm' installed?  I don't personally.

BTW, do "remove(filename);" instead of the last two lines.

If you really get picky about the temporary file, look into the popen()

George Greer            | The CircleMUD FAQ   |

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  |

This archive was generated by hypermail 2b30 : 12/15/00 PST