why does it the mail not get sent?

if you go to www.playfit.biz/media.htm you will see a form at the bottom of the page
If i send this form without changing any of the values on the form the email looks like it has been sent but i don't receive anything in my email

However if i replace the values with other values the email does appear

Can anyone enlighten me as to why this is

some background info can be found at
http://www.experts-exchange.com/Web/Web_Languages/PHP/Q_21062558.html

thanks
lz7cjcAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Marcus BointonConnect With a Mentor Commented:
At the top of your script, write:

var_dump($_REQUEST);

It will break stuff that relies on headers not being sent, but ignore that for now. I'd also suggest you don't do it on a public site as it makes quite a mess. It will give you a nicely formatted (if you view source) dump of everything that your form has passed to PHP.  Try comparing the output with and without changing the form contents. This way you get to completely eliminate (or blame) the form itself for the results you're seeing.

You might like to use the same technique on the phpmailer instance just before you send the message so you can compare exactly what the differences are in your setup:

var_dump($mail);
0
 
Marcus BointonCommented:
From that previous Q, looks like you have PHPMailer set up nicely.
There must be a problem somewhere - does phpmailer return an error when sending? Do you know for sure that the mail is actually sent? Could it be being dropped by a mail filter?
0
 
basiclifeCommented:
Check it's not something silly like the email address of the customer overwriting the email address to send to.
0
Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

 
lz7cjcAuthor Commented:
there are no errors ... it always says that the mail has been sent but if i send the default info on the form i receive nothing but if i replace with proper info it arrives... indeed if I shuffle the default words around the mail also arrives... it is only if i don't touch the form that the mail fails to arrive eg if i just remove the word "email" and send it, I get a mail; if i send with no changes to the form nothing arrives

really strange - any ideas?
thanks
0
 
Marcus BointonCommented:
Do a var_dump on $_REQUEST and try to spot a difference between the two submission types, number and names of parameters and their values.
0
 
lz7cjcAuthor Commented:
would you mind explaining what you mean by that - I rarely write code so am not familiar with how i would go about doing that
thanks
0
All Courses

From novice to tech pro — start learning today.