Jump to content


Photo

Mail() not working? Any help?


  • Please log in to reply
3 replies to this topic

#1 AbydosGater

AbydosGater
  • Members
  • PipPipPip
  • Advanced Member
  • 435 posts
  • LocationAlways at computer!

Posted 14 June 2006 - 07:53 PM

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
www.abydosgaters.com

Current Project: Blog Application.. Undecided name.. Status: Coming along great.

#2 ober

ober
  • Staff Alumni
  • Advanced Member
  • 5,337 posts
  • LocationEast Coast, USA

Posted 14 June 2006 - 07:59 PM

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.

Info: PHP Manual


#3 AbydosGater

AbydosGater
  • Members
  • PipPipPip
  • Advanced Member
  • 435 posts
  • LocationAlways at computer!

Posted 14 June 2006 - 08:20 PM

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?

www.abydosgaters.com

Current Project: Blog Application.. Undecided name.. Status: Coming along great.

#4 ober

ober
  • Staff Alumni
  • Advanced Member
  • 5,337 posts
  • LocationEast Coast, USA

Posted 14 June 2006 - 08:24 PM

Talk to the host.

Info: PHP Manual





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users