PHP Classes

File: testexample.php

Recommend this page to a friend!
  Classes of JJ Harrison   Mailer Class   testexample.php   Download  
File: testexample.php
Role: Example script
Content type: text/plain
Description: Example Sending Plain Text Email
Class: Mailer Class
Compose and sent text and HTML e-mail messages
Author: By
Last change: Changed name
Date: 19 years ago
Size: 865 bytes
 

Contents

Class file image Download
<?php
//EXAMPLE

$mailout = new mailer;
$mailout->from('sender@example.com', 'Sender');
$mailout->add_recipient('person1@example.com');//add a recipient in the to: field
$mailout->add_cc('person2@example.com');//carbon copy
$mailout->add_bcc('person3@example.com');//blind carbon copy
$mailout->subject('Test');//set subject
$mailout->message('Hi,

FILLER
---------------------------------------------
The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog.
---------------------------------------------

Thank You!
'
);//set message body
$mailout->send();//send email(s)
?>