Jump to content

Mail() not working? Any help?


AbydosGater

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
Link to comment
https://forums.phpfreaks.com/topic/12013-mail-not-working-any-help/
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.

Archived

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

×
×
  • Create New...

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.