Log in

View Full Version : email from script



x[Warrior]x3500
06-11-2011, 12:43 AM
i have looked around and couldn't find anything , but i swear something about this was in someones sig :/

how can one email a message within a script?


UPDATE:

With the helpful suggestions posted below, i created this SMS texting procedure. this procedure is run by a free website host (so it will always be up and it can be used by anyone here :) ) . CURRENTLY, it only supports verizon numbers (dont know if it only works for only the US or not). i will add more carriers if ppl want me to.

to set it up:

1. add a global constant named "phonenumber" (string value of your phone number)... example:


const
phonenumber='5555555555';


2. add this function directly after DeclarePlayers() or forward it:


procedure sendTextMessage(msg:string);
var
test: integer;
begin
test:=(InitializeHTTPClient(false,false));
addpostvariable(test,'test',msg);
addpostvariable(test,'number',phonenumber);
postHTTPPageEx(test,'http://leafypiggy.com/test.php');
FreeHTTPClient(test);
end;


3. whenever you wish to send a text message use this command:


sendTextMessage('');

Zyt3x
06-11-2011, 12:46 AM
Searched "Send email script"
http://villavu.com/forum/showthread.php?t=47589&highlight=send+email+script

EDIT: Whoops! :redface: thanks, Awkwardsaw.. :)

Awkwardsaw
06-11-2011, 12:49 AM
that tut is in srl members ;)

basicly it uses php to send the email, and you have scar send POST data(or GET, if you want) to said php script

x[Warrior]x3500
06-11-2011, 12:50 AM
x[Warrior]x3500, you do not have permission to access this page. This could be due to one of several reasons:

Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

EDIT:

thanks guys i will look into that. getting tired of being at the store, coming back, and seeing my bot has stopped -.- . i need notifications!! :D (email->text)

Awkwardsaw
06-11-2011, 12:53 AM
also, its best to use freehostia as the web server, unless you want to deal with setting up apache and an email server. and the php procedure is email(), so you can look it up :)

i luffs yeww
06-11-2011, 12:59 AM
Or just set up apache on your machine that's botting, since you know it will be up anyway (botting). Would also be faster depending on your internet speeds, data size, etc. (if it's just a text or something I'm sure it'd be negligible), to a small degree. And way cooler.

Sex
06-11-2011, 02:06 AM
also, its best to use freehostia as the web server, unless you want to deal with setting up apache and an email server. and the php procedure is email(), so you can look it up :)
It is mail() not email().

Awkwardsaw
06-11-2011, 02:10 AM
It is mail() not email().

yes, typo ;)

Floor66
06-11-2011, 09:33 AM
Alternatively you could get a simple webhost that supports PHP and make a text file + php file which accepts POST requests from the bot and you'd just browse to there to see whether it's still going.

x[Warrior]x3500
06-15-2011, 04:28 AM
read first post for update and script :)