
December 30th, 2012, 03:18 PM
|
 |
Contributing User
|
|
Join Date: Nov 2012
Location: Oxford, United Kingdom
Posts: 40

Time spent in forums: 1 Day 2 h 18 m 23 sec
Reputation Power: 1
|
|
You've clearly copied that code from the net. If you hadn't, you wouldn't be suppressing errors:
PHP Code:
$flgSend = @mail($strTo,$strSubject,null,$strHeader);
// @ = No Show Error //
Remove the '@'. Then see if you get any errors/warnings.
Are you testing this on a local server (XAMP, MAMP , etc)? If so, that's your problem. Try it on a remote server or use Mercury.
You should also use a class that can make things a lot easier for this kind of task. PHPMailer perhaps?
EDIT: Also, please wrap your PHP code in [ PHP ][ /PHP ] (ignore spaces) tags.
|