The majority of forums are now only available as archives, which means posting/editing is disabled.
The Anything and Everything forum is still open.
The Anything and Everything forum is still open.
PHP mail() Help
|
|||
|
Rank: ? (4)
Member #: 22511 |
Hello
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 |
||
|
|||
|
|||
|
Rank: ? (4)
Member #: 22511 |
Help
If someone knows a topic that as already dealt with this subject, please let me know. I'm searching, though, from 1 - 8 and 25 - 55 page, and haven't found something that can make some light over my problem. Thanks |
||
|
|||
|
|||
|
Rank: ? (4827)
Member #: 3416 |
generally hosting servers are correctly set up such that mail() just works. you shouldn't have to do any configuration--just use mail() and send to a valid address!
my mind is like a steel trap! it only hangs on to the big stuff. visit my forums at track7.org
|
||
|
|||
|
|||
|
Rank: ? (4)
Member #: 22511 |
Hi
Assuming that this host isn't correctly configured (and please, I don't feel capable enough, nor even close, to underline such assumption) is there any way to go round it? Is there any way to test if the server is correct? Is there any other way to send an e-mail with php (I can't use perl/cgi, nor ASP (apache with linux). I'm so tyred and desperate that I would try anything). And the same script presented in the first thread when uploaded to my testing server, works just fine, to any valid e-mail adress. If there's a way, please help. Thanks for the reply. Crop |
||
|
|||
|
|||
|
Rank: ? (4)
Member #: 22511 |
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 |
||
|
|||
|
|||
|
Rank: ? (4827)
Member #: 3416 |
sometimes servers are set up this way in order to prevent abuse by spammers. it's likely something you would need to ask the host about. i recommend explaining to them that it seems to work when you send to the same server but you don't seem to be able to send mail to other servers.
before you do that, though, are you using any sort of spam filtering? the host's server may be on a blacklist and getting blocked--how many e-mail accounts have you tried sending to? maybe you should try a hotmail or yahoo account.
my mind is like a steel trap! it only hangs on to the big stuff. visit my forums at track7.org
|
||
|
Please login or register to post a reply.
