Skip to content

Instantly share code, notes, and snippets.

View chiotis's full-sized avatar

Christos Chiotis chiotis

View GitHub Profile
@chiotis
chiotis / SMTP functionality in wp-config
Last active January 27, 2019 18:20 — forked from butlerblog/wp_config.php
Configure WordPress wp_mail function to send through SMTP server http://b.utler.co/Y3
<?php
/*
* Set the following constants in wp-config.php
* These should be added somewhere BEFORE the
* constant ABSPATH is defined.
*/
define( 'SMTP_USER', 'user@example.com' ); // Username to use for SMTP authentication
define( 'SMTP_PASS', 'smtp password' ); // Password to use for SMTP authentication