Code Monkey home page Code Monkey logo

m2.smtp's Introduction

Magento2 Smtp

Total Downloads Latest Stable Version

Extension enables you to easily use your own custom SMTP server for sending mail.

Compatibility

Magento CE(EE) 2.0.x, 2.1.x, 2.2.x, 2.3.x

Install

Install via Composer (recommend)

  1. Go to Magento2 root folder

  2. Enter following commands to install module:

    composer require faonni/module-smtp

    Wait while dependencies are updated.

Manual Installation

  1. Create a folder {Magento root}/app/code/Faonni/Smtp

  2. Download the corresponding latest version

  3. Copy the unzip content to the folder ({Magento root}/app/code/Faonni/Smtp)

Completion of installation

  1. Go to Magento2 root folder

  2. Enter following commands:

    php bin/magento setup:upgrade
    php bin/magento setup:di:compile
    php bin/magento setup:static-content:deploy  (optional)
    

Configuration

In the Magento Admin Panel go to Stores > Configuration > Advanced > System > Mail Sending Settings.

Magento2 Smtp

Log Message

Extension loging copies of the all original emails that sent from your store. You can view content of any email whenever you like to find out how the customer sees it. The email log can be cleared automatically after a specified time period.

In the Magento Admin Panel go to Reports > Sending Emails.

Email message grid

Magento2 Smtp

Email view

Magento2 Smtp

Uninstall

This works only with modules defined as Composer packages.

Remove database data

  1. Go to Magento2 root folder

  2. Enter following commands to remove database data:

    php bin/magento module:uninstall -r Faonni_Smtp
    

Remove Extension

  1. Go to Magento2 root folder

  2. Enter following commands to remove:

    composer remove faonni/module-smtp

Completion of uninstall

  1. Go to Magento2 root folder

  2. Enter following commands:

    php bin/magento setup:upgrade
    php bin/magento setup:di:compile
    php bin/magento setup:static-content:deploy  (optional)
    

m2.smtp's People

Contributors

faonni avatar karliuka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

clud7 faonni

m2.smtp's Issues

requirements could not be resolved

I get the following error message when I try to install with composer require faonni/module-smtp

Your requirements could not be resolved to an installable set of packages.

Problem 1
- Can only install one of: magento/module-email[101.0.0, 100.2.4].
- Can only install one of: magento/module-email[101.0.0, 100.2.4].
- Can only install one of: magento/module-email[100.2.4, 101.0.0].
- faonni/module-smtp 2.3.1 requires magento/module-email 101.0.* -> satisfiable by magento/module-email[101.0.0].
- Installation request for faonni/module-smtp ^2.3 -> satisfiable by faonni/module-smtp[2.3.1].
- Installation request for magento/module-email (locked at 100.2.4) -> satisfiable by magento/module-email[100.2.4].

Installation failed, reverting ./composer.json to its original content.

My sytem is Magento 2.2.6 on ubuntu 18.04 with PHP 7.1

Timeout when sending email

Hi @karliuka,

Unfortunately I cannot send emails. System is Magento 2.3.2 on PHP 7.2 (Debian Buster) with Nginx, Varnish 5.2 and Redis.

Here is the error.log:


2019/09/16 10:51:57 [error] 640#640: *4262 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.1.132, server: _, request: "POST /admin_1452/faonni_smtp/connection/test/key/87639ebcebe2c95d5223063e4cb1f83aa2c9a46fcbecd4b82d46189a910e520b/?isAjax=true HTTP/2.0", upstream: "http://127.0.0.1:6081/admin_1452/faonni_smtp/connection/test/key/87639ebcebe2c95d5223063e4cb1f83aa2c9a46fcbecd4b82d46189a910e520b/?isAjax=true", host: "***deleted***", referrer: "***deleted****/admin/system_config/edit/section/system/key/4e436d8d839184c3e8f1adfc41b9ac9bcec504cdcb42c4db2a3cf4ff1c3f319b/"
2019/09/16 11:26:04 [error] 640#640: *4598 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to a member function create() on null in /var/www/html/magento2/vendor/magento/framework/Mail/Template/TransportBuilder.php:280
Stack trace:
#0 /var/www/html/magento2/vendor/magento/framework/Mail/Template/TransportBuilder.php(268): Magento\Framework\Mail\Template\TransportBuilder->reset()
#1 /var/www/html/magento2/vendor/magento/module-user/Model/Notificator.php(97): Magento\Framework\Mail\Template\TransportBuilder->getTransport()
#2 /var/www/html/magento2/vendor/magento/module-user/Model/Notificator.php(116): Magento\User\Model\Notificator->sendNotification('admin/emails/fo...', Array, '***deleted***', '***deleted*** ***deleted***...')
#3 /var/www/html/magento2/vendor/magento/module-user/Controller/Adminhtml/Auth/Forgotpassword.php(117): Magento\User\Model\Notificator->sendForgotPassword(Object(Magento\User\Model\User\Interceptor))
#4 /var/www/html/magento2/vendor/magento/framework/App/Action/Action.php(108): Magento\User\Controller\Adminhtml\Auth\Forgotpassw" while reading response header from upstream, client: 127.0.0.1, server: _, request: "POST /admin_xxxxxx/admin/auth/forgotpassword/ HTTP/1.0", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock:", host: "***deleted***", referrer: "***deleted****/admin/auth/forgotpassword/"

issue in sending mail

Hi we have added this extension.
Every thing is install successfully.
But its not working. when we submit test commend we got successful message. but we did not receive email.

Please help me out to install the same.

coralhaze

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.