Mailer
A lightweight PHP SMTP mail sender
Install / Use
/learn @txthinking/MailerREADME
Mailer
A lightweight SMTP mail sender
Install
$ composer require txthinking/mailer
# or
$ composer require txthinking/mailer:dev-master
Usage
<?php
use Tx\Mailer;
$ok = (new Mailer())
->setServer('smtp.server.com', 25)
->setAuth('tom@server.com', 'password')
->setFrom('Tom', 'tom@server.com')
->setFakeFrom('Obama', 'fake@address.com') // if u want, a fake name, a fake email
->addTo('Jerry', 'jerry@server.com')
->setSubject('Hello')
->setBody('Hi, Jerry! I <strong>love</strong> you.')
->addAttachment('host', '/etc/hosts')
->send();
var_dump($ok);
More Example
Related Skills
node-connect
351.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
