GithubHelp home page GithubHelp logo

log1x / wp-smtp Goto Github PK

View Code? Open in Web Editor NEW
36.0 10.0 4.0 13 KB

Simple package for handling WordPress SMTP with .env when using the Roots stack.

License: MIT License

PHP 100.00%
wordpress roots sage bedrock smtp mail

wp-smtp's Introduction

WP SMTP

Latest Stable Version Total Downloads

WP SMTP is a simple Composer package for handling WordPress SMTP with .env. No admin menus or other bloat. Just a simple admin notice to verify your connection when needed and the ability to do a simple task WordPress should probably be handling natively.

Getting Started

Requirements

Installation

Install via Composer:

composer require log1x/wp-smtp

Usage

Configuration

All configuration goes into .env.

Required

WP_SMTP_HOST=mail.example.com  # Host
WP_SMTP_USERNAME=example       # Username
WP_SMTP_PASSWORD=secure123     # Password

Optional

WP_SMTP_PORT=587                      # Port
WP_SMTP_PROTOCOL=tls                  # Protocol
WP_SMTP_TIMEOUT=10                    # Timeout
[email protected] # Force From Email
WP_SMTP_FORCEFROMNAME=Example         # Force From Name

Mailhog

WP_SMTP_HOST=localhost
WP_SMTP_PORT=1025
WP_SMTP_PROTOCOL=false

Debugging

SMTP connect() failed.

This error means the initial connection to your host/port failed.

Contributing

Contributing whether it be through PRs, reporting an issue, or suggesting an idea is encouraged and appreciated. When contributing code, please follow the existing code style.

If you're feeling generous, I also take contributions in the form of coffee & energy drinks.

License

WP SMTP is provided under the MIT License.

wp-smtp's People

Contributors

jhhazelaar avatar log1x avatar tangrufus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wp-smtp's Issues

Deprecated PHPMailer (WordPress 5.5.0)

Deprecated: class-phpmailer.php is deprecated since version 5.5.0! Use wp-includes/PHPMailer/PHPMailer.php instead. The PHPMailer class has been moved to wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace. in /Users/brandon/Sites/example/site/web/wp/wp-includes/functions.php on line 5051

Unable to find the "admin notice"

No admin menus or other bloat. Just a simple admin notice to verify your connection

In the README, I can read this, but I can't find anything in the admin dashboard after installing the plugin.
Where to find this "admin notice"?

I just did:

  • $ composer require log1x/wp-smtp
  • Configuration of environment variables WP_SMTP* (real env vars, not in .env)

Thank you

Where to install?

Hi,

Should I include "log1x/wp-smtp": "^1.0" in the Bedrock or theme composer file?

Undefined property: stdClass::$secure

Hi,

There is an error with sending an email:
Notice: Undefined property: stdClass::$secure in /home/forge/~/vendor/log1x/wp-smtp/src/SMTP.php on line 149

I've changed the line from $mail->SMTPSecure = $this->config()->secure; to $mail->SMTPSecure = $this->config()->protocol; and it works.

Can you changed this? I will try to create a PR

Compatible with Roots Radicle?

I just installed the package in a Roots Radicle setup, but it does not work.
Is something specific needed in a Radicle environment?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.