wp_mail not sending emails

After fiddling around for hours, I found the problem. It was the form not the PHP. <div class=”col-sm-6″> <input class=”form-control” type=”text” placeholder=”ENTER DOG’S NAME” id=”dname” /></div> <div class=”col-sm-6″> <input class=”form-control” type=”text” placeholder=”ENTER OWNER’S NAME” id=”name” /></div> id attribute needs to be name. Corrected <div class=”col-sm-6″> <input class=”form-control” type=”text” placeholder=”ENTER DOG’S NAME” name=”dname” /></div> <div class=”col-sm-6″> … Read more

wp_mail not sending in test php file

Your test.php file is a standalone script and isn’t part f WordPress so it has no access to the WordPress functions. A simple way to resolve this would be to include wp-load.php at the top of your script, but AFAIK this is not a good approach as you’re loading WordPress over again to use just … Read more

wp_mail() inside AJAX handler never returns

You can do some simple debugging: Try: wp_mail(‘youremail@com’, ‘123’, ‘123’); // to see if it will go through If #1 is not, check if you setup SMTP correctly // install a smpt plugin(wp smtp mail/easy wp smtp) and send a test email If you can’t send out a test email by plugin, check if your … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)