function testSendMail() { $m = new Mail(); $m->setHostname("localhost"); $m->setProtocol("smtp"); $m->setUsername("*****@*****.**"); $m->addAttachment("testfile.tmp"); $m->send(); }
<?php require "../php/Mail.php"; use weblibs\php\Mail; $m = new Mail(); $m->setHostname("localhost"); $m->setProtocol("smtp"); $m->setUsername("*****@*****.**"); $m->addAttachment("testfile.tmp"); $m->send(); var_dump($m);