how to send pm from notificator?

Started by turaper, December 26, 2012, 04:18:39 PM

Previous topic - Next topic

turaper

Hey there guys...

I have an script and i want that when you complete an action.. you recieve a pm... but not from admin or any user.
I want to know how to set to notificator send the pm...

2.0.3 smf version
dafult  theme

Colin

Hi There,

The PM has to be sent from someone. Maybe you could create another user that is just used for sending PMs would that work?
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

butch2k

Nope PM can be sent by non-existing users (guest in fact).
use something akin to this:

$from = array(
'id' => '0',
'name' => 'Chuck Norris',
'username' => 'Chuck Norris'
);
sendpm($recipients, $subject, $message, false, $from);

Colin

I'll be darned. I have never seen that used before.
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

Advertisement: