PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Andy Dixon   PHP Attachment Emailer   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: A simple example on how to use the class
Class: PHP Attachment Emailer
Send email messages with attached files
Author: By
Last change:
Date: 10 years ago
Size: 228 bytes
 

Contents

Class file image Download
<?php
require_once('attachmentEmailer.class.php');

$att = new attachmentEmailer();

$att->from='serverlogs@dixon.io';
$att->to='andy@dixon.io';
$att->subject='Yesterdays Access Log';
$att->send('/var/log/access.log');