Skip to content

Instantly share code, notes, and snippets.

@dura0ok
Created March 31, 2019 11:56
Show Gist options
  • Save dura0ok/d19a28e17876439531cc122fb5b14529 to your computer and use it in GitHub Desktop.
Save dura0ok/d19a28e17876439531cc122fb5b14529 to your computer and use it in GitHub Desktop.
Using my plugin
<?php
require "vendor/autoload.php";
use App\Spammer\PHPSpammer;
$spammer = new PHPSpammer('email', 'password', 'from',
'Subject', 'file where emails', 'logging or not(1-true) empty if false');
$spammer->setAttachment('mood.jpg', 'mood.jpg');
$spammer->setAttachment('images/test.jpg', 'name.jpg');
$spammer->send('body.html');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment