Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $email = new EmailHandler('info@mydomain.tld');
- $email->addRecipient('foo@bar.tld');
- $email->setSubject('Test Email for Email manager');
- $email->setText('This is a test email.');
- $email->setHTML('<b>This is a test email</b>');
- $email->addAttachment('somefile.txt', 'newfilename.txt');
- $email->addAttachment('123456789.jpg', 'photo.jpg');
- //Send the email off
- $email->send();
- //OR
- //queue the email for sending by the cron daemon
- $email->queue();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement