Hi! I switched from D5 to D6 and cannot find the function to activate automatic "welcome" private messages to new members. It worked on D5 but during the conversion was lost.

Can anyone please direct me to the area where I can set this up?

Thank you!
Melissa
http://www.thewomensnest.com

Comments

rick_deputy’s picture

I also want to send automatic private messages to new members at a given set interval.

lesson 1 via private message to new member -> day 1
lesson 2 -> day 5
lesson 3 -> day 9
...

any idea on how this can be done?

Rick

bls20’s picture

Hi! I am also looking to add this functionality, did anyone have any luck?

steveadamo’s picture

*bouncing* this one, as I too am looking for a solution... any luck here? :)

steveadamo’s picture

this should really be handled via hook_user, etc. but i directly edited the user.module (modules/user/user.module), and added the following line:

    // send private message to new users
    privatemsg_new_thread(array(user_load($user->uid)), 'message title here', 'message body here', array('author' => user_load(2)));

that last part array('author' => user_load(2)) is just making the message come "from" the primary account on the site (steve)...

edit: forgot to mention where i added the line... :)

within the user_save function, after the following line:

  db_query("UPDATE {users} SET data = '%s' WHERE uid = %d", serialize($data), $user->uid);