Jump to content

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.
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?
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.