I just solved the smtp send mail problem from wordpress using a little bit coding. I didn’t used any plugin and didn’t found any configuration setting in wordpress for SMTP (I am new in WP). I did it for my gmail account.
Here is the code snippet which I placed just bellow line no. 405 (with the content “$phpmailer->IsMail();”) and in the function “wp_mail” in wordpress_installation_folder/wp-includes/pluggable.php file.
$phpmailer->SMTPAuth = true;
$phpmailer->IsSMTP(); // telling the class to use SMTP
$phpmailer->Host = “ssl://smtp.gmail.com”; // SMTP server
$phpmailer->Username = ‘firstname.lastname@example.org’;
$phpmailer->Password = ‘placed_my_password_here’;
$phpmailer->Port = 465;
It worked fine for me and definitely will work for others, too.
But my question is that, Is there any setting already for SMTP in the wordpress admin panel? Can anyone tell me plz?
- The topic ‘Send mail using smtp without any plugin’ is closed to new replies.