PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 1 year 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');