Skip to content

Instantly share code, notes, and snippets.

View cubehrends's full-sized avatar
🏠
Working from home

Christian Behrends cubehrends

🏠
Working from home
View GitHub Profile
@Bovelett
Bovelett / functions.php
Last active April 15, 2021 21:19
SMTP via WordPress Functions.php
<?php
// WARNING!! DO NOT USE ON A MULTI USER SETUP. password is not hashed!
// Configures WordPress to use SMTP server
define( 'SMTP_USER', 'hello@yoursite.com' ); // Username to use for SMTP authentication
define( 'SMTP_PASS', 'SMTP_PASSWORD' ); // Password to use for SMTP authentication
define( 'SMTP_HOST', 'smtp.smtpserver.com' ); // The hostname of the mail server
define( 'SMTP_FROM', 'hello@yoursite.com' ); // SMTP From email address
define( 'SMTP_NAME', 'FROM_NAME' ); // SMTP From name