Story Time Generator and SendMail
Posted: Sat Mar 01, 2003 1:49 pm
I'm sure you've all seen something like this before, but I'm just learning PHP, and I decided to do it for fun, and to help me learn.
http://storytime.mine.nu
It's a simple story generator, that uses the words you fill in to create some stories. But what I want to do now is allow users to e-mail those stories to their friends. I've gone thru my PHP book "Visual Quickstart Guide to PHP for the WWW" and copied the code exactly, but it doesn't work. I've been told that it's probably due to an incorrect install or bad permissions of sendmail on my apache, which I am running on 10.2.4.
Also, how can I take the text from the story that is created (ie. the entire story, including title and author), and make it one large string, so that I can make that string the Body of the message that is to be sent.
If someone could help, that would be great. I'm sure this doesn't even make much sense.
By the way, the code to send the e-mail is only on the second story, so select it if you want to see it.
Thanks
Jon
http://storytime.mine.nu
It's a simple story generator, that uses the words you fill in to create some stories. But what I want to do now is allow users to e-mail those stories to their friends. I've gone thru my PHP book "Visual Quickstart Guide to PHP for the WWW" and copied the code exactly, but it doesn't work. I've been told that it's probably due to an incorrect install or bad permissions of sendmail on my apache, which I am running on 10.2.4.
Also, how can I take the text from the story that is created (ie. the entire story, including title and author), and make it one large string, so that I can make that string the Body of the message that is to be sent.
If someone could help, that would be great. I'm sure this doesn't even make much sense.
By the way, the code to send the e-mail is only on the second story, so select it if you want to see it.
Thanks
Jon