Login   Register  
PHP Classes
elePHPant
Icontem

File: usage.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of daniel  >  eMail  >  usage.php  >  Download  
File: usage.php
Role: Example script
Content type: text/plain
Description: usage
Class: eMail
Sending text or HTML e-mail to multiple addresses
Author: By
Last change:
Date: 2004-05-15 01:11
Size: 781 bytes
 

Contents

Class file image Download
<? 
$html 
true

// Class einbinden 
include("class_mail.php"); 

// Absender angeben 
$mail = new eMail("Absender_Name","name@domain.net"); 

// Betreff angeben 
$mail->subject("test"); 

// Entfänger angeben 
$mail->to("somebody@domain.net"); 
$mail->to("somebody@domain.net"); 

// CC-Entfänger angeben 
$mail->cc("somebody@domain.net"); 
$mail->cc("somebody@domain.net"); 

// BCC-Entfänger angeben 
$mail->bcc("somebody@domain.net"); 
$mail->bcc("somebody@domain.net"); 

if(
true==$html

    
// HTML angeben 
    
$mail->html("My first <b>HTML-Mail</b>"); 

else 

    
// Text angeben 
    
$mail->text("My first Text-Mail"); 


// Anhang hinzufügen 
$mail->attachment("text.zip"); 

// eMail versenden 
$mail->send(); 
?>