The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
Thanks,
Dano.
Dano.
Perl is fairly easy to tweak into doing what you want. Have a look at
http://www.perlfect.com/articles/sendmail.shtml
.. for a good example of how to use sendmail on the server.
Basically, that script gets called when the user fills in the details on your form and hits submit. It can pick out what the user has filled in with "$query->param('foo')" and opens a pipe to the sendmail program with 'open(SENDMAIL, "|$sendmail")', sending arguments like the subject and return addresses as plain text.
The most common issue with these kinds of scripts is the location of the sendmail binary.. anyone know where it is on the freeola servers?
Anyway, back to your question.. if you're just emailing stuff to yourself, set something like $to = "[email protected]"; (where lewq@ntlworld is your email address, of course..). From there you can format your content nicely.
Assuming that the point of the form is to find out what someone's favourite game is (lame, I know.. I just pulled it out of the air..), and that the form has text boxes named the following..
-> their_email
-> their_name
-> favourite_game
Try something like this..
$content = "Hi me,\n".$query->param('their_name')."'s favourite game is ".$query->param('favourite_game').".\n\nTheir email address is ".$query->param('their_email').".\nHave fun.";
If that went over your head, you probably don't need to know. Just try copying and pasting, and if that doesn't work, there are a thousand people out there who could explain it better than I can :)
The results are sent to you in an E-mail???
You want the E-mail to be easy to read???
Is that what your after???
Dano.
Thanks,
Dano.