Login   Register  
PHP Classes
elePHPant
Icontem

File: example01.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of RaS!  >  RaSMail  >  example01.php  >  Download  
File: example01.php
Role: Example script
Content type: text/plain
Description: Example file
Class: RaSMail
Class for send mail messages
Author: By
Last change: Example for RasMail 1.02
Date: 11 years ago
Size: 536 bytes
 

Contents

Class file image Download
<?php 
//RasMail 1.02 FIRST EXAMPLE (using single attachment)

#Include of main file
include("rasmail_102.php"); 

#Setup simple body
$MyBody="Hello world, do you know that php rulez?";

#Creating istance
$NewMail=new MailSender(); 
 
$NewMail->Sender("phpuser@domanin.com"); 
 
$NewMail->Recipient("perluser@domain.com"); 
 
$NewMail->Subject("This is a test"); 
 
$NewMail->Body($MyBody);
 
$NewMail->Attachment("c:\mypics\picture.jpg");
 
$NewMail->Mailformat("1"); 
 
$NewMail->Priority("3"); 
 
$NewMail->Execute();
?>