Git Product home page Git Product logo

aitoc / magento-2-smtp Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 7.0 483 KB

Magento 2 SMTP Extension comes to help business owners allowing them to install Simple Mail Transfer Protocol - SMTP server that turns email messages into codes or numbers.

Home Page: https://www.aitoc.com/magento-2-smtp.html

PHP 94.78% HTML 5.22%
smtp aitoc-smtp email-smtp free magento magento2-extension magento2-extension-free smtp-configuration smtp-extension smtp-protocol

magento-2-smtp's Introduction

Description

Advanced Level of Your Email Marketing

Daily efforts related to sending numerous emails do not guarantee that all these emails will exactly come to customers. Unfortunately, there is a high probability that some of the messages will be rejected or will marked as spam. The default Magento email settings cannot offer you a perfect solution, endowing your emails with a doubtful reputation, so they can be rated as untrustworthy.

This solution ensures merchants that all their messages will be delivered automatically and directly to the target audience. Among the other powerful features, SMTP Email Settings extension for Magento 2 provides the option to control customization and arrange tests on the server that will guarantee that emails will reach customers timely.

The extension provides friendly configurations with multiple SMTP servers such as Gmail, Yahoo, Outlook, Mail.com, Hotmail, Office365, O2 Mail, Send In Blue, etc.

What are the key benefits SMTP Email Configuration for Magento 2 provides you with?

  • Your emails will definitely reach the recipients
  • No rejection and hitting a spam box
  • You cooperate only with trusted email providers
  • You are able to run tests before emails sending
  • The secured connection ensures improved deliverability rates
  • Using Email Log with advanced control
  • Using Plain text for increase Spam-score

Useful Information

Installation Guide

INSTALL VIA COMPOSER

Here you can find the guide 'Extensions installation via composer'.

As your next steps, run these CLI commands:

composer require aitoc/smtp
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy

Extension features

Feature Specification
Soft configuration Store owners may easily reset the information about any attributes with many options. Your mail will be flexibly configured and work much faster, depending on your purposes.
Supporting trusted SMTP providers It is good to have your own SMTP server, however, in order to save time in the configuration for your email business, you may easily customize from one of the famous email service vendors, including Gmail, Yahoo, Outlook, Mail.com, Hotmail, Office365, O2 Mail, Send In Blue, and many more.
Email logging You get a smart block that keeps all sent email logs. It allows checking back who sent an email and how it was sent. Besides, you can check the current status (pending, in process or failed) as well as the exact sending time. Moreover, it is possible to find mistakes when checking the detailed logs.
Debug mode This feature is designed to test emails, check SMTP connection, and run self-testing of the module (without sending emails). The SMTP Debug mode allows store owners to manage, preview or review the time the email created.
Testing emails before sending This useful feature is aimed to help you to define whether the current email setting is work properly or not. Running tests is about the visual examination that can be performed by you. It will provide general looking back at the email again.
Export Email to CSV Files (coming soon) The extension will also help to export an email to the CSV file. Save your time and export your email into CSV.

OTHER FEATURES

  • Use Your Own SMTP Server
  • Sending the test emails before sending officially
  • Ensure all emails will be sent to desired customers
  • Email logging with detailed view of every letter
  • Delete email log manually
  • Debug mode by SMTP email settings to test
  • Supports flexible servers
  • Check and preview sent emails

User Guide

Avoid unprofessional email management and do not find shipment information, order confirmation, invoices, or other important messages in a spam box. SMTP Email Configuration for Magento 2 by Aitoc is what can really assist to get success. Here are the details about the configuration in the extension’s backend.

Emails Log

Get the access here: REPORTS → SMTP → EMAILS LOG. From here, you are able to track all the sent email from the server to customers.

By clicking in each mail, you can have a general looking at the display which how your email will reach customer’s eyes. Hit to clear all the archived emails after checking carefully.

Configuration

General Settings

You should be at Admin Panel in order to configure general settings: STORES → CONFIGURATION → AITOC EXTENSIONS → SMTP → GENERAL SETTINGS. Choose 'Yes' to enable Aitoc SMTP on.

SMTP Settings

Still from the same structure with 'General Settings', scroll down to see 'SMTP Settings'.

  • 'Use Pre-Defined SMTP Providers'. To see the field 'Provider', select 'Yes' in the field 'Use Pre-Defined SMTP Providers'. Such fields as 'Host', 'Port', 'Connection Security' and 'Authentication Method', which are compatible with the SMTP provider you had chosen, will be filled automatically.

At the moment we support nearly 30 SMTP email service providers.

  • At the 'Host' field, type your Host name or IP address of SMTP Server. You can also custom STMP Provider’s Host name at here. If you had chosen the provider at the above field, you can give this step a free pass.

  • 'Port' is a specific gate where emails will be sent through. You can also pass this step if you had chosen the provider from the first place. In general, there will be 3 kinds of Default Port:

  1. Port 25: Emails sent by other Protocol which different SSL will be sent through this portal
  2. Port 465: Emails sent by other Protocol SSL will be sent through this portal
  3. Port 578: Emails sent by other Protocol TLS will be sent through this portal
  • 'Authentication Method'. If you hadn’t chosen the provider before, please note those basic methods:
  1. Login/Password: Authentication by login to the account through Username and Password that will be filled in the next field. Most of provider will require this method.
  2. CRAM-MD5.
  • 'Username': where you enter the account name matching format of the SMTP Provider you had selected.

  • 'Password': password of the Username. After saving, the password will be encrypted into .

  • 'Connection Security': pass this step if you had chosen the provider, or you can select one of the providing protocol below here:

  1. None: when you select this protocol, you have to accept all the risk may occur in the process of sending.
  2. SSL stands for Secure Socket Layer. This protocol ensures that all data exchanged between the web server and the browser is secure and stay safe.
  3. TLS means Transport Layer Security. This protocol secures data or messages and validates the integrity of messages through message authentication codes.
  • 'Send Test To E-mail'. This is the field for you to test the operation of the extension. After filling all fields, click . If the information entered is valid, a successful email notification will be sent from Username to Email Test. That email will have the following content:

Log Settings

Still from the same structure with 'SMTP Settings', scroll down to see 'Log Settings'.

To see the field 'Log Clean Every (days)', select 'Yes' in the field 'Enable Log Outgoing Emails'.

The 'Log Clean Every (days)' field limits the storage time for the email you sent. After that limited number of days, Email will automatically delete. If you do not want to delete the emails, set zero in the field blank.

Emails Settings

Still from the same structure with 'Log Settings', scroll down to see 'Emails Settings'.

Magento sends only the HTML part of the message, so some spam filters give such messages a higher spam score. In order to avoid this problem here the Plain Text Part can be added manually for each e-mail template.

You can also create CC Emails (copies) and BCC Emails (hidden copies).

Debug

Still from the same structure with 'Emails Settings', scroll down to see 'Debug'.

The Debug Mode is helpful in testing all Magento 2 SMTP email settings and identifying wrong email settings.

##Reasons to choose Aitoc:

Aitoc proposes a full range of Magento development services, supporting e-commerce businesses with strong expertise and serious experience.

  • 100+ Magento extensions built
  • 800+ development projects completed
  • 3000+ positive reviews
  • 20000+ happy clients in over 100 countries, and counting

More FREE Magento 2 Extensions by Aitoc on GitHub

Other Magento 2 Extensions by Aitoc

See more Magento 2 extensions.

THANKS FOR CHOOSING

magento-2-smtp's People

Contributors

dangarner avatar obuchowski avatar stanlee00 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

magento-2-smtp's Issues

General Email sending does not work

Magento 2.3.3-p1

see my attempt at the fork: https://github.com/bst2002git/aitoc-magento-2-smtp.git Branch=development

"PHP message: PHP Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Framework\Mail\AddressConverter::convertMany() must be of the type array, object given, called in /usr4/data/web2124/web/vendor/magento/framework/Mail/Template/TransportBuilder.php on line 437 and defined in /usr4/data/web2124/web/vendor/magento/framework/Mail/AddressConverter.php:59
Stack trace:
#0 /usr4/data/web2124/web/vendor/magento/framework/Mail/Template/TransportBuilder.php(437): Magento\Framework\Mail\AddressConverter->convertMany(Object(Zend\Mail\AddressList))
#1 /usr4/data/web2124/web/vendor/magento/framework/Mail/Template/TransportBuilder.php(201): Magento\Framework\Mail\Template\TransportBuilder->addAddressByType('to', Object(Zend\Mail\AddressList), '')
#2 /usr4/data/web2124/web/vendor/aitoc/smtp/Model/Sender.php(71): Magento\Framework\Mail\Template\TransportBuilder->addTo(Object(Zend\Mail\AddressList))
#3 /usr4/data/web2124/web/vendor/aitoc/smtp/Controller/Adminhtml/Log/Resend.php(34): Aitoc\Smtp\Model\Sender->sen"

in File Sender.php i've made this to test:

public function sendByLogId($logId)
{
...
$data[LogInterface::RECIPIENT_EMAIL]= iconv('UTF-8', 'ASCII//TRANSLIT', $data[LogInterface::RECIPIENT_EMAIL]);

$this->transportBuilder
->addTo($this->prepareEmailsData($data[LogInterface::RECIPIENT_EMAIL])[0]['email'],$this->prepareEmailsData($data[LogInterface::RECIPIENT_EMAIL])[0]['name'])
->setFrom($this->prepareEmailsData($data[LogInterface::SENDER_EMAIL], true));

recipient_email used: <Ronny Schönberger>[email protected]

status_message: Invalid header value detected

This are the Headers:
/web/vendor/aitoc/smtp/Model/Framework/Mail/Transport.php__construct =
model/Transport.php sendMessage() =
model/Transport.php isNewSender() =
model/Transport.php $this->message->getRawMessage() = Date: Wed, 11 Mar 2020 09:38:00 +0000
MIME-Version: 1.0
Content-Type: text/plain;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Subject: =?UTF-8?Q?Bestellbest=C3=A4tigung=20f=C3=BCr=20Ihre=20Bestellung=20bei=20?=
=?UTF-8?Q?test=20Inc.?=
To: =?utf-8?Q?Ronny=20Sch=C3=B6nberger?= [email protected]
From: =?utf-8?Q?test=20OrderAndSales?= [email protected]

Smtp-Settings

Magento 2.3.3-p1

Hello, if you set:
see image:
smtp_settings

and send a Test-Email you get:
smtp_test_email

..so you must set some login data to pass the javascript validator

Test Email validation error

Settings:

  • Authentication Method: Not required
  • Username:
  • Password

Action: When I press the Send Test Email button shown the "Validation Error - Please check if the following fields are filled in: Login; Password;" message.

Add Plain Text Part in Email

Hello,
it seems not to work on Magento 2.3.3-p1.

see my attempt at the fork: https://github.com/bst2002git/aitoc-magento-2-smtp.git Branch=development

What i noticed (i'm no so expert in Magento interna and what is related to send emails)
that
is only called on Test-Email-Sending.
Normal Magento transactional emails (Order-Confirmation etc.) call only
/Model/Framework/Mail/Transport.php

So i think that the plain text transdormation should be in TransportBuilder.php

This function setBody used in your module is to be replaced by:

/**
* @inheritdoc
*
* @deprecated 101.0.8
* @see \Magento\Framework\Mail\Message::setBodyText
* @see \Magento\Framework\Mail\Message::setBodyHtml
*/
public function setBody($body)

PHP 7.4 support

When I try to install the extension via composer I got:

[InvalidArgumentException]
  Package aitoc/smtp at version  has a PHP requirement incompatible with your PHP version (7.4.10)

Error resending email

Hello,
When sending the error in the log and having to resend I get error 500 on the page.

Magento version 2.3.7 Thank you.

Could you help me with this support, thanks.

System.xml: tab missing

Error message:
Notice: Undefined index: id in vendor/magento/module-config/Model/Config/Structure/Element/Iterator.php on line 63

Repair idea 1: insert into the system.xml
<tab id="aitoc_extensions" translate="label" sortOrder="999998" class="aitoc-tab"> <label>Aitoc Extensions</label> </tab>

Repair idea 2: insert into composer.json
"require": { "aitoc/core": "^1.0.8" },

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.