How to set up gmail SMTP in WordPress
Quite likely you’re using the wrong encryption/port combination. You are using port 465 for tls. Port 465 should be used for SSL Port 587 should be used for TLS
Quite likely you’re using the wrong encryption/port combination. You are using port 465 for tls. Port 465 should be used for SSL Port 587 should be used for TLS
require ‘wp-includes/class-phpmailer.php’; fixed my problem, but I used a code to create a pdf and then send it in the same way.
The plugin WP-Mail-SMTP has always worked for me. This is with the Contact Form 7 and many others as it replaces the WP Mail functions directly. http://wordpress.org/extend/plugins/wp-mail-smtp/
Where is the problem? Am I doing something wrong? Your code seems fine to me, so despite I can’t give you a definitive answer on what/where exactly is the problem, I thought these might help you troubleshoot the issue: First and foremost, check your configuration — e.g. did you use the correct (SMTP) username/email, password, … Read more
PHPMailer is not part of the plugin, it is shipped with WordPress. So it is up to WordPress to keep it up to date. There is a patch already in ticket #37210. In the mean time, you can create a mu-plugin, include the newer version of PHPMailer here, create an instance and assign it to … Read more
First of all, if we take a look at implementation of wp_mail function, we will see that this function uses PHPMailer class to send emails. Also we could notice that there is hard coded function call $phpmailer->IsMail();, which sets to use PHP’s mail() function. It means that we can’t use SMTP settings with it. We … Read more
Prefix everything, especially your variables. The names you are using are used by WordPress internally (see the comment form), so WordPress might try to do something with your form values. If that fails you get an error. While $_GET problems are usually rather easy to debug, $_POST and $_REQUEST names are not so simple. The … Read more
I got an issue with phpMailer, i can’t send any e-mail, and it gives me this error: This is my code : I tried all the answers i found, but none of them worked so far. I also tried other ports, the 25 and 465 don’t work and give me other errors. If someone could … Read more
I got an issue with phpMailer, i can’t send any e-mail, and it gives me this error: This is my code : I tried all the answers i found, but none of them worked so far. I also tried other ports, the 25 and 465 don’t work and give me other errors. If someone could … Read more
PHPMailer will track the BCC recipients internally and if you were to send the message with PHPMailer it would specify the BCC recipients during the SMTP envelope. However, when you extract the raw message from PHPMailer you lose the internal recipient list that PHPMailer was tracking. The raw message does not include the BCC information. … Read more