Forum Moderators: coopster
I'm new to php and I'm now using it because I got to do a flash site with a form that collects variables and sends them to an php script that organize and e-mail the input.
When testing it in my server, everything went fine, but, when changing to another server it all collapse as no e-mail gets to me.
I called the company that runs the server, and I know that they run it on an Apache 2.0 with Linux redhat, and have PHP 4.2 installed.
I've runed the php.info on their server and got data but I don't know how to use it to solve this.
I've tried forums, and they asked me to try and send a simple e-mail
<?php
mail("mymail@anotherserver.com","Teste","testing");
?>
and it failed.
Could anyone please help me. I need to know where is the problem, and if I can configure a php script in order to send e-mails from this server. What do I need to ask the server company and where do I place the info in the script in order for it to work.
Thanks in advance.
Crop
Have you checked out the WebmasterWorld PHP Forum Library [webmasterworld.com]? There you can find the Basics of Submitting and Emailing Forms with PHP [webmasterworld.com].
I've tryed the example you gave me and, on my testing server it all went fine. On the final server, all I got was the error message defined:
email could not be sent.
If this is a server problem, is there any way I can go around mail() to send e-mails that will hold, such as the example, variables from flash.
If so, please, please help (Perl/CGI and ASP are out of the question).
Thanks
I've just had an e-mail sent. I can't believe it.
I have a theory about this, since it was sent but it was sent from within the server to an e-mail located in the same server. I figure this server doesn't allow (or isn't configured to) sending mails to outside servers e-mails. Is this possible? In a future situation, is there a way to override it?
Thanks for the help