Registry / networking / pear-net-smtp

pear-net-smtp

JSON →
library1.12.2phppackagistunverified

An implementation of the SMTP protocol.

composer require pear/net_smtp
INSTALL
IMPORT
SIG · PEAR-NET-SMTP
P
pear-net-smtp
networkingphpv1.12.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SMTP
use Net\SMTP;

Send an email using Net_SMTP.

use Net\SMTP; $smtp = new SMTP('smtp.example.com'); $smtp->connect(); $smtp->auth('username', 'password'); $smtp->mailFrom('from@example.com'); $smtp->rcptTo('to@example.com'); $smtp->data('Subject: Test\r\n\r\nBody'); $smtp->disconnect();
Debug
Known issues
breakingRequires PHP sockets extension; missing extension causes connection failure.
fix
Ensure PHP sockets extension is installed and enabled.
affects: >=1.0.0
Upgrade
Version history
1.12.2latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
16
OpenAI (training)
2
Amazon
1
Resources
pear-net-smtp — pip install pear-net-smtp · libregistry