catalyst2 community forums  

Go Back   catalyst2 community forums > Support > Scripting Support

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 21-05-2006, 03:07 PM   #1 (permalink)
Registered User
 
Join Date: May 2006
Posts: 7
PHP Flash 8 form

Hi there,

I'm currently having problems with an online web form. Its a fairly basic php based form created in flash 8. It contains three fields, 1.name; 2.email address; 3.comment;

The problem is that when i go to send the form, it confirms the sending by saying "thank you, message sent". But when i go to check the inbox of the receiving email address, it appears to be empty, the email message was not received.

Therefore, i was wondering if anyone could spare some time to help me out (any thoughts, ideas on why im having this problem), would be much appreciated.

p.s. (one of my ideas is that my php code is not up to version 4 standards, therefore that might be conflicting with catalyst2's php4 support)

here's the current php code im using....

<?
$adminaddress = "pw@hotmail.com";
$siteaddress ="http://www.neworks.co.uk";
$sitename = "Neworks Media";

if ($REMOTE_ADDR == "") $ip = "no ip";
else $ip = getHostByAddr($REMOTE_ADDR);
$date = date("m/d/Y H:i:s");
$action = $HTTP_POST_VARS['action'] ;
$email = $HTTP_POST_VARS['email'] ;
$name = $HTTP_POST_VARS['name'] ;
$comments = $HTTP_POST_VARS['comments'] ;

if ($action == "send") {
mail ("$adminaddress","site feedback",
"
Name: $name
Email: $email\n
Their comment:
------------------------------
$comments\n

Logged Info :
------------------------------
Using: $HTTP_USER_AGENT
Hostname: $ip
IP address: $REMOTE_ADDR
Date/Time: $date","FROMost@neworks.com" ) ;

$sendresult = "Thank you. message sent.";
$send_answer = "answer=";
$send_answer .= rawurlencode($sendresult);
echo $send_answer;
} //
?>

Last edited by renuar; 21-05-2006 at 03:11 PM.
renuar is offline   Reply With Quote
Old 21-05-2006, 03:12 PM   #2 (permalink)
Administrator
 
Jacob's Avatar
 
Join Date: May 2003
Posts: 1,299
Do you have a windows or linux account with us?

Regards,

Jacob
Jacob is offline   Reply With Quote
Old 22-05-2006, 03:27 PM   #3 (permalink)
Registered User
 
Join Date: May 2006
Posts: 7
Yes, i have a windows account.
renuar is offline   Reply With Quote
Old 22-05-2006, 07:17 PM   #4 (permalink)
Administrator
 
Jacob's Avatar
 
Join Date: May 2003
Posts: 1,299
You need to make sure the 'from' email address on the script exists on our mail server otherwise the email will not send.

Regards,

Jacob
Jacob is offline   Reply With Quote
Old 23-05-2006, 02:07 PM   #5 (permalink)
Registered User
 
Join Date: May 2006
Posts: 7
Alright Jacob, within the 'From' command, i changed 'post' to 'mail' and i also changed the '.com' address to '.co.uk' (as .com was wrong). I then uploaded the new php file to my website. But to no avail, i got the same problem, no email within my pw@hotmail.com account, and none in my mail@neworks.co.uk account.

note: after uploading the new php file, i cleared my browsers cache (to avoid further problems).

Below is the new updated php code.

<?
$adminaddress = "pw@hotmail.com";
$siteaddress = "http://www.neworks.co.uk";
$sitename = "Neworks Media";

if ($REMOTE_ADDR == "") $ip = "no ip";
else $ip = getHostByAddr($REMOTE_ADDR);
$date = date("m/d/Y H:i:s");
$action = $HTTP_POST_VARS['action'];
$email = $HTTP_POST_VARS['email'];
$name = $HTTP_POST_VARS['name'];
$comments = $HTTP_POST_VARS['comments'];

if ($action == "send") {
mail ("$adminaddress","site feedback",
"

Name: $name
Email: $email\n
Their comment:
------------------------------
$comments\n

Logged Info :
------------------------------
Using: $HTTP_USER_AGENT
Hostname: $ip
IP address: $REMOTE_ADDR
Date/Time: $date","FROM:mail@neworks.co.uk" );


$sendresult = "Thank you. message sent.";
$send_answer = "answer=";
$send_answer .= rawurlencode($sendresult);
echo $send_answer;
} //
?>


any ideas??

Last edited by renuar; 23-05-2006 at 02:31 PM.
renuar is offline   Reply With Quote
Old 23-05-2006, 09:22 PM   #6 (permalink)
Bring me your problems :p
 
paulredpath's Avatar
 
Join Date: Jan 2003
Location: /dev/ahhhhhhhhh
Posts: 3,537
So mail@neworks.co.uk is setup in helm as a mailbox?
paulredpath is offline   Reply With Quote
Old 24-05-2006, 06:28 PM   #7 (permalink)
Registered User
 
Join Date: May 2006
Posts: 7
well paul...

Im able to log in as (mail@neworks.co.uk) and access my email via the catalyst2 'quick links' panel (under the option 'webmail'). I successfully received a number of test emails which i sent from hotmail, so there doesn't seem to be no problem there, although, one thing which i did notice is that when i log into Helm, in the 'User Main Menu' section, under the 'Messages' panel there's no indication that I've received any new emails (or any for that matter), its always empty. ???

so regarding your question...im not sure if mail@neworks.co.uk is setup in Helm as a mailbox, how can i check? (or even what steps do i take to set it up with helm)

thanks for your time
renuar is offline   Reply With Quote
Old 24-05-2006, 06:35 PM   #8 (permalink)
Bring me your problems :p
 
paulredpath's Avatar
 
Join Date: Jan 2003
Location: /dev/ahhhhhhhhh
Posts: 3,537
Just if its setup in helm under 'pop3 accounts'
paulredpath is offline   Reply With Quote
Old 24-05-2006, 09:27 PM   #9 (permalink)
Registered User
 
Join Date: May 2006
Posts: 7
yes, it is set up, under mail@neworks.co.uk --- and its set to catch all - auto responder is off.
renuar is offline   Reply With Quote
Old 25-05-2006, 12:28 AM   #10 (permalink)
Bring me your problems :p
 
paulredpath's Avatar
 
Join Date: Jan 2003
Location: /dev/ahhhhhhhhh
Posts: 3,537
Could you open a ticket for this with all the details, looks like some debugging is needed
paulredpath is offline   Reply With Quote
Old 26-05-2006, 12:54 PM   #11 (permalink)
Registered User
 
Join Date: May 2006
Posts: 7
what exactly do you mean by 'open a ticket'?
sorry, im not familiar with the phrase.
renuar is offline   Reply With Quote
Old 26-05-2006, 04:27 PM   #12 (permalink)
Bring me your problems :p
 
paulredpath's Avatar
 
Join Date: Jan 2003
Location: /dev/ahhhhhhhhh
Posts: 3,537
Just mean contact support, you can email support@catalyst2.com to raise a 'ticket' or support request
paulredpath is offline   Reply With Quote
Old 27-05-2006, 01:44 PM   #13 (permalink)
Registered User
 
Join Date: May 2006
Posts: 7
ok Paul, thanks for that.

I just recently discovered something, i think this might be the cause of the problem.

Under Helms 'Domain Menu' interface, i clicked the 'Advanced Domain options' icon, once in, i clicked the 'PHP version' icon, this immediately brought up the PHP version status - it was set to 'PHP Disabled' - therefore i re-set it to 'Default PHP version' and clicked save, then it confirms the save by saying 'PHP Version has been updated'. At this point i thought i fixed the problem, so i re-tested the php form, but still, it didn't work. Therefore, i re-logged into helm to double check the PHP version status, incredibly, i found that it had been reset back to 'PHP Disabled'. Just to confirm this bug i went through the same steps a couple of times, and i get the same results. Just to confirm my presumptions, should the PHP version status be set to 'Default PHP version' ?

note: In 'Domain Menu' under 'web Site Settings', under 'Website Extensions', 'PHP' is set to version 4. (so no probs there)

thanks for your time.

Last edited by renuar; 27-05-2006 at 01:55 PM.
renuar is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 12:46 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.