Hi,

I'm New to PHP, I'm running 4.1.2

I'm switching over from perl, trying to get a basic mail form going, trying
to get some freeware running in the meantime while I'm learning PHP and can
write my own.  I'm setting up a freeware script called "Phorm", it was
previously called "PHPMail".  I got it from http://www.phorm.com/  Anyone
here have experience with this script?

For some reason I'm getting errors when trying to send a test e-mail, and
I've followed the setup instructions for phorm to the letter, the readme
claims there are only a couple of settings to make in the config file and in
the html form itself - I thought this one would be a no brainer.  I did run
the test.php script when I installed and tested PHP on my server - it's
fine, and I also installed MySQL and have phpbb (Forum) running fine now
with MySQL, so I think php is set up correctly.

Do I need to set a path to the PHP library like I do for perl scripts or
anything like that?  I have pasted the code for my html form and the php
config script below, these are the only two files readme tells me I need to
setup for phorm to work correctly.  Can anyone think of what I might be
doing wrong or am missing?

I've had several different errors in the past, but the latest batch are -

" 090 - There has been an error, and your information has not been sent.
Alerts:
105 - Mail function failed on user email for template ./lib/generic.txt.
111 - Mail function failed on sending alerts."

Thanks.

HTML form...

<HTML>
<HEAD>
<TITLE>Phorm Test: No Configuration File</TITLE>
</HEAD>

<BODY BGCOLOR=WHITE TEXT=MAROON>
<FORM METHOD=POST ACTION="phorm.php">

<B>Name:</B> <INPUT TYPE=TEXT NAME="Name"> &nbsp;&nbsp;
<B>Email:</B> <INPUT TYPE=TEXT NAME="PHORM_FROM">
<BR><BR>

<B>Comment:</B>
<TEXTAREA NAME="Comment" COLS=50 ROWS=3></TEXTAREA>
<BR><BR>

<INPUT TYPE=SUBMIT VALUE="   Submit   ">
</FORM>

</BODY>
</HTML>

phormconfig.php ...

<?php
# This is the global configuration file. It's read every time Phorm runs.
# If the form calling Phorm has a local (form-specific) configuration file,
# settings in it will override settings here.

# This variable indicates that a local config file is NOT required.
  $PHORM_RCONFIG = "N";

  $PHORM_ALERTTO = "[EMAIL PROTECTED]"; // Change to your email address

  $PHORM_TO      = "[EMAIL PROTECTED]"; // Change to your email address
  $PHORM_SUBJECT = "Form Data";          // The subject of the email message

  $PHORM_TMPL    = ph_GENERIC;           // A generic email template
  $PHORM_ACK     = ph_GENERIC;           // A generic ack template
?>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to