This code will automatically send new users a welcome message when they register.
Step 1.) Open up
register.php. Find the line that looks like the following:
PHP Code:
$document->addLangvar($mysidia->lang->success.$mysidia->input->post("username").$mysidia->lang->success2);
Step 2.) Right under that line, paste this:
PHP Code:
$pm = new PrivateMessage(); // Send them a welcoming message
$pm->setsender('YourUsernameHere');
$pm->setrecipient(htmlentities(addslashes(trim($mysidia->input->post("username")))));
$pm->setmessage("the message title", "put your welcoming message here");
$pm->post();