SRL Archive - OSR Help

E-Mail?


Illkillutill

2010-05-13 13:28:30

Is there any way that scar can directly email you?

Sir R. M8gic1an

2010-05-13 13:40:24

Make it send the information to an online email service which will email you.

~RM

Illkillutill

2010-05-13 13:45:18

Can you give me a good kick start? Not really tell me exactly how to do it but just what functions to use?

Sir R. M8gic1an

2010-05-13 13:49:37

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

Heysus

2010-05-13 14:26:22

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.

 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;

Gu3st...

2010-05-13 14:29:32

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

Illkillutill

2010-05-13 14:51:24

@ Zytex

It says I don't have permission to view that page? srl membs prolly? dont know why they took my membs away lol…

Gu3st...

2010-05-13 14:59:57

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?

Illkillutill

2010-05-13 15:00:49

I guess lol… I'm talking to Camaro atm, says he will let them know…

Gu3st...

2010-05-13 15:06:26

Oh.. I have already pmed nielsie95 about it :P

Illkillutill

2010-05-13 15:12:07

:p no biggy

it can't hurt anything.

Gu3st...

2010-05-13 15:16:54

Hehe now there is a thread about this in the member section and I pmed nielsie.. :P

Illkillutill

2010-05-14 00:06:55

Amazing!

I went from a registered member to a SRL member? :P

Thanx guys