Jump to content

Archived

This topic is now archived and is closed to further replies.

AbydosGater

Mail() not working? Any help?

Recommended Posts

HI, I have been writing a form processor,
You can view the code at [a href=\"http://pastebin.com/709241\" target=\"_blank\"]http://pastebin.com/709241[/a]

But when i run the script, It all runs fine with no error messages,,
But the mail is not being sent!
Any idea why?

#Abydosgater

Share this post


Link to post
Share on other sites
1) Need more info (your server? hosted somewhere else? do you know if mail() works outside your script?

2) Is "submit" a form submit button? If so, you need to check if it isset()... checking to see if it is equal to 1 will never be true. Also, it should be $_POST['submit']... don't forget the quotes!

3) Wouldn't hurt to check the return of the mail() function and see if you're getting a valid result.

Share this post


Link to post
Share on other sites
No, I tryed it mail does not work on its own, I tryed just a mail on its own, No nothing no errors, but no email.
And submit is a hidden field in the fom with a value of 1.
Hmm, my server is at www.xeserve.com

Anything else you need?

Share this post


Link to post
Share on other sites
Talk to the host.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.