This content has been marked as final. Show 4 replies
tell me whatz your problem... !
Hey I think you had taken this code from layougalaxy.com i am the flash devloper over there
Is there php and apache installed on your server
yes thats where I got it. It had an error in the actionscript. I finally fixed it, I receive it now BUT ONLY WHEN I USE MY OWN EMAIL ADDRESS in the field. I am going insane. Can you pleaseeeeeeee tell me how can I fix this?
If it works when you put in your own address, then it's not in the actionscript, and its not exactly an error - its a security feature.
Replace the 'mail' line in your PHP code with:
mail("$to", "$subject","$matter","From: firstname.lastname@example.org");
Replacing 'my.com' with your server's name. If that still doesn't work, this will:
mail("$to", "$subject","$matter","From: $to");
Or, to get really complicated, make an e-mail address on your server for 'contact_form' and try the first line again. It will still get sent to your e-mail, it'll just look like it's coming from 'email@example.com'.
Either way, you're changing the From address the e-mail comes from, so you can't use your e-mail's 'Reply' buttton to reply. You'll still get their e-mail address in your e-mail's body text, though, so if you want to reply, just copy/paste it from there.
PHP security sometimes doesn't let it's scripts send mail that says it's from a different server to prevent people from trying to spoof e-mails - like sending out e-mail that says it's from 'whitehouse.gov' or whatever.