This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Matthewaj's profile picture

Real email sender

Started by Matthewaj, 01 June 2012 - 06:30 PM
Matthewaj #1
Posted 01 June 2012 - 08:30 PM
Matthewaj


Well recently I decided to come up with a real email sender for cc by using a combination between php(website side) and lua(client side) so I came up with this.


Download:




if you want to download it straight onto your computer:


pastebin get MWT8gWA0 email
cant_delete_account #2
Posted 01 June 2012 - 08:40 PM
Cool, so basically just sending the subject, etc. through params then using PHP to send the e-mail?
Matthewaj #3
Posted 01 June 2012 - 08:41 PM
Yes, using this function: http://php.net/manual/en/function.mail.php
svennp #4
Posted 01 June 2012 - 08:42 PM
real email sender? Couldn't that be dangerous?
it can be bad, if you change the program a bit it can spam an email really bad!
Matthewaj #5
Posted 01 June 2012 - 08:43 PM
real email sender? Couldn't that be dangerous?

Yes, but I'll modify it later to accept only a few email per minute
cant_delete_account #6
Posted 01 June 2012 - 08:43 PM
real email sender? Couldn't that be dangerous?
Dangerous? LOL. No.
It couldn't be "dangerous", but it could be used to spam.
MysticT #7
Posted 01 June 2012 - 08:44 PM
real email sender? Couldn't that be dangerous?
it can be bad, if you change the program a bit it can spam an email really bad!
Nothing that can't be done without this program, so I don't see the problem.
cant_delete_account #8
Posted 01 June 2012 - 08:48 PM
By the way, on this line:

http.request("http://computercraft.rupai.net/email.php?email="..email.."&subj="..subject.."&msg="..msg)
You should use textutils.urlEncode, like so:

http.request("http://computercraft.rupai.net/email.php?email="..textutils.urlEncode(email).."&subj="..textutils.urlEncode(subject).."&msg="..textutils.urlEncode(msg))
Matthewaj #9
Posted 01 June 2012 - 08:54 PM
Thanks for the suggestion I'll change it in a second.
CH3DD4R #10
Posted 10 March 2013 - 09:29 AM
Ok, is this project dead? Because it just exits after sending.
Dlcruz129 #11
Posted 10 March 2013 - 09:40 AM
Ok, is this project dead? Because it just exits after sending.

Of course it's dead, no one has replied since May 2012.
hego555 #12
Posted 12 March 2013 - 07:57 AM
This is not hard to make. Look up the http API. Then look up php mail
Mackan90096 #13
Posted 13 March 2013 - 01:52 AM
Min id if i use this in my os?
TheEvilSocks #14
Posted 13 March 2013 - 05:30 AM
Please lock this since the website that is used by this programs doesn't exist anymore.
Lyqyd #15
Posted 13 March 2013 - 05:42 AM
Don't reply to request a lock. That's what the report button is for. Locked.