PHP Code:
for m = GetInboxNumItems(), 1, -1 do TakeInboxItem( m ) end
for m = GetInboxNumItems(), 1, -1 do TakeInboxMoney( m ) end
for m = GetInboxNumItems(), 1, -1 do
AutoLootMailItem( m )
end
CheckInbox()
Also tried a random subject & body mailer - got weird items/results from this:
PHP Code:
char = {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z","0","1","2","3","4","5","6","7","8","9", "@", "#", "$", "%", "&", "?"}
---------------------------------------------------------------------------------
---------------------------------------------------------------------------------
pass = {}
function generateS(s, l) -- args: smallest and largest possible password lengths, inclusive
size = math.random(s,l) -- random password length
for z = 1,size do
case = math.random(1,2) -- randomly choose case (caps or lower)
a = math.random(1,#char) -- randomly choose a character from the "char" array
if case == 1 then
x=string.upper(char[a]) -- uppercase if case = 1
elseif case == 2 then
x=string.lower(char[a]) -- lowercase if case = 2
end
table.insert(pass, x) -- add new index into array.
end
return(table.concat(pass)) -- concatenate all indicies of the "pass" array, then print out concatenation.
end
subJ = generateS(3,17)
bodJ = generateS(15,75)
SendMail("CharNameHERE", subJ ,bodJ )
PQR_WriteToChat("|cffb73737Mail sent. "..subJ..".|cffffffff", "Mail")