SRL Archive - Help and Support

sending an email with simba


footballjds

2012-03-09 14:08:46

So, how would i be able to do this?

<3

the flea

2012-03-09 14:18:48

I don't know how sorry but may I ask why you would need to?

It would probably be easier to upload the data to a website or something similar.

footballjds

2012-03-09 14:20:40

From: the flea
I don't know how sorry but may I ask why you would need to?

It would probably be easier to upload the data to a website or something similar.


[email]number@txt.att.net[/email]

personal notification system to text my phone (:

Kyle Undefined

2012-03-09 14:45:11

You could build a page that is hosted, which would send the email when hit. Just have Simba do GetHTTPPage(); ;)

footballjds

2012-03-09 15:42:30

From: Kyle Undefined
You could build a page that is hosted, which would send the email when hit. Just have Simba do GetHTTPPage(); ;)


that would so not be what i want.

Kyle Undefined

2012-03-09 15:45:22

That's really the only way to get an email working in Simba.

footballjds

2012-03-09 15:46:22

From: Kyle Undefined
That's really the only way to get an email working in Simba.


simba can't open a connection with a website? :(
I remember using scar to do stuff similar.

Kyle Undefined

2012-03-09 15:46:57

What do you mean?

footballjds

2012-03-09 15:49:17

From: Kyle Undefined
What do you mean?


http://wiki.scar-divi.com/index.php?title=Category:Internet_Functions

Kyle Undefined

2012-03-09 15:50:52

Simba can do that, but there's no Email capability. That's why I said to build the page and call the GetHTTPPage or Post and hit that page that way.

footballjds

2012-03-09 16:05:12

From: Kyle Undefined
Simba can do that, but there's no Email capability. That's why I said to build the page and call the GetHTTPPage or Post and hit that page that way.


i wanna just open a connection with an email website… so it doesn't have to do that.

nickrules

2012-03-09 20:31:35

http://villavu.com/forum/showthread.php?t=47589&highlight=send+email+scar

That's the only way I've ever heard of it being done (though 'outdated', I'm sure it'd basically be the same). Perhaps there is an online service that you can retrofit this to work to?

Kyle Undefined

2012-03-09 20:32:42

That's exactly what I was saying to do lol.

Silent

2012-03-11 00:15:25

Not sure if you could mod this, but Dgby714 made something to do this to a private mail server a while ago.

You could probably make it work for what you are wanting to do.
http://villavu.com/forum/showpost.php?p=821649&postcount=11

Wizzup?

2012-03-11 06:53:00

You could just open a socket to a SMTP server and send the proper SMTP commands? It's not such a hard protocol.

footballjds

2012-03-11 15:02:37

From: Wizzup?
You could just open a socket to a SMTP server and send the proper SMTP commands? It's not such a hard protocol.


where do you suggest i start?
sorry, i have no prior knowledge about either

Justin

2012-03-13 04:16:11

From: footballjds
where do you suggest i start?
sorry, i have no prior knowledge about either


Made a quick .php snippet to send e-mails

http://srljustin.com/mail.php?to=[B]THEIR-EMAIL@WHATEVER.COM[/B]&subject=[B]THE-SUBJECT-HERE[/B]&body=[B]THE-EMAIL-MESSAGE-HERE[/B]

How to use this in Simba

writeln(GetPage('http://srljustin.com/mail.php?to=[B]THEIR-EMAIL@WHATEVER.COM[/B]&subject=[B]THE-SUBJECT-HERE[/B]&body=[B]THE-EMAIL-MESSAGE-HERE'));

That will printout 'Message successfully sent!' if the e-mail was sent or 'Message delivery failed…' if it failed.

Please don't abuse this, I keep access logs on web-server. If I see a IP address abusing this, they will be banned from the site.

Silent

2012-03-13 14:38:44

From: [J]ustin
Made a quick .php snippet to send e-mails

http://srljustin.com/mail.php?to=[B]THEIR-EMAIL@WHATEVER.COM[/B]&subject=[B]THE-SUBJECT-HERE[/B]&body=[B]THE-EMAIL-MESSAGE-HERE[/B]

How to use this in Simba

writeln(GetPage('http://srljustin.com/mail.php?to=[B]THEIR-EMAIL@WHATEVER.COM[/B]&subject=[B]THE-SUBJECT-HERE[/B]&body=[B]THE-EMAIL-MESSAGE-HERE'));

That will printout 'Message successfully sent!' if the e-mail was sent or 'Message delivery failed…' if it failed.

Please don't abuse this, I keep access logs on web-server. If I see a IP address abusing this, they will be banned from the site.


Would you mind posting the .php source? I'd like to see how to did this. :redface:

Kyle Undefined

2012-03-13 15:13:16

Sending mail in PHP is rather easy :p

Silent

2012-03-13 16:17:30

From: Kyle Undefined
Sending mail in PHP is rather easy :p


I know, but I still want to see the source :p

footballjds

2012-03-13 16:26:53

From: Kyle Undefined
Sending mail in PHP is rather easy :p

not if you've never done it. :P


From: Silent SPY
I know, but I still want to see the source :p


me2

Kyle Undefined

2012-03-13 16:28:47

Here's how: http://php.net/manual/en/function.mail.php

Justin

2012-03-13 16:50:17

Here is the php source

[php]
<?php
$auto = "\r\n\r\n\r\nThis message was sent from a php script.\r\nIf you believe you have been spammed, please contact [J]ustin at http://villavu.com/forum/private.php?do=newpm&u=9308";

$to = $_GET['to'];
$subject = $_GET['subject'];
$body = $_GET['body'] . $auto ;
$headers = 'From: admin@srljustin.com' . "\r\n" .
'Reply-To: admin@srljustin.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
if (mail($to, $subject, $body, $headers)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed…</p>");
}
?>
[/php]