PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of James Calvin Kimble   Attachment Mailer   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: how to use this script
Class: Attachment Mailer
Send e-mail messages with multiple attached files
Author: By
Last change:
Date: 17 years ago
Size: 275 bytes
 

Contents

Class file image Download
<?
include("mailer.class.php");
$mailer=new mailer("webmaster@localhost","does it work","yes","From: webmaster@localhost");
$mailer->file("example.php");
$mailer->attach("text/plain","see.txt","tada 2 attachments");
$test=$mailer->send();
echo
$test?"sent":"error";
?>