PHP Classes

File: examples/textonly.php

Recommend this page to a friend!
  Classes of Christian Vigh   PHP Mail Sending   examples/textonly.php   Download  
File: examples/textonly.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Mail Sending
Send HTML email messages with attachments
Author: By
Last change: Update of examples/textonly.php
Date: 1 year ago
Size: 544 bytes
 

Contents

Class file image Download
<?php
   
/****************************************************************************************************

        The following example sends an email with only a text part (no html part).

     ****************************************************************************************************/

   
require ( 'examples.inc.php' ) ;

   
$subject = "Example mail : text only (no html)" ;
   
$text = "example text contents" ;

   
$mail = new Mail ( $sender, $recipient, $subject, $text ) ;
   
$mail -> Send ( ) ;

    echo (
"Mail sent\n" ) ;