[Encore] Where do player requests get sent?

Daniel Jung jung at uib.no
Tue Nov 27 06:12:19 MST 2007


David Houghton skreiv:

>  On another unrelated note, when people login as guest (v4)
> they are able to request an account. Where is this request
> actually sent. None of our wizards get any mail and there are
> no errors reported.


This is v4. A look at the HTML source code of the page says:

<form ... action:".../xpress_client/character_application.html">

meaning, the form data get sent to $xpress_client, notably the verb 
:character_application_html(). There you will find


27:   $mail_agent:send_message(user, $character_request_list,
       "Character request", {"Player name: " + name, "Email address: "
       + email_address, "Real name: " + real_name, "Reason for request:
       ", @reason});


which is patterned like this:

       $mail_agent:send_message(from, to, subject, {message})

So the mail is sent to $character_request_list, which is a child of a 
mailbox, i.e., $mail_recipient. In order to get mail from that mailbox, 
you should subscribe to that mailbox and/or specify rerouting 
(mail_forward/mail_notify).

First, you should issue this command

    ;$character_request_list:add_forward(#2)

to have the request be forwarded (copied) to the MOO-inbox of #2. Still 
this is inside the MOO. Now you may want to specify

    ;#2.mail_options = {"netmail"}

in order for #2 to get the moo-internal mail out to its specified 
internet email address.

This is what I gathered from a quick look and a brief test, which proved 
successfull. Sorry I don't know all the details, as I rewrote that whole 
story completely for v5 and never used it in v4.


Good luck
- Daniel




More information about the Encore mailing list