Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Günni  >  Send e-mail with an embeded picture  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example for the picture class
Class: Send e-mail with an embeded picture
Send e-mail messages with embeded pictures
Author: By
Last change:
Date: 11 years ago
Size: 512 bytes
 

Contents

Class file image Download
<?
    
// Klasse Einbinden
    
include("pictureclass.php");

    
// Neue Instanz der bildmail() Klasse erstellen
    
$bildmail = new bildmail();

    
// Absender angeben
    
$bildmail->from("Name","email@adresse.de");

    
// Empfänger Adresse angeben
    
$bildmail->to("email@adresse.de");

    
// EmailBodyText setzen                Bild in Text einfügen
    // Die Funktion setbild muss im Text festgelegt werden
    
$bildmail->settext("Dies ist ein Test...".$bildmail->setbild("Bildname"));

    
// Email versenden
    
$bildmail->send();
?>