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: 11 months ago
Size: 544 bytes


Class file image Download

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


require ( '' ) ;

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

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

    echo (
"Mail sent\n" ) ;