<!-- MHonArc v2.4.4 --> <!--X-Subject: Re: [MUD-Dev] Mail from mud --> <!--X-From-R13: ptNnzv-pt.UenlEntr.Sqzbagba.OP.QO (Quevf Uenl) --> <!--X-Date: Thu, 01 Jan 1998 09:30:33 +0000 --> <!--X-Message-Id: 9801010322.8pfc@ami-cg.GraySage.Edmonton.AB.CA --> <!--X-Content-Type: text/plain --> <!--X-Head-End--> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> <title>MUD-Dev message, Re: [MUD-Dev] Mail from mud</title> <!-- meta name="robots" content="noindex,nofollow" --> <link rev="made" href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA"> </head> <body background="/backgrounds/paperback.gif" bgcolor="#ffffff" text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000"> <font size="+4" color="#804040"> <strong><em>MUD-Dev<br>mailing list archive</em></strong> </font> <br> [ <a href="../">Other Periods</a> | <a href="../../">Other mailing lists</a> | <a href="/search.php3">Search</a> ] <br clear=all><hr> <!--X-Body-Begin--> <!--X-User-Header--> <!--X-User-Header-End--> <!--X-TopPNI--> Date: [ <a href="msg01051.html">Previous</a> | <a href="">Next</a> ] Thread: [ <a href="">Previous</a> | <a href="msg01051.html">Next</a> ] Index: [ <A HREF="author.html#01052">Author</A> | <A HREF="#01052">Date</A> | <A HREF="thread.html#01052">Thread</A> ] <!--X-TopPNI-End--> <!--X-MsgBody--> <!--X-Subject-Header-Begin--> <H1>Re: [MUD-Dev] Mail from mud</H1> <HR> <!--X-Subject-Header-End--> <!--X-Head-of-Message--> <UL> <LI><em>To</em>: <A HREF="mailto:mud-dev#null,net">mud-dev#null,net</A></LI> <LI><em>Subject</em>: Re: [MUD-Dev] Mail from mud</LI> <LI><em>From</em>: <A HREF="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</A> (Chris Gray)</LI> <LI><em>Date</em>: Wed, 31 Dec 97 20:22:02 MST</LI> </UL> <!--X-Head-of-Message-End--> <!--X-Head-Body-Sep-Begin--> <HR> <!--X-Head-Body-Sep-End--> <!--X-Body-of-Message--> <PRE> [Zoran:] [Sorry, my editor chopped your long lines...] :Heyas...gonna ask for a little technical info here. I would like to have my c :player, using a stored email address, but I'm not too sure how to go about con :Anyone done this, or something similar? I was thinking of somehow writing a f :from the mud queueing the mail for delivery, but I really am not sure how to d I have optional stuff in my scenario to do that, and also reading and posting to newsgroups. However, it relies on the hosting system having a certain setup, with standard programs for sending mail and posting news. In my Amiga setup (fairly similar to what UNIX systems use), all of the needed stuff is actually specified on the command line to the 'sendmail' command. Keeping in mind that this is AmigaMUD source code, and that the system commands are Amiga specific, here is the code for the final send, taken right out of my sources: define tp_email proc emailSendLetter(string s)void: int fd; string cmd; thing me; me := Me(); if s = "" then Print("Empty letter - not sent.\n"); else /* note: server runs atomically, so no conflict over the temp file */ fd := FileOpenForWrite("T:MUD.letter"); if fd = 0 then Print("Sorry - can't open letter file.\n"); else Log("'" + me@p_pName + "' mailing to " + me@p_pEmailTo + "\n"); FileWrite(fd, "X-MailSoftware: AmigaMUD telegram office\n"); FileWrite(fd, "\n"); FileWrite(fd, s); FileClose(fd); cmd := "sendmail < T:MUD.letter -f \"" + me@p_pName + "\" -t " + me@p_pEmailTo; if me@p_pEmailSubject ~= "" then cmd := cmd + " -s \"" + me@p_pEmailSubject + "\""; fi; cmd := cmd + " -R \"" + me@p_pNRealName + "\""; Execute(cmd); Execute("delete T:MUD.letter"); /* do this so that local mail, as in name@here, will work */ if NewsThing@p_pRunUUXQT then Execute("uuxqt"); fi; fi; fi; me -- p_pEmailTo; me -- p_pEmailSubject; corp; -- Chris Gray cg#ami-cg,GraySage.Edmonton.AB.CA </PRE> <!--X-Body-of-Message-End--> <!--X-MsgBody-End--> <!--X-Follow-Ups--> <HR> <!--X-Follow-Ups-End--> <!--X-References--> <!--X-References-End--> <!--X-BotPNI--> <UL> <LI>Prev by Date: <STRONG><A HREF="msg01051.html">Re: [MUD-Dev] Commercial value of RP</A></STRONG> </LI> <LI>Next by thread: <STRONG><A HREF="msg01051.html">Re: [MUD-Dev] Commercial value of RP</A></STRONG> </LI> <LI>Index(es): <UL> <LI><A HREF="index.html#01052"><STRONG>Date</STRONG></A></LI> <LI><A HREF="thread.html#01052"><STRONG>Thread</STRONG></A></LI> </UL> </LI> </UL> <!--X-BotPNI-End--> <!--X-User-Footer--> <!--X-User-Footer-End--> <ul><li>Thread context: <BLOCKQUOTE><UL> <LI><strong><A NAME="01052" HREF="msg01052.html">Re: [MUD-Dev] Mail from mud</A></strong>, Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Thu 01 Jan 1998, 09:30 GMT <LI><strong><A NAME="01051" HREF="msg01051.html">Re: [MUD-Dev] Commercial value of RP</A></strong>, Travis Casey <a href="mailto:efindel#polaris,net">efindel#polaris,net</a>, Wed 31 Dec 1997, 22:45 GMT <LI><strong><A NAME="01037" HREF="msg01037.html">Re: [MUD-Dev] OT: Mud Settings</A></strong>, Travis Casey <a href="mailto:efindel#polaris,net">efindel#polaris,net</a>, Wed 31 Dec 1997, 00:22 GMT <LI><strong><A NAME="01026" HREF="msg01026.html">Re: [MUD-Dev] Mud Settings</A></strong>, Travis Casey <a href="mailto:efindel#polaris,net">efindel#polaris,net</a>, Tue 30 Dec 1997, 13:57 GMT <LI><strong><A NAME="01025" HREF="msg01025.html">Re: [MUD-Dev] Mud Settings</A></strong>, Travis Casey <a href="mailto:efindel#polaris,net">efindel#polaris,net</a>, Tue 30 Dec 1997, 13:42 GMT </UL></BLOCKQUOTE> </ul> <hr> <center> [ <a href="../">Other Periods</a> | <a href="../../">Other mailing lists</a> | <a href="/search.php3">Search</a> ] </center> <hr> </body> </html>