shuchkin / react-smtp-client Goto Github PK
View Code? Open in Web Editor NEWReactPHP async SMTP Client to send a simple email
License: MIT License
ReactPHP async SMTP Client to send a simple email
License: MIT License
Dear,
below is my code:
require_once './vendor/autoload.php';
$loop = \React\EventLoop\Factory::create();
$smtp = new \Shuchkin\ReactSMTP\Client( $loop, 'tls://smtp.gmail.com:465', '[email protected]','MYPASSWORD' );
$smtp->send('[email protected]', '[email protected]', 'Test ReactPHP mailer', 'Hello, Sergey!')->then(
function() {
echo 'Message sent via Google SMTP'.PHP_EOL;
},
function ( \Exception $ex ) {
echo 'SMTP error '.$ex->getCode().' '.$ex->getMessage().PHP_EOL;
}
);
$loop->run();
i got this error: SMTP error 2 Unable to complete SSL/TLS handshake: failed loading cafile stream: `C:\xampp\apache\bin\curl-ca-bundle.crt'
open_ssl is enabled on my apache.
thanks
https://github.com/shuchkin/react-smtp-client/blob/master/composer.json#L17
Any chance you could bump to ^1.0.0?
Hi Dear,
i configured the solution and when i test it with gmail smtp i got this error:
SMTP error 3 DNS query for smtp.google.com returned an error response (Non-Existent Domain / NXDOMAIN)
could you please advice ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.