Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 06-04-2017, 03:05 AM
KatFennec's Avatar
KatFennec KatFennec is offline
Member
 
Join Date: Apr 2017
Posts: 57
Gender: Female
Credits: 7,858
KatFennec is on a distinguished road
Default Sending automatic PMs from SYSTEM

Does anyone know how to automatically send PMs to users from SYSTEM, or have any pointers as to how I would do so?
__________________
Reply With Quote
  #2  
Old 06-04-2017, 09:36 AM
Dinocanid's Avatar
Dinocanid Dinocanid is offline
Member
 
Join Date: Aug 2016
Location: Maryland, USA
Posts: 516
Gender: Unknown/Other
Credits: 65,358
Dinocanid is on a distinguished road
Default

This is how I send automatic PMs when users first register.
PHP Code:
$pm = new PrivateMessage(); // Send them a message
    
$pm->setsender('SYSTEM');
    
$pm->setrecipient(htmlentities(addslashes(trim($mysidia->input->post("username")))));
    
$pm->setmessage("Title""Your Message");
    
$pm->post(); 
You'll most likely have to replace $mysidia->input->post("username") with $mysidia->user->username depending on how you plan to use it.
__________________
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 12:13 PM.

Currently Active Users: 9784 (0 members and 9784 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636