External Script to use Mailbox
 

External Script to use Mailbox

Started by pR0Ps, 25 June, 2010, 19:24:48

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pR0Ps

Hey,

Is is possible to use an external script to send mail to a user? What I am attempting to do is send an offline message to a user when a request that they have made (to a release/request bot I've made) has been filled. Is there a way to to this from a script or will I have to modify the mailbox database file manually?

Thanks,

pR0Ps

EDIT: After some experimenting, simply updating the file is not enough, the entire DiXBot script must restart. Any ideas or am I going to have to develop my own mailbox script?

Dessamator

There are various ways to do it, you can edit the file, using the script and add the new offline message, you can  use the function from the offline script through your "request/release "script.(using dofile("offlinescript.lua")), you can copy the offline script function to your script and that will store the offline message.

There are millions of ways to kill a cat, you just have to choose the most effective way for you.
Ignorance is Bliss.

SMF spam blocked by CleanTalk