Is there any way that scar can directly email you?
Is there any way that scar can directly email you?
Make it send the information to an online email service which will email you.
~RM
Can you give me a good kick start? Not really tell me exactly how to do it but just what functions to use?
You'll have to use scar's http post functions to post it to a form or if the website uses PHP's get method then you'll need to use scar's openWebPage to send the info.
First step would be finding a place that'll send you the email.
Then read it's source to figure out what variables they use in their form.
~RM
You can also use an smtp server.
This is what I use. It will only work for comcast though, you will have to change it if you want it to work with a different smtp server.
SCAR Code:Function WaitForResponse(c : Integer): string;
begin
repeat
if (ReadConnectionData(c, Result))then
begin
Wait(50);
end else
begin
Exit;
end;
until((Result<>'') or (not IsConnectionOpen(c)));
end;
Procedure SendEmail;
var
c : Integer;
begin
c := OpenConnection('smtp.comcast.net', 25, 1000);
WaitForResponse(c);
SendConnectionData(c, 'HELO me' + #13#10);
WaitForResponse(c);
SendConnectionData(c, 'MAIL FROM: emailaddress' + #13#10);
WaitForResponse(c);
SendConnectionData(c, 'RCPT TO: <emailaddress>' + #13#10);
WaitForResponse(c);
SendConnectionData(c, 'DATA' + #13#10);
WaitForResponse(c);
SendConnectionData(c, 'Subject: yoursubject' + #13#10#13#10);
SendConnectionData(c, 'This is the message it will send' + #13#10);
SendConnectionData(c, '.' + #13#10);
WaitForResponse(c);
end;
Trilez made a function to do exactly what you are asking for
Search "Get SCAR to Email you"
EDIT: Found the thread here: http://villavu.com/forum/showthread.php?t=47589
@ Zytex
It says I don't have permission to view that page? srl membs prolly? dont know why they took my membs away lol...
Oh lol, yes it's members only... And you indeed were a SRL Member for some time ago... Maybe some of the admins did something they shouldn't have done?
I guess lol... I'm talking to Camaro atm, says he will let them know...
Oh.. I have already pmed nielsie95 about it :P
no biggy
it can't hurt anything.
Hehe now there is a thread about this in the member section and I pmed nielsie.. :P
Amazing!
I went from a registered member to a SRL member? :P
Thanx guys
There are currently 1 users browsing this thread. (0 members and 1 guests)