Create A Forum Installed
0 Members and 0 Guests are viewing this topic.
"use strict";function sendPM(n,t,i,r){var u,f;return $.ajax({url:smf_scripturl+"?action=pm;sa=send",type:"GET",async:!1}).done(function(n){u=$(n).find("input[name='seqnum']").attr("value")}).fail(function(){return console.log("SendPM: Error when retrieving the sequence number"),!1}),f="to="+n+"&bcc="+t+"&subject="+encodeURIComponent(i)+"&sel_face=&sel_size=&sel_color=&message="+encodeURIComponent(r)+"&message_mode=0&f5c47df6060e=9ff02ff520d1924481c3bf9c526aa00a&seqnum="+u+"&replied_to=0&pm_head=0&f=inbox&l=-1&to="+n+"&bcc="+t,$.ajax({url:smf_scripturl+"?action=pm;sa=send2",type:"POST",data:f}).done(function(){console.log("SendPM: Sent PM to "+n)}).fail(function(){return console.log("SendPM: Error when sending PM"),!1}),!0}
sendPM(recipient, bcc, subject, message);
Looks neat
Login with your social network