![]() |
|
|
#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","FROM ost@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. |
|
|
|
|
|
#2 (permalink) |
|
Administrator
Join Date: May 2003
Posts: 1,299
|
Do you have a windows or linux account with us?
Regards, Jacob
__________________
Jacob Colton jacob@catalyst2.com Open a ticket | Knowledgebase | Rate catalyst2 | Review catalyst2 |
|
|
|
|
|
#4 (permalink) |
|
Administrator
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 Colton jacob@catalyst2.com Open a ticket | Knowledgebase | Rate catalyst2 | Review catalyst2 |
|
|
|
|
|
#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. |
|
|
|
|
|
#6 (permalink) |
|
Bring me your problems :p
Join Date: Jan 2003
Location: /dev/ahhhhhhhhh
Posts: 3,537
|
So mail@neworks.co.uk is setup in helm as a mailbox?
|
|
|
|
|
|
#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 |
|
|
|
|
|
#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.
|
|
|
|
|
|
#12 (permalink) |
|
Bring me your problems :p
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
|
|
|
|
|
|
#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. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|