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.
This is a read-only snapshot of the ComputerCraft forums,
taken in April 2020.
Real email sender
Started by Matthewaj, 01 June 2012 - 06:30 PMPosted 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
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?
Posted 01 June 2012 - 08:41 PM
Yes, using this function: http://php.net/manual/en/function.mail.php
Posted 01 June 2012 - 08:42 PM
it can be bad, if you change the program a bit it can spam an email really bad!real email sender? Couldn't that be dangerous?
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
Posted 01 June 2012 - 08:43 PM
Dangerous? LOL. No.real email sender? Couldn't that be dangerous?
It couldn't be "dangerous", but it could be used to spam.
Posted 01 June 2012 - 08:44 PM
Nothing that can't be done without this program, so I don't see the problem.it can be bad, if you change the program a bit it can spam an email really bad!real email sender? Couldn't that be dangerous?
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))
Posted 01 June 2012 - 08:54 PM
Thanks for the suggestion I'll change it in a second.By the way, on this line:You should use textutils.urlEncode, like so:http.request("http://computercraft.rupai.net/email.php?email="..email.."&subj="..subject.."&msg="..msg)
http.request("http://computercraft.rupai.net/email.php?email="..textutils.urlEncode(email).."&subj="..textutils.urlEncode(subject).."&msg="..textutils.urlEncode(msg))
Posted 10 March 2013 - 09:29 AM
Ok, is this project dead? Because it just exits after sending.
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.
Posted 12 March 2013 - 07:57 AM
This is not hard to make. Look up the http API. Then look up php mail
Posted 13 March 2013 - 01:52 AM
Min id if i use this in my os?
Posted 13 March 2013 - 05:30 AM
Please lock this since the website that is used by this programs doesn't exist anymore.
Posted 13 March 2013 - 05:42 AM
Don't reply to request a lock. That's what the report button is for. Locked.