edywladson/sendmail

Library that makes it easy to send email (Biblioteca que facilita o envio de e-mail)

1.0.0 2020-12-13 12:56 UTC

This package is auto-updated.

Last update: 2024-10-29 05:41:26 UTC


README

Maintainer Source Code PHP from Packagist Latest Version Software License Build Quality Score Total Downloads

SendMail is a small component that facilitates sending emails. Simple and easy to use, just enter the data and you're done.

SendMail é um pequeno componente que facilita o envio de e-mails. Simples e fácil de usar, basta inserir os dados e pronto.

Highlights

  • Simple installation (Instalação simples)
  • Easy to use and send email (Fácil utilização e envio de e-mail)
  • Composer ready and PSR-2 compliant (Pronto para o composer e compatível com PSR-2)

Installation

Uploader is available via Composer:

"edywladson/sendmail": "^1.0"

or run

composer require edywladson/sendmail

Documentation

For details on how to use, see a sample folder in the component directory. In it you will have an example of use for each class. It works like this:

Para mais detalhes sobre como usar, veja uma pasta de exemplo no diretório do componente. Nela terá um exemplo de uso para cada classe. Ele funciona assim:

User endpoint:

<?php

require __DIR__ . "/../vendor/autoload.php";

use EdyWladson\SendMail\SendMail;

//Config
$sendmail = new SendMail(
    "Host",
    "Port",
    "User",
    "Pass",
    "Lang", //default "en"
    "Secure", //default "tls"
    "Charset", //default "utf-8"
    "Html", //default "true"
    "Auth", //defautl "true"
);

//Mail Data
$sendmail->mail(
    "Subject",
    "Body",
    "Recipient Mail",
    "Recipient Name"
);

//Test and Result
if (!$sendmail->send("From Mail", "From Name")){
    echo $sendmail->message();
}else{
    echo "Email successfully sent!";
}

Contributing

Please see CONTRIBUTING for details.

Support

Security: If you discover any security related issues, please email edywladson@gmail.com instead of using the issue tracker.

Se você descobrir algum problema relacionado à segurança, envie um e-mail para edywladson@gmail.com em vez de usar o rastreador de problemas.

Thank you

Credits

License

The MIT License (MIT). Please see License File for more information.