External Script to use Mailbox
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

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